1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-15 09:56:15 +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, onValueChanged: onTabSwitch,
children: tabs.asMap().map((key, text) => MapEntry( children: tabs.asMap().map((key, text) => MapEntry(
key, key,
Padding( Container(
padding: const EdgeInsets.symmetric(horizontal: 8), width: 100,
child: Text(text), child: Center(
child: Text(text),
),
))), ))),
), ),
); );