ThemedFilePicker class

Inheritance

Constructors

ThemedFilePicker({Key? key, String? labelText, Widget? label, String? value, void onChanged(String, List<int>)?, bool disabled = false, List<String> errors = const [], bool hideDetails = false, bool isRequired = false, FileType acceptedTypes = FileType.any, Widget? customChild, Color hoverColor = Colors.transparent, Color focusColor = Colors.transparent, Color splashColor = Colors.transparent, Color highlightColor = Colors.transparent, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(10)), List<String>? allowedExtensions, EdgeInsets? padding})
ThemedFilePicker is the input for file selection. It uses ThemedTextInput as the base.
const

Properties

acceptedTypes FileType
acceptedTypes is the type of files that can be selected.
final
allowedExtensions List<String>?
allowedExtensions is the list of allowed extensions. Only will work when acceptedTypes is FileType.custom.
final
borderRadius BorderRadius
borderRadius is the border radius of the input. Only will affect when customChild is submitted. By default, it will use BorderRadius.circular(10).
final
customChild Widget?
customChild is the custom widget to be displayed. Replaces the ThemedTextInput widget.
final
disabled bool
disabled is the flag to disable the input.
final
errors List<String>
errors is the list of errors to be displayed.
final
focusColor Color
focusColor is the focus color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
hashCode int
The hash code for this object.
no setterinherited
hideDetails bool
hideDetails is the flag to hide the details of the input.
final
highlightColor Color
highlightColor is the highlight color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
hoverColor Color
hoverColor is the hover color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
isRequired bool
isRequired is the flag to mark the input as required.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label Widget?
label is the label of the input. Avoid using this if you are using labelText instead.
final
labelText String?
labelText is the label of the input. Avoid using this if you are using label instead.
final
onChanged → (void Function(String, List<int>)?)
onChanged is the callback when the input value changes. The first parameter is the base64 of the file. The second parameter is the byte array of the file.
final
padding EdgeInsets?
padding is the padding of the input.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color
splashColor is the splash color of the input. Only will affect when customChild is submitted. By default, it will use Colors.transparent.
final
value String?
value is the value of the input.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ThemedFilePicker>
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}) 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