FilesystemPickerFileListThemeData class
Defines the theme for the list of folders and files displayed in the picker.
Here you can customize the list view by setting icons, icon color, text styles, etc.
- Mixed in types
- Annotations
Constructors
- FilesystemPickerFileListThemeData({double? iconSize, IconData? upIcon, double? upIconSize, Color? upIconColor, String? upText, TextStyle? upTextStyle, IconData? shortcutIcon, Color? shortcutIconColor, TextStyle? shortcutTextStyle, IconData? folderIcon, Color? folderIconColor, TextStyle? folderTextStyle, IconData? fileIcon, Color? fileIconColor, TextStyle? fileTextStyle, IconData? checkIcon, Color? checkIconColor, double? checkIconSize, double? textScaleFactor, Color? progressIndicatorColor, FilesystemPickerFileListFileTypesThemeBase? fileTypes})
- Creates a theme for the list of folders and files displayed in the picker.
Properties
- checkIcon → IconData?
-
The icon for selecting a file (displayed on the right side of the list row from the file name).
final
- checkIconColor → Color?
-
The color of the icon for selecting a file.
final
- checkIconSize → double?
-
The size of the icon for selecting a file.
final
- fileIcon → IconData?
-
The file icon in the picker list row. Except for the file types specified in fileTypes.
final
- fileIconColor → Color?
-
The color of the file icon in the picker list row.
final
- fileTextStyle → TextStyle?
-
The text style of the file name in the picker list row.
final
- fileTypes → FilesystemPickerFileListFileTypesThemeBase
-
A set of icons for file types by extensions in the picker file list.
no setter
- folderIcon → IconData?
-
The folder icon in the picker list row.
final
- folderIconColor → Color?
-
The color of the folder icon in the picker list row.
final
- folderTextStyle → TextStyle?
-
The text style of the folder name in the picker list row.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconSize → double?
-
The size of the folder or file icon in the list row displayed in the picker.
final
- progressIndicatorColor → Color?
-
The color of the progress indicator for loading the list of folders and files
for the current path to display in the picker.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortcutIcon → IconData?
-
The shortcut icon in the picker list row.
final
- shortcutIconColor → Color?
-
The color of the shortcut icon in the picker list row.
final
- shortcutTextStyle → TextStyle?
-
The text style of the shortcut name in the picker list row.
final
- textScaleFactor → double?
-
The scaling factor of the text of the folder name or file name.
For example, for a value of 1.5, the text will be 50% larger than the specified font size.
final
- upIcon → IconData?
-
The icon of the list row, for going up to the parent folder.
final
- upIconColor → Color?
-
The color of the icon of the list row, for going up to the parent folder.
final
- upIconSize → double?
-
The size of the list row icon, for going up to the parent folder.
final
- upText → String?
-
The text of the list row to go up to the parent folder.
final
- upTextStyle → TextStyle?
-
The text style of the list row, for going up to the parent folder.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getCheckIcon(
BuildContext context) → IconData - Returns the icon for selecting a file (displayed on the right side of the list row from the file name).
-
getCheckIconTheme(
BuildContext context) → IconThemeData - Returns IconThemeData, for the icon for selecting a file (displayed on the right side of the list row from the file name).
-
getFileIcon(
BuildContext context, [String? extension, bool caseSensitive = false]) → IconData - Returns the file icon in the picker list row.
-
getFileIconColor(
BuildContext context, [Color? color]) → Color - Returns the color of the file icon in the picker list row.
-
getFileTextStyle(
BuildContext context) → TextStyle - Returns the text style of the file name in the picker list row.
-
getFolderIcon(
BuildContext context) → IconData - Returns the folder icon in the picker list row.
-
getFolderIconColor(
BuildContext context, [Color? color]) → Color - Returns the color of the folder icon in the picker list row.
-
getFolderTextStyle(
BuildContext context) → TextStyle - Returns the text style of the folder name in the picker list row.
-
getIconSize(
BuildContext context) → double - Returns the size of the folder or file icon in the list row displayed in the picker.
-
getProgressIndicatorColor(
BuildContext context, [Color? color]) → Color? - Returns the color of the progress indicator for loading the list of folders and files for the current path to display in the picker.
-
getShortcutIcon(
BuildContext context) → IconData - Returns the shortcut icon in the picker list row.
-
getShortcutIconColor(
BuildContext context, [Color? color]) → Color - Returns the color of the shortcut icon in the picker list row.
-
getShortcutTextStyle(
BuildContext context) → TextStyle - Returns the text style of the shortcut name in the picker list row.
-
getTextScaleFactor(
BuildContext context, bool isFile) → double - Returns the scaling factor of the text of the folder name or file name.
-
getUpIcon(
BuildContext context) → IconData - Returns the icon of the list row, for going up to the parent folder.
-
getUpIconTheme(
BuildContext context) → IconThemeData - Returns IconThemeData, for the icon of the list row, for going up to the parent folder.
-
getUpText(
BuildContext context) → String - Returns the text of the list row to go up to the parent folder.
-
getUpTextScaleFactor(
BuildContext context) → double - Returns the scaling factor of the text of the list row to go up to the parent folder.
-
getUpTextStyle(
BuildContext context) → TextStyle - Returns the text style of the list row, for going up to the parent folder.
-
merge(
FilesystemPickerFileListThemeData base) → FilesystemPickerFileListThemeData - Returns a new theme for the list of folders and files 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 for selecting a file (displayed on the right side of the list row from the file name).
- defaultIconSize → const double
- The default icon size.
- defaultTextScaleFactor → const double
- The default scaling factor, for the size of the text of the folder or file name.
- defaultUpIcon → const IconData
- The default icon for going up to the parent folder.
- defaultUpIconSize → const double
- The default icon size for going up to the parent folder.
- defaultUpText → const String
- The text of the list item to go up to the parent folder.