mirror of
https://github.com/git-touch/git-touch
synced 2024-12-15 09:56:15 +01:00
fixup
This commit is contained in:
parent
0ab05646f0
commit
c71c2da2ef
@ -29,17 +29,21 @@ class TabScaffold extends StatelessWidget {
|
||||
case AppThemeType.cupertino:
|
||||
return DefaultTextStyle(
|
||||
style: DefaultTextStyle.of(context).style.copyWith(fontSize: 14),
|
||||
child: CupertinoSlidingSegmentedControl(
|
||||
groupValue: activeTab,
|
||||
onValueChanged: onTabSwitch,
|
||||
children: tabs.asMap().map((key, text) => MapEntry(
|
||||
key,
|
||||
Container(
|
||||
width: 100,
|
||||
child: Center(
|
||||
child: Text(text),
|
||||
),
|
||||
))),
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: CupertinoSlidingSegmentedControl(
|
||||
groupValue: activeTab,
|
||||
onValueChanged: onTabSwitch,
|
||||
children: tabs.asMap().map((key, text) => MapEntry(
|
||||
key,
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
child: Text(text),
|
||||
))),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user