Best Cosmetic Hospitals Near You

Compare top cosmetic hospitals, aesthetic clinics & beauty treatments by city.

Trusted • Verified • Best-in-Class Care

Explore Best Hospitals

Flutter:height of the AppBar

Uncategorized

How can I simply set the height of the AppBar in Flutter?

 
  Widget build(BuildContext context) {  
    return Padding(
     padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 10.0),
      child: MaterialApp( 
        home: DefaultTabController(  
          length: 2,  
          child: Scaffold(  
            appBar: AppBar(  
              centerTitle: true,
               toolbarHeight: 10,
              // title: Text('HolidayLandmark'),  
              bottom: TabBar(  
                tabs: [  
                  Tab(text:"MyTripsBookings"),
                  Tab(text:"ManageTripsBookings"),
                ],  
              ),

            ),  
            body: TabBarView(  
              children: [  
                 Mytripbooking(data: widget.data, mydata: widget.mydata, start_date: DateTime.now(), title: '',),
                 ManageTripsBookings(data: widget.data, mydata: widget.mydata, start_date: DateTime.now(), title: '',),
        
             
                // SecondScreen(),  
              ],  
            ),  
            //  bottomNavigationBar: _buildBottomBar()
          ),  
        ),  
      ),
    );         
  }  

Output

Best Cardiac Hospitals Near You

Discover top heart hospitals, cardiology centers & cardiac care services by city.

Advanced Heart Care • Trusted Hospitals • Expert Teams

View Best Hospitals
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x