UFUAvatar class

Inheritance

Constructors

UFUAvatar.new({double? height, double? width, double radius = 50.0, Color? borderColor, bool? isDashedBorder, double? dashLength, UFUAvatarSize? size, Color? backgroundColor = UFUColor.transparent, Widget? child, double? borderWidth, Key? key})
const

Properties

backgroundColor Color?
Defines backgroundColor UFUColor.transparent of avatar
final
borderColor Color?
Defines borderColor UFUColor.transparent of avatar
final
borderWidth double?
Defines borderWidth of avatar
final
child Widget?
Defines child widget of a avatar We can add icon,images etc. in this child like.... Icon(Icons.person); like.... image.network('');
final
dashLength double?
Defines the length of a dash for border of avatar
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Defines height of avatar
final
isDashedBorder bool?
Defines if border is dashed border of avatar
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
radius double
Defines radius of avatar
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size UFUAvatarSize?
Defines size UFUAvatarSize.medium of avatar
final
width double?
Defines width of avatar
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
getDefaultIconSize() → dynamic
Defines default size of default icon of a avatar
getSize() → dynamic
Defines size UFUAvatarSize.medium of a avatar
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