I am using the Cupertino design library for Android developing in Flutter. I want to change the width of the CupertinoSlidingSegmentedControl. This is what I have
final Map<int, Widget> myTabs = const <int, Widget>{
0: Text("Doctor"),
1: Text("Pacient")
};
CupertinoSlidingSegmentedControl(
groupValue: segmentedControlGroupValue,
children: myTabs,
onValueChanged: (i){
setState(() {
segmentedControlGroupValue = i;
});
},
),