ExcellentLoading class

Constructors

ExcellentLoading()
factory

Properties

animationDuration Duration
animation duration of indicator, default 200ms.
getter/setter pair
animationStyle ExcellentLoadingAnimationStyle
loading animationStyle, default ExcellentLoadingAnimationStyle.opacity.
getter/setter pair
backgroundColor Color?
background color of loading, only used for ExcellentLoadingStyle.custom.
getter/setter pair
boxShadow List<BoxShadow>?
boxShadow of loading, only used for ExcellentLoadingStyle.custom.
getter/setter pair
contentPadding EdgeInsets
content padding of loading.
getter/setter pair
customAnimation ExcellentLoadingAnimation?
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 ExcellentLoadingStyle.custom.
getter/setter pair
indicatorSize double
size of indicator, default 40.0.
getter/setter pair
indicatorStroke double
stroke of indicator
getter/setter pair
indicatorType ExcellentLoadingIndicatorType
loading indicator type, default ExcellentLoadingIndicatorType.fadingCircle.
getter/setter pair
indicatorWidget Widget?
indicator widget of loading
getter/setter pair
infoWidget Widget?
info widget of loading
getter/setter pair
key GlobalKey<ExcellentLoadingContainerState>?
no setter
lineWidth double
width of indicator, default 4.0, only used for ExcellentLoadingIndicatorType.ring, ExcellentLoadingIndicatorType.dualRing.
getter/setter pair
loadingStyle ExcellentLoadingStyle
loading style, default ExcellentLoadingStyle.dark.
getter/setter pair
maskColor Color?
mask color of loading, only used for ExcellentLoadingMaskType.custom.
getter/setter pair
maskType ExcellentLoadingMaskType
loading mask type, default ExcellentLoadingMaskType.none.
getter/setter pair
overlayEntry ExcellentLoadingOverlayEntry?
getter/setter pair
progressColor Color?
progress color of loading, only used for ExcellentLoadingStyle.custom.
getter/setter pair
progressKey GlobalKey<ExcellentLoadingProgressState>?
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
status String?
getter/setter pair
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 ExcellentLoadingStyle.custom.
getter/setter pair
textPadding EdgeInsets
padding of status.
getter/setter pair
textStyle TextStyle?
textStyle of status, default null.
getter/setter pair
toastPosition ExcellentLoadingToastPosition
toast position, default ExcellentLoadingToastPosition.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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance ExcellentLoading
no setter
isShow bool
no setter

Static Methods

addStatusCallback(ExcellentLoadingStatusCallback callback) → void
add loading status callback
dismiss({bool animation = true}) Future<void>
dismiss loading
init({TransitionBuilder? builder}) TransitionBuilder
init ExcellentLoading
removeAllCallbacks() → void
remove all loading status callback
removeCallback(ExcellentLoadingStatusCallback callback) → void
remove single loading status callback
show({String? status, Widget? indicator, ExcellentLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
show loading with status indicator maskType
showError({String? status, Duration? duration, ExcellentLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showError status duration maskType
showInfo({String? status, Duration? duration, ExcellentLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showInfo status duration maskType
showProgress(double value, {String? status, ExcellentLoadingMaskType? maskType}) Future<void>
show progress with value status maskType, value should be 0.0 ~ 1.0.
showSuccess({String? status, Duration? duration, ExcellentLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showSuccess status duration maskType
showToast({String? status, Duration? duration, ExcellentLoadingToastPosition? toastPosition, ExcellentLoadingMaskType? maskType, bool? dismissOnTap}) Future<void>
showToast status duration toastPosition maskType