ShimmerA class
ShimmerWidget( height: 200, width: MediaQuery.of(context).size.width, margin: EdgeInsets.only(bottom: 8), )
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ShimmerA
Constructors
-
ShimmerA({Key? key, LinearGradient? ownGradient, required bool isShimmer, Axis shimmerAxis = Axis.vertical, List<
ShimmerAWidgetParent> ? shimmerWidget, int shimmerCount = 1, ShimmerADirection direction = ShimmerADirection.ltr, required Widget child, Duration duration = const Duration(milliseconds: 1500), bool isScrolling = false}) -
const
Properties
- child → Widget
-
child The layout you want to see when finished loading.
child has granted viewing privileges to this layout.
final
- direction → ShimmerADirection
-
An enum defines all supported directions of shimmer effect
final
- duration → Duration
-
A
Duration
represents a difference from one point in time to another. The duration may be "negative" if the difference is from a later time to an earlier. duration please provide milliseconds. 500 <=duration >=1500.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isScrolling → bool
-
Creates a scrollable, linear array of widgets that are created on demand.
isScrolling default value
false
. if your need scrollable shimmer than provide isScrolling = true.final - isShimmer → bool
-
isShimmer Get the bool value to showing
shimmer
widget is enabled or disabled.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- ownGradient → LinearGradient?
-
ownGradient if you need custom gradient.
Your own LinearGradient is providedownGradient.
example
const LinearGradient(
colors:
Color(0xFFEBEBF4),
Color(0xFFEBEBF4),
Color(0xFFF4F4F4),
Color(0xFFEBEBF4),
Color(0xFFEBEBF4),
,
stops:
0.0, 0.35, 0.5, 0.65, 1.0
, // begin: Alignment(-1.0, -0.3), // end: Alignment(1.0, 0.3), begin: Alignment.centerRight, end: Alignment.centerLeft, tileMode: TileMode.clamp, )final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shimmerAxis → Axis
-
shimmerAxis get Axis value.
shimmerAxis default value set Axis.vertical
This determines whether the shimmerWidget will display horizontally or vertically.
final
- shimmerCount → int
-
shimmerCount get int value.
shimmerCount default value set 1.
Counts how many shimmerWidget widgets will show.
final
-
shimmerWidget
→ List<
ShimmerAWidgetParent> ? -
shimmerWidget get list of ShimmerWidget.
If you don't provide shimmerWidget.
Then the default shimmer animation is shown.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → ShimmerAState -
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