mirror of
https://github.com/kphanipavan/modal_progress_hud_nsn.git
synced 2025-10-28 06:12:49 -07:00
bump version, fix some docs
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## 0.5.0
|
||||
|
||||
- Ported the plugin to a package.
|
||||
|
||||
## 0.4.0
|
||||
|
||||
- Fixed [#6](https://github.com/kphanipavan/modal_progress_hud_nsn/issues/6)
|
||||
|
||||
@@ -13,7 +13,7 @@ Add the `modal_progress_hud_nsn` to dependencies in `pubspec.yaml`.
|
||||
|
||||
```yml
|
||||
dependencies:
|
||||
modal_progress_hud_nsn: ^0.4.0
|
||||
modal_progress_hud_nsn: ^0.5.0
|
||||
```
|
||||
|
||||
Next, import the library into your app.
|
||||
|
||||
@@ -10,33 +10,33 @@ import "dart:ui";
|
||||
/// HUD=Heads Up Display
|
||||
///
|
||||
class ModalProgressHUD extends StatelessWidget {
|
||||
/// A required [bool]to toggle the loading animation.
|
||||
/// A required [bool] to toggle the modal overlay.
|
||||
final bool inAsyncCall;
|
||||
|
||||
/// A [double] value which states how opaque the loading overlay should be, defaults to 0.3
|
||||
/// A [double] specifying the opacity of the modal overlay, defaults to 0.3
|
||||
final double opacity;
|
||||
|
||||
/// A [Color] object which is assigned to the loading barrier, defaults to grey
|
||||
final Color color;
|
||||
|
||||
/// A [Widget] which is shown at the center of the modal loading barrier,
|
||||
/// defaults to the standard android spinny animation.
|
||||
/// A [Widget] which is shown at the center of the modal overlay,
|
||||
/// defaults to the standard android spinner animation.
|
||||
final Widget progressIndicator;
|
||||
|
||||
/// An [Offset] object which is applied to the [progressIndicator] when specified.
|
||||
final Offset? offset;
|
||||
|
||||
/// A [bool] value which sets the `loading screen can be dismissible by tapping on the loading screen` rule.
|
||||
/// A [bool] which controls whether the modal overlay can be dismissible when interated.
|
||||
final bool dismissible;
|
||||
|
||||
/// A [Widget] which should be the the widget to be shown behind the loading barrier.
|
||||
/// A [Widget] over which the modal overlay is activated.
|
||||
final Widget child;
|
||||
|
||||
/// A [double] value specifying the amount of background blur when progress hud is active.
|
||||
final double blur;
|
||||
|
||||
const ModalProgressHUD({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.inAsyncCall,
|
||||
this.opacity = 0.3,
|
||||
this.color = Colors.grey,
|
||||
@@ -45,7 +45,7 @@ class ModalProgressHUD extends StatelessWidget {
|
||||
this.dismissible = false,
|
||||
required this.child,
|
||||
this.blur = 0.0,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: modal_progress_hud_nsn
|
||||
description: A modal progress indicator widget with Sound Null Safety. A fork of https://github.com/mmcc007/modal_progress_hud
|
||||
version: 0.4.0
|
||||
version: 0.5.0
|
||||
#author: Phani Pavan K
|
||||
homepage: https://github.com/kphanipavan/modal_progress_hud_nsn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user