How to put any widget behind a bottom navigation bar Flutter

Issue

I am trying to put a text or container behind bottom Navigation Bar like pinterest bottom navigation

Container behind bottom navigation bar

@override
Widget build(BuildContext context) {
return Scaffold(
  extendBody: true,
  backgroundColor: Colors.red,
  body: SafeArea(
    child: Container(
      height: 1000,
      width: 200,
      color: Colors.blue,
    ),
  ),

Solution

Add this to your Scaffold:

extendBody: true,

Answered By – Anas Nadeem

Answer Checked By – Senaida (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.