ThemedAvatarPicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ThemedAvatarPicker
Constructors
-
ThemedAvatarPicker({Key? key, String? labelText, Widget? label, String? value, void onChanged(String?)?, bool disabled = false, List<
String> errors = const [], bool hideDetails = false, 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))}) -
ThemedAvatarPicker is a widget that allows the user to pick an avatar.
const
Properties
- 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 a custom child that will be displayed instead of the default input.
If this property is submitted, the input will be ignored.
final
- disabled → bool
-
disabled is a flag that indicates if the input is disabled.
final
-
errors
→ List<
String> -
errors is a list of errors that will be displayed below the input.
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 a flag that indicates if the errors should be displayed.
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 - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
label is the label widget of the input. Avoid submit label and labelText at the same time.
final
- labelText → String?
-
labelText is the label text of the input. Avoid submit label and labelText at the same time.
final
- onChanged → (void Function(String?)?)
-
onChanged is the callback that is called when the value of the input changes.
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 current value of the input. This value should be a base64 string or an URL.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ThemedAvatarPicker> -
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