mirror of
https://github.com/git-touch/git-touch
synced 2025-02-20 21:40:44 +01:00
feat: use sliding control for cupertino
This commit is contained in:
parent
119a01ce76
commit
5a35cbfe39
@ -28,8 +28,8 @@ class TabScaffold extends StatelessWidget {
|
||||
switch (Provider.of<ThemeModel>(context).theme) {
|
||||
case AppThemeType.cupertino:
|
||||
return DefaultTextStyle(
|
||||
style: TextStyle(fontSize: 14),
|
||||
child: CupertinoSegmentedControl(
|
||||
style: DefaultTextStyle.of(context).style.copyWith(fontSize: 14),
|
||||
child: CupertinoSlidingSegmentedControl(
|
||||
groupValue: activeTab,
|
||||
onValueChanged: onTabSwitch,
|
||||
children: tabs.asMap().map((key, text) => MapEntry(
|
||||
|
@ -157,7 +157,7 @@ class _SearchScreenState extends State<SearchScreen> {
|
||||
Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(vertical: 8),
|
||||
child: CupertinoSegmentedControl(
|
||||
child: CupertinoSlidingSegmentedControl(
|
||||
groupValue: _activeTab,
|
||||
onValueChanged: _onTabSwitch,
|
||||
children: tabs.asMap().map((key, text) => MapEntry(
|
||||
|
Loading…
x
Reference in New Issue
Block a user