dontknowhy
dontknowhy

Reputation: 2876

Flutter, How to make a widget under the navigation bar

I implemented bottom navigator inside Scaffold() using

bottomNavigationBar : BottomNavigationBar()

and then I realized that I don`t know the way

how to add Admob(or Widget(Container)) under the bottom navigator bar

and also bottomSheet makes the widget appear above the bottom navigation bar

is there any solution for this please?

Upvotes: 0

Views: 1555

Answers (1)

Viren V Varasadiya
Viren V Varasadiya

Reputation: 27147

I think adding one more scaffold to scaffold can help you to achieve it easily.

checkout below minimal code which simulates the same.

Scaffold(
    bottomNavigationBar: Container(
      child: Text("second"),
    ),
    body: Scaffold(
      bottomNavigationBar: Container(
        child: Text("first"),
      ),
      body: Center(
        child: Container(
          child: Text("press"),
        ),
      ),
    ),
  );
}

Upvotes: 3

Related Questions