FilesystemPickerTheme class
Defines a theme for the FilesystemPicker, allowing you to set colors, fonts, and icons for it.
You can set a common theme for all picker instances using FilesystemPickerDefaultOptions or pass
the theme
directly when opening the picker using the open
, openDialog
,
openBottomSheet
methods.
When passing a theme to the open
, openDialog
, openBottomSheet
methods, you can set
only some of the parameters, the rest will be used from the theme in
FilesystemPickerDefaultOptions or the default theme (this behavior can be changed
using the inherit
parameter).
You can use FilesystemPickerAutoSystemTheme to set a theme that will adapt to the light and dark presentation of the application (and the operating system).
- Implemented types
- Mixed-in types
- Annotations
Constructors
- FilesystemPickerTheme({bool inherit = _kDefaultInherit, Color? backgroundColor, FilesystemPickerTopBarThemeData? topBar, TextStyle? messageTextStyle, FilesystemPickerFileListThemeData? fileList, FilesystemPickerActionThemeData? pickerAction, FilesystemPickerContextActionsThemeData? contextActions})
-
Create a theme that can be used to customize the FilesystemPicker presentation
const
Properties
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
getBackgroundColor(
BuildContext context, [Color? color]) → Color -
Returns the background color of the picker using the
context
to get the default background color.override -
getContextActions(
BuildContext context) → FilesystemPickerContextActionsThemeData -
Returns the theme for the context actions, using
context
to get the defaults.override -
getFileList(
BuildContext context) → FilesystemPickerFileListThemeData -
Returns the theme for the FilesystemList widget used in the picker,
using
context
to get the defaults.override -
getMessageTextStyle(
BuildContext context) → TextStyle -
Returns the text style for messages in the center of the picker,
using the
context
to get the default values.override -
getPickerAction(
BuildContext context) → FilesystemPickerActionThemeData -
Returns the theme for the picker action, using
context
to get the defaults.override -
getTopBar(
BuildContext context) → FilesystemPickerTopBarThemeData -
Returns the theme for the Picker's
AppBar
using thecontext
to get the defaults.override -
merge(
BuildContext context, FilesystemPickerThemeBase? base) → FilesystemPickerThemeBase -
Returns a new picker theme that matches this picker theme but with some values
replaced by the non-null parameters of the given picker theme.
override
-
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.
override