Skip to content

Commit

Permalink
fix: use container to fix expansion of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas1599 committed Sep 15, 2020
1 parent 34e6af2 commit dedf045
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/scaffolds/tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ class TabScaffold extends StatelessWidget {
onValueChanged: onTabSwitch,
children: tabs.asMap().map((key, text) => MapEntry(
key,
Padding(
padding: const EdgeInsets.symmetric(horizontal: 8),
child: Text(text),
Container(
width: 100,
child: Center(
child: Text(text),
),
))),
),
);
Expand Down

0 comments on commit dedf045

Please sign in to comment.