diff --git a/lib/scaffolds/tab.dart b/lib/scaffolds/tab.dart index 771ed7a..efd1a93 100644 --- a/lib/scaffolds/tab.dart +++ b/lib/scaffolds/tab.dart @@ -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: