1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-15 01:45:05 +01:00

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

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