EasyLoading class

Constructors

EasyLoading()
factory

Properties

backgroundColor Color
background color of loading, only used for EasyLoadingStyle.custom.
read / write
contentPadding EdgeInsets
content padding of loading.
read / write
context BuildContext
read / write
displayDuration ↔ Duration
display duration of showSuccess showError showInfo showToast, default 2000ms.
read / write
errorWidget Widget
error widget of loading
read / write
fontSize ↔ double
fontSize of loading, default 15.0.
read / write
indicatorColor Color
color of loading indicator, only used for EasyLoadingStyle.custom.
read / write
indicatorSize ↔ double
size of indicator, default 40.0.
read / write
indicatorType EasyLoadingIndicatorType
loading indicator type, default EasyLoadingIndicatorType.fadingCircle.
read / write
infoWidget Widget
info widget of loading
read / write
key GlobalKey<LoadingContainerState>
read-only
lineWidth ↔ double
width of indicator, default 4.0, only used for EasyLoadingIndicatorType.ring, EasyLoadingIndicatorType.dualRing.
read / write
loadingStyle EasyLoadingStyle
loading style, default EasyLoadingStyle.dark.
read / write
maskColor Color
mask color of loading, only used for EasyLoadingMaskType.custom.
read / write
maskType EasyLoadingMaskType
loading mask type, default EasyLoadingMaskType.none.
read / write
overlayEntry OverlayEntry
read-only
progress Widget
read-only
progressColor Color
progress color of loading, only used for EasyLoadingStyle.custom.
read / write
progressKey GlobalKey<ProgressState>
read-only
progressWidth ↔ double
width of progress indicator, default 2.0.
read / write
radius ↔ double
radius of loading, default 5.0.
read / write
successWidget Widget
success widget of loading
read / write
textAlign TextAlign
textAlign of status, default TextAlign.center.
read / write
textColor Color
color of loading status, only used for EasyLoadingStyle.custom.
read / write
textPadding EdgeInsets
padding of status.
read / write
timer → Timer
read-only
userInteractions ↔ bool
should allow user interactions while loading is displayed.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

instance EasyLoading
read-only

Static Methods

dismiss({bool animation: true}) → void
dismiss loading
show({String status, Widget indicator}) → void
show loading with status indicator custom indicator
showError(String status, {Duration duration}) → void
showError status duration
showInfo(String status, {Duration duration}) → void
showInfo status duration
showProgress(double value, {String status}) → void
show progress with value status, value should be 0.0 ~ 1.0.
showSuccess(String status, {Duration duration}) → void
showSuccess status duration
showToast(String status, {Duration duration}) → void
showToast status duration