🚗🏍️ Welcome to Motoshare!

Turning Idle Vehicles into Shared Rides & New Earnings.
Why let your bike or car sit idle when it can earn for you and move someone else forward?

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Partners earn. Renters ride. Everyone wins.

Start Your Journey with Motoshare

how to create nested tabbar in flutter

Uncategorized

steps:

appBar: AppBar(  

            centerTitle: true,

            title: Text('HolidayLandmark'),  

            bottom: TabBar(  

              tabs: [  

                Tab(text:"Trips"),

                Tab(text:"Events"),

              ],  

            ),  

          ),  

          body: TabBarView(  

            children: [  

              TripBooking(),  // from TripBooking.dart file 
              EventBooking(),  // from EventBooking.dart file

            ],  

          ),

TripBooking.dart

appBar: AppBar(  
            toolbarHeight: 0,
            bottom: TabBar(  
              tabs: [  
                Tab(text:"MyTripbooking"),
                Tab(text:"ManageTripsbooking"),
              ],  
            ),  
          ),  
          body: TabBarView(  
            children: [  
              MyTripbooking(),  
              ManageTripsbooking(),  
            ],  
          ), 

MyTripbooking.dart

  child: SingleChildScrollView (
         child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              SingleChildScrollView(
                   child: Center(
                     child: Container(  
               child: new ElevatedButton(
                       style: ElevatedButton.styleFrom( 
                       primary: Colors.blue,
                        ),
                          child: Text(
                            'MyTripbooking',
                            style: TextStyle(
                              fontFamily: "Roboto",
                              color: Colors.white,
                            ),
                          ),
                          onPressed: () {
                          })
                 ),
                   ),   
                ),
            ],
          ),
        ),

ManageTripsbooking.dart

         child: SingleChildScrollView (
         child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              SingleChildScrollView(
                   child: Center(
                     child: Container(  
               child: new ElevatedButton(
                       style: ElevatedButton.styleFrom( 
                       primary: Colors.blue,
                        ),
                          child: Text(
                            'Search',
                            style: TextStyle(
                              fontFamily: "Roboto",
                              color: Colors.white,
                            ),
                          ),
                          onPressed: () {
                          })
                 ),
                   ),   
                ),
            ],
          ),
        ),
    );

Output

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