Created
February 25, 2025 04:02
-
-
Save loic-sharma/1511586abcb381d56a9105cfc5b3d347 to your computer and use it in GitHub Desktop.
Cupertino navigation bar middle overflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/cupertino.dart'; | |
void main() { | |
runApp( | |
CupertinoApp( | |
home: CupertinoPageScaffold( | |
navigationBar: CupertinoNavigationBar( | |
middle: Column(children: [ | |
Text('My page'), | |
CupertinoSlidingSegmentedControl<int>( | |
onValueChanged: (value) {}, | |
children: { | |
0: Text('Foo'), | |
1: Text('Bar'), | |
}, | |
) | |
]), | |
), | |
child: Text('Hello world'), | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment