PickerThemeData class
A custom theme extension for the media picker widget.
This allows customization of various visual aspects of the picker while maintaining consistency with the app's theme system.
- Inheritance
-
- Object
- ThemeExtension<
PickerThemeData> - PickerThemeData
- Annotations
Constructors
- PickerThemeData({Color? bottomSheetBackgroundColor, Color? bottomSheetIndicatorColor, Color? tabEnableColor, Color? tabDisableColor, TextStyle? doneTextStyle, TextStyle? cancelTextStyle, ButtonStyle? cancelButtonStyle, ButtonStyle? doneButtonStyle, double? borderRadius, Color? tabBorderColor})
-
Creates a theme for the media picker widget.
const
Properties
- borderRadius → double?
-
Border radius for the bottom sheet corners.
final
- bottomSheetBackgroundColor → Color?
-
Background color of the bottom sheet that contains the media picker.
final
- bottomSheetIndicatorColor → Color?
-
Color of the drag indicator at the top of the bottom sheet.
final
- cancelButtonStyle → ButtonStyle?
-
Button style for the cancel button.
final
- cancelTextStyle → TextStyle?
-
Text style for the "Cancel" button text.
final
- doneButtonStyle → ButtonStyle?
-
Button style for the done button.
final
- doneTextStyle → TextStyle?
-
Text style for the "Done" button text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabBorderColor → Color?
-
Color used for disabled tabs border in the media picker.
final
- tabDisableColor → Color?
-
Color used for disabled/inactive tabs in the media picker.
final
- tabEnableColor → Color?
-
Color used for enabled/active tabs in the media picker.
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Color? backgroundColor, Color? bottomSheetBackgroundColor, Color? tabBorderColor, Color? tabEnableColor, Color? tabDisableColor, TextStyle? doneTextStyle, TextStyle? cancelTextStyle, double? borderRadius, ButtonStyle? doneButtonStyle, ButtonStyle? cancelButtonStyle}) → PickerThemeData -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< PickerThemeData> ? other, double t) → PickerThemeData -
Linearly interpolate with another ThemeExtension object.
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