FlutterShimmnerLoadingWidget class
Constructors
-
FlutterShimmnerLoadingWidget({Key? key, required int count, TextAlign align = TextAlign.left, Color? color = const Color(0xFFDEDEDE), double minOpacity = 0.4, double maxOpacity = 0.94, double maxWidth = .95, double minWidth = .72, double lineHeight = 12, bool animate = false, Widget? customAnimationOverlay, Color? animationOverlayColor, bool rebuildOnStateChange = false})
-
const
Properties
-
align
→ TextAlign
-
Defines
alignment
for all the lines generated
final
-
animate
→ bool
-
if
true
, plays a nice animation of an overlay
final
-
animationOverlayColor
→ Color?
-
Set a custom animationOverlayColor
final
-
color
→ Color?
-
Defines
color
to be used as base when building each line
final
-
count
→ int
-
Defines how many lines to build
final
-
customAnimationOverlay
→ Widget?
-
Use a customAnimationOverlay to display instead of the difault one
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
lineHeight
→ double
-
Defines the line
height
defaults to 12
final
-
maxOpacity
→ double
-
Defines the
max
value for the opacity
that a line could have, since color opacity it's generated randomly ,
defaults to 0.94
final
-
maxWidth
→ double
-
Defines the
max
width
that a line could have, since width
it's generated randomly
defaults to .95
final
-
minOpacity
→ double
-
Defines the
min
value for the opacity
that a line could have, since color opacity it's generated randomly ,
this prevents the value from going to low (making it invisible)
defaults to 0.4
final
-
minWidth
→ double
-
Defines the
min
width
that a line could have, since width
it's generated randomly
defaults to .72
final
-
rebuildOnStateChange
→ bool
-
If
true
, this will cause the lines to be rebuild with different widths (randomly generated)
every time any parent widget rebuilds it's state
defaults to false
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited