EasyLoading class
Properties
-
animationDuration
↔ Duration
-
animation duration of indicator, default 200ms.
getter/setter pair
-
animationStyle
↔ EasyLoadingAnimationStyle
-
loading animationStyle, default EasyLoadingAnimationStyle.opacity.
getter/setter pair
-
backgroundColor
↔ Color?
-
background color of loading, only used for EasyLoadingStyle.custom.
getter/setter pair
-
boxShadow
↔ List<BoxShadow>?
-
boxShadow of loading, only used for EasyLoadingStyle.custom.
getter/setter pair
-
contentPadding
↔ EdgeInsets
-
content padding of loading.
getter/setter pair
-
customAnimation
↔ EasyLoadingAnimation?
-
loading custom animation, default null.
getter/setter pair
-
dismissOnTap
↔ bool?
-
should dismiss on user tap.
getter/setter pair
-
displayDuration
↔ Duration
-
display duration of showSuccess showError showInfo showToast, default 2000ms.
getter/setter pair
-
errorWidget
↔ Widget?
-
error widget of loading
getter/setter pair
-
fontSize
↔ double
-
fontSize of loading, default 15.0.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
indicatorColor
↔ Color?
-
color of loading indicator, only used for EasyLoadingStyle.custom.
getter/setter pair
-
indicatorSize
↔ double
-
size of indicator, default 40.0.
getter/setter pair
-
indicatorType
↔ EasyLoadingIndicatorType
-
loading indicator type, default EasyLoadingIndicatorType.fadingCircle.
getter/setter pair
-
indicatorWidget
↔ Widget?
-
indicator widget of loading
getter/setter pair
-
infoWidget
↔ Widget?
-
info widget of loading
getter/setter pair
-
key
→ GlobalKey<EasyLoadingContainerState>?
-
no setter
-
lineWidth
↔ double
-
width of indicator, default 4.0, only used for
EasyLoadingIndicatorType.ring, EasyLoadingIndicatorType.dualRing
.
getter/setter pair
-
loadingStyle
↔ EasyLoadingStyle
-
loading style, default EasyLoadingStyle.dark.
getter/setter pair
-
maskColor
↔ Color?
-
mask color of loading, only used for EasyLoadingMaskType.custom.
getter/setter pair
-
maskType
↔ EasyLoadingMaskType
-
loading mask type, default EasyLoadingMaskType.none.
getter/setter pair
-
overlayEntry
↔ EasyLoadingOverlayEntry?
-
getter/setter pair
-
progressColor
↔ Color?
-
progress color of loading, only used for EasyLoadingStyle.custom.
getter/setter pair
-
progressKey
→ GlobalKey<EasyLoadingProgressState>?
-
no setter
-
progressWidth
↔ double
-
width of progress indicator, default 2.0.
getter/setter pair
-
radius
↔ double
-
radius of loading, default 5.0.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
successWidget
↔ Widget?
-
success widget of loading
getter/setter pair
-
textAlign
↔ TextAlign
-
textAlign of status, default TextAlign.center.
getter/setter pair
-
textColor
↔ Color?
-
color of loading status, only used for EasyLoadingStyle.custom.
getter/setter pair
-
textPadding
↔ EdgeInsets
-
padding of
status
.
getter/setter pair
-
textStyle
↔ TextStyle?
-
textStyle of status, default null.
getter/setter pair
-
toastPosition
↔ EasyLoadingToastPosition
-
toast position, default EasyLoadingToastPosition.center.
getter/setter pair
-
userInteractions
↔ bool?
-
should allow user interactions while loading is displayed.
getter/setter pair
-
w
→ Widget?
-
no setter
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
addStatusCallback(EasyLoadingStatusCallback callback)
→ void
-
add loading status callback
-
dismiss({bool animation = true})
→ Future<void>
-
dismiss loading
-
init({TransitionBuilder? builder})
→ TransitionBuilder
-
init EasyLoading
-
removeAllCallbacks()
→ void
-
remove all loading status callback
-
removeCallback(EasyLoadingStatusCallback callback)
→ void
-
remove single loading status callback
-
show({String? status, Widget? indicator, EasyLoadingMaskType? maskType, bool? dismissOnTap})
→ Future<void>
-
show loading with
status
indicator
maskType
-
showError(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap})
→ Future<void>
-
showError
status
duration
maskType
-
showInfo(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap})
→ Future<void>
-
showInfo
status
duration
maskType
-
showProgress(double value, {String? status, EasyLoadingMaskType? maskType})
→ Future<void>
-
show progress with
value
status
maskType
, value should be 0.0 ~ 1.0.
-
showSuccess(String status, {Duration? duration, EasyLoadingMaskType? maskType, bool? dismissOnTap})
→ Future<void>
-
showSuccess
status
duration
maskType
-
showToast(String status, {Duration? duration, EasyLoadingToastPosition? toastPosition, EasyLoadingMaskType? maskType, bool? dismissOnTap})
→ Future<void>
-
showToast
status
duration
toastPosition
maskType