RoundedImageWithTextAndBG class

Inheritance

Constructors

RoundedImageWithTextAndBG({Key? key, double? radius = 16, double? loaderPadding = 10, required String image, required String text, Color? backgroudColor, String? uniqueId, String? errorImage, Widget? loadingWidget, Color? circularProgressColor, Color? backgroundTextColor = Colors.white, TextStyle? textStyle = const TextStyle(fontSize: 11, height: 16 / 11, fontWeight: FontWeight.w500), BoxFit? fit = BoxFit.cover, bool? isSelected = false, Color? selectedBackgroundColor, Widget? selectedWidget, VoidCallback? onTap})
const

Properties

backgroudColor Color?
If Background is provided it will be used Otherwise Random Color will be assigned
final
backgroundTextColor Color?
Color For TEXT intials
final
circularProgressColor Color?
Loading Widget Circular Progress Indicator Color
final
errorImage String?
Assest Image path for error Image
final
fit BoxFit?
Network Image BoxFit
final
hashCode int
The hash code for this object.
no setterinherited
image String
Network Image URL Send empty if Text with Random Backround needed If image.isEmpty = true, then the image will be a circle with a random color generated according to the uniqueId with text as initials in center
final
isSelected bool?
To Show selected Widget
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loaderPadding double?
Padding arround the loadingWidget
final
loadingWidget Widget?
Network Image loading Widget Default is CircularProgressIndicator
final
onTap VoidCallback?
Callback function onTap of the Widget
final
radius double?
radius of the circle, Height = radius *2 Width = radius *2
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color?
Selection Widget Background Color
final
selectedWidget Widget?
Custuom Selection Widget
final
text String
Intials of the text will be used to show in the circle With constant Random Background Color to give effect like Gmail
final
textStyle TextStyle?
TextStyle for TEXT intials
final
uniqueId String?
Unique radix16 String needed to generate Random and Constant Color For e.g. 'ac170002-7446-1152-8174-46096d7f0000' or Firebase UID e.g. 'cT3GNJXiWPbB3fExrFHoD42LK263' will work
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
generateRandomColor() Color
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