I am trying to create a tab bar which contains icon and text in the same row in tab.
I have tried below code to implement the same , due to which the icon and text are shown in column manner in tab.
bottom: TabBar(
tabs: [
Tab(icon: new Image.asset("assets/images/ic_policy@2x.png",width: 18,height: 18), child: Text("Policies")
),
Tab(
child: Container(
child: Align(
alignment: Alignment.center,
child: Text("Policy Payments")),
),
)
Can anyone guide me how to achieve the same. My tabbar currently looks as below.
I want to design something like below :-

