Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
## 0.3.1 (2022-03-18)

- Minor fixes

## 0.3.0 (2022-03-18)

- Several minor Fixes
- Several minor fixes
- Performance improvements
- BREAKING: Changes default value of `padding` to `EdgeInsets.zero`
- BREAKING: Changes default color to `Theme.of(context).colorScheme.secondary`

## 0.2.1 (2021-04-02)

- Minor Changes/Fixes
- Minor changes/fixes
- Changes default values of `CircularWidgetLoading`

## 0.2.0 (2021-03-04)
Expand Down
11 changes: 2 additions & 9 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -162,7 +155,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.0"
version: "0.3.1"
sdks:
dart: ">=2.14.0 <3.0.0"
dart: ">=2.15.0 <3.0.0"
flutter: ">=1.17.0"
7 changes: 3 additions & 4 deletions lib/src/widgets/wiper_loading.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ class _WiperLoadingState extends LoadingWidgetState<WiperLoading>
)..repeat(reverse: true);

_animation = CurvedAnimation(parent: _controller, curve: widget.curve)
..addListener(() {
if (loaded) return;
setState(() {});
})
..addStatusListener((status) {
switch (status) {
case AnimationStatus.forward:
Expand Down Expand Up @@ -243,6 +239,9 @@ class _WiperLoadingState extends LoadingWidgetState<WiperLoading>
setLoadingState(LoadingState.DISAPPEARING, rebuild: false);
_controller.animateBack(0.0);
}

_controller.duration = widget.interval;
_animation.curve = widget.curve;
}

@override
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: widget_loading
description: An easy way to hide a widget when you have nothing to show yet and need a loading animation at the same time.
version: 0.3.0
version: 0.3.1
repository: https://github.com/SplashByte/widget_loading

environment:
Expand Down