fix: use container to fix expansion of tab

This commit is contained in:
shreyas1599 2020-09-15 17:23:31 +05:30 committed by Rongjian Zhang
parent db7b69b177
commit 0ab05646f0
1 changed files with 5 additions and 3 deletions

View File

@ -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),
),
))),
),
);