Home > database >  Flutter - How to create a TabBar View with top bottom as the same levels as the tab
Flutter - How to create a TabBar View with top bottom as the same levels as the tab

Time:12-09

I have a TabBar that has form items in the view. that currently look like this.

enter image description here

as you can see the Cancel and Continue buttons are at the top. I used a Scalfold widget with an AppBar for those.

The problem is I want the continued bottom to align with the tabs. like this.

enter image description here

How can I get that desired result?

CodePudding user response:

appBar: AppBar(
            automaticallyImplyLeading: false,
            title: Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              crossAxisAlignment: CrossAxisAlignment.end,
              children: <Widget>[
                YourFirstButton,
                YourTabBar(),
                YourSecondButton(),
        ],
      ),
    ),
  • Related