Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

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

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