Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Oct 8, 2020
1 parent 0ab0564 commit c71c2da
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions lib/scaffolds/tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c71c2da

Please sign in to comment.