I am using the below code. I got the bottom navigation bar to give an overflow exception. Please anyone help me to solve this problem.
return DefaultTabController(
length: 2,
child: Scaffold(
backgroundColor: Colors.white,
appBar: AppBar(
backgroundColor: Theme.of(context).primaryColor,
actions: [
IconButton(
onPressed: () {
openUrl("https://www.trustdidi.com/help");
},
icon: Icon(Icons.help_outline),
),
IconButton(
onPressed: () {
showComingSoonToast();
},
icon: Icon(Icons.notifications),
),
],
bottom: TabBar(
tabs: [
Tab(
icon: Icon(
Icons.directions_car,
color: Colors.white,
)),
Tab(icon: Icon(Icons.directions_transit)),
],
),
),
body: SafeArea(
child: TabBarView(
children: [
Icon(
Icons.directions_car,
color: Colors.redAccent,
),
Icon(Icons.directions_transit),
],
),
),
));
Buts it gives below error

