This video shows the use of SegmentedControl in Flutter.
* SegmentedControl in Flutter | Using SegmentedControl in Flutter *
If you are an iOS user, you may have experienced this control in their Phone App…showing the all / missed calls.
Exploring a way to program this control in Flutter, until I found
CupertinoSegmentedControl from
import ‘package:flutter/cupertino.dart’;
As per the Flutter guidelines for CupertinoSegmentedControl :
Displays the widgets provided in the Map of children in a horizontal list. Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.
children: This should be a map of widgets…(see down for example)
onValueChanged: Fetch the selected tab value and display widget accordingly..
groupValue: The identifier of the widget that is currently selected. This must be one of the keys in the Map of children. If this attribute is null, no widget will be initially selected.
Website: http://flatteredwithflutter.com/segme...
Medium blog: / segmentedcontrol-in-flutter
For the complete source code, visit
https://github.com/AseemWangoo/flutte...
In case, this helped, pass me a coffee!! 😊😊
https://www.buymeacoffee.com/aseemwangoo
#SegmentedControl #FlatteredWithFlutter #Flutter