Material Designの美学を備えたセグメントコントロールを実装するFlutterウィジェットで、iOSスタイルのセグメントコントロールと視覚的に整合性のある代替手段を提供します。ユーザーが相互に排他的な選択肢の中から1つを選択できるようにし、設定やフィルターでよく使用されます。色、ラベル、選択動作のカスタマイズをサポートしながら、Android、iOS、Web、macOS、Windows、Linuxの各プラットフォームで適切なスタイルを維持します。
Disable the selection for all children by setting selectionIndex to null. It un-selects all options.
Disable children to being not "clickable" (like setting onPressed to null on a button) by setting disabledChildren. Give it a list with all indices that should be disabled. Give it either null or an empty list to not use the disabled feature.