UISegmentedButtonThemeData class

Inheritance
Implemented types

Constructors

UISegmentedButtonThemeData({double? height, double? spacing, EdgeInsets? padding, BorderRadius? borderRadius, Color? backgroundColor, Color? segmentBackgroundColor, Color? selectedForegroundColor, Color? unselectedForegroundColor, TextStyle? textStyle})
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)})
const

Properties

backgroundColor → Color?
final
borderRadius → BorderRadius?
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
padding → EdgeInsets?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segmentBackgroundColor → Color?
final
selectedForegroundColor → Color?
final
spacing → double?
final
textStyle → TextStyle?
final
type → Object
The extension's type.
no setterinherited
unselectedForegroundColor → Color?
final

Methods

copyWith({double? height, double? spacing, EdgeInsets? padding, EdgeInsets? itemPadding, BorderRadius? borderRadius, Color? backgroundColor, Color? segmentBackgroundColor, Color? selectedColor, Color? unselectedForegroundColor, Color? disabledColor, TextStyle? textStyle}) → UISegmentedButtonThemeData
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant UISegmentedButtonThemeData? other, double t) → UISegmentedButtonThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(covariant UISegmentedButtonThemeData? other) → UISegmentedButtonThemeData
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited