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