RhFilePicker class

Inheritance

Constructors

RhFilePicker.multiple({Key? key, Widget? removeIcon, FileType? fileType = FileType.any, dynamic onPick(List<File?>)?, List<String>? allowedExtensions, List<Widget> children = const [], EdgeInsets? margin, Color? backgroundColor, Widget? addMore, Widget? showSelected, Widget? headerText, Widget? selectedFiles, PickedItemDecoration? pickedItemDecoration, PickedItemDecoration? singleItemDecoration})
const
RhFilePicker.single({Key? key, Widget? removeIcon, Widget? uploadIcon, dynamic onPick(List<File?>)?, FileType? fileType = FileType.any, List<String>? allowedExtensions, Color? backgroundColor, PickedItemDecoration? pickedItemDecoration, Widget? title, Widget? subtitle, required Source? source})
const

Properties

addMore Widget?
addMore widget customisable for the user
final
allowedExtensions List<String>?
allowedExtensions specifies the list of allowed file extensions
final
backgroundColor Color?
backgroundColor of the picker widget
final
children List<Widget>
children is a list of ListItem used as options in Multipicker
final
fileType → FileType?
fileType specifies the type of file to be picked
final
hashCode int
The hash code for this object.
no setterinherited
headerText Widget?
headerText is the widget user wants in
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
margin for the content inside the Multiple picker
final
onPick → dynamic Function(List<File?>)?
onPick is the callback function to be called when a file or files are picked
final
pickedItemDecoration PickedItemDecoration?
pickedItemDecoration is the decoration for the selected items in the picker.
final
removeIcon Widget?
removeIcon is an optional widget to display on each selected file for removing it from the selection
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedFiles Widget?
selectedFiles is a widget that shows the selected files in the picker.
final
showSelected Widget?
showSelected widget customisable for the user
final
singleItemDecoration PickedItemDecoration?
singleItemDecoration is the decoration for the single item picker.
final
source Source?
source is a variable that holds the source of the files, which could be from the device, camera, gallery, or a link.
final
subtitle Widget?
subtitle is a widget that shows the subtitle of the picker.
final
title Widget?
title is a widget that shows the title of the picker.
final
type PickerType
type specifies whether to pick a single file or multiple files
final
uploadIcon Widget?
uploadIcon is the icon to be used for the upload button
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<RhFilePicker>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
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
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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