ULoading class
Full-screen blocking loader over the whole app, from anywhere; UHttpClient-based services show it for you. ULoading.show(); await save(); ULoading.dismiss();
Constructors
- ULoading()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
- percent → int?
-
Current percent, or null when indeterminate.
no setter
- settings → ULoadingSettings
-
Current default look.
no setter
Static Methods
-
dismiss(
) → void - Hides the loader.
-
initialize(
{ULoadingSettings? settings, GlobalKey< NavigatorState> ? key}) → void - Sets the default look; initU() already calls it.
-
isShowing(
) → bool - True while the loader is visible.
-
setPercent(
int? percent) → void -
Updates the percent (null = spinner).
ULoading.setPercent(60) -
show(
{BuildContext? context, ULoadingSettings? settings, WidgetBuilder? customLoader, String? text, String? source, String? package, int? percent, URxInt? percentRx}) → void -
Shows the loader (once; calling again only updates it);
percentshows progress.ULoading.show(text: "Uploading", percent: 0) -
update(
{ULoadingSettings? settings, WidgetBuilder? customLoader, String? text, String? source, String? package, int? percent, URxInt? percentRx}) → void -
Changes text/percent/look of the visible loader.
ULoading.update(text: "Almost done")