Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Return two design elements in builder

       Widget build(BuildContext context) {
    super.build(context);
    return Scaffold(
...
...
...

builder: (BuildContext context) { //BuildContext context
              final innerScrollController = PrimaryScrollController.of(context);
              return TabMedium(
                sc: innerScrollController,
                tc: _tabController,
              );
              return  BannerAdAdmob();            
            }

For now, it shows only TabMedium() view. How can I put top & bottom these views?

What do I get?

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What do I want?

enter image description here

Thanks…

>Solution :

Did you try Column ??

Widget build(BuildContext context) {
super.build(context);
return Scaffold(
...
...
...
builder: (BuildContext context) { //BuildContext context
          final innerScrollController = PrimaryScrollController.of(context);
          return Column(
         
           children:[
             Expanded(
               child:TabMedium(
                       sc: innerScrollController,
                       tc: _tabController,
               ),
             ),
             BannerAdAdmob(),
           ],
          );         
        }
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading