RoundedImageWithTextAndBG class
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