UISegmentedButtonThemeData.config constructor
const
UISegmentedButtonThemeData.config({
- double? height = 48,
- double? spacing = 8,
- EdgeInsets? padding = const EdgeInsets.all(4),
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(20)),
- Color? backgroundColor = Colors.black12,
- Color? segmentBackgroundColor = Colors.black,
- Color? selectedForegroundColor = Colors.white,
- Color? unselectedForegroundColor = Colors.black54,
- TextStyle? textStyle = const TextStyle(fontSize: 16),
Implementation
const UISegmentedButtonThemeData.config({
this.height = 48,
this.spacing = 8,
this.padding = const EdgeInsets.all(4),
this.borderRadius = const BorderRadius.all(Radius.circular(20)),
this.backgroundColor = Colors.black12,
this.segmentBackgroundColor = Colors.black,
this.selectedForegroundColor = Colors.white,
this.unselectedForegroundColor = Colors.black54,
this.textStyle = const TextStyle(fontSize: 16),
});