UISegmentedButtonThemeData.config constructor

const UISegmentedButtonThemeData.config({
  1. double? height = 48,
  2. double? spacing = 8,
  3. EdgeInsets? padding = const EdgeInsets.all(4),
  4. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(20)),
  5. Color? backgroundColor = Colors.black12,
  6. Color? segmentBackgroundColor = Colors.black,
  7. Color? selectedForegroundColor = Colors.white,
  8. Color? unselectedForegroundColor = Colors.black54,
  9. 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),
});