USegmentedControl<T> constructor
const
USegmentedControl<T> ({
- required Map<
T, Widget> children, - required T initialValue,
- required ValueChanged<
T> onValueChanged, - Key? key,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
- bool isStretch = true,
- BoxDecoration? decoration,
- BoxDecoration? thumbDecoration,
- EdgeInsets padding = const EdgeInsets.all(8),
- double innerPadding = 8.0,
- double? height,
- double? width,
- TextStyle? selectedTextStyle,
- TextStyle? unselectedTextStyle,
Implementation
const USegmentedControl({
required this.children,
required this.initialValue,
required this.onValueChanged,
super.key,
this.duration = const Duration(milliseconds: 300),
this.curve = Curves.easeInOut,
this.isStretch = true,
this.decoration,
this.thumbDecoration,
this.padding = const EdgeInsets.all(8),
this.innerPadding = 8.0,
this.height,
this.width,
this.selectedTextStyle,
this.unselectedTextStyle,
});