FilesystemPickerActionThemeData class
Defines the theme for the folder selection button used in the picker.
Here you can customize the location and appearance of the button - color, shape, icon, etc.
- Mixed in types
- Annotations
Constructors
- FilesystemPickerActionThemeData({FilesystemPickerActionLocation? location, Color? foregroundColor, Color? disabledForegroundColor, Color? backgroundColor, double? elevation, ShapeBorder? shape, TextStyle? textStyle, IconData? checkIcon, Color? checkIconColor, double? checkIconSize})
- Creates a theme that can be used in FilesystemPickerTheme.
Properties
- backgroundColor → Color?
-
The background color of the button.
final
- checkIcon → IconData?
-
The icon to display in the button.
final
- checkIconColor → Color?
-
The color of the icon in the button. Overrides the foregroundColor value.
final
- checkIconSize → double?
-
The size of the icon in the button.
final
- disabledForegroundColor → Color?
-
The color of the icon and the text in the button in the disabled state.
final
- elevation → double?
-
The z-coordinate at which to place this button relative to its parent.
See also FloatingActionButton.elevation.
final
- foregroundColor → Color?
-
The color of the icon and the text in the button.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBarMode → bool
-
Returns true if location is set to
barCenter
.no setter - isFABMode → bool
-
Returns true if location is set to
floatingStart
,floatingCenter
orfloatingEnd
.no setter - location → FilesystemPickerActionLocation
-
Returns the current type and location of the button.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → ShapeBorder?
-
The shape of the button's Material.
final
- textStyle → TextStyle?
-
The style to use for the text in the button.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getBackgroundColor(
BuildContext context, [Color? color]) → Color - Returns the background color of the button.
-
getCheckIcon(
BuildContext context) → IconData - Returns the icon to display in the button.
-
getCheckIconTheme(
BuildContext context) → IconThemeData - Returns IconThemeData, for the icon in the button.
-
getDisabledForegroundColor(
BuildContext context, [Color? color]) → Color? - Returns the foreground color, for the button in the disabled state.
-
getElevation(
BuildContext context) → double? - Returns the z-coordinate from which this button can be placed relative to its parent.
-
getFloatingButtonLocation(
BuildContext context) → FloatingActionButtonLocation? -
Returns the location of the floating button, depending on the location parameter.
If
barCenter
is set in location, it returnsnull
. -
getForegroundColor(
BuildContext context, [Color? color]) → Color? - Returns the foreground color that is used for the text and icon in the button, if no color is set for the icon in the checkIconColor parameter.
-
getShape(
BuildContext context) → ShapeBorder? - Returns the shape of the button's Material.
-
getTextStyle(
BuildContext context, [Color? color]) → TextStyle? - Returns the default text style for the button.
-
merge(
FilesystemPickerActionThemeData base) → FilesystemPickerActionThemeData - Returns a new picker action theme that matches this theme but with some values replaced by the non-null parameters of the given theme.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultCheckIconSize → const double
- The default icon size.
- defaultLocation → const FilesystemPickerActionLocation
- The default type and location of the button.