UserImageButton class

A circular user image button. When pressed, the user is allowed to upload a new user image to the server.

Inheritance

Constructors

UserImageButton({required SessionManager sessionManager, bool compact = true, double elevation = 0, double borderWidth = 0, Color borderColor = Colors.white, Key? key})
Creates a user image button, used to upload a new user image for a signed in user.
const

Properties

borderColor Color
The color of buttons's border. Only used if the borderWidth is non-zero. Defaults to white.
final
borderWidth double
The width of the buttons's border. Defaults to 0.
final
compact bool
Use a smaller version of the button, defaults to true.
final
elevation double
Elevation of the button. Defaults to 0.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionManager SessionManager
The session manager from the auth module.
final

Methods

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