Skip to content

Commit dc2af24

Browse files
authored
Merge pull request #5 from SplashByte/dev
version 0.3.1
2 parents 18825bc + ccfdf87 commit dc2af24

4 files changed

Lines changed: 12 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
## 0.3.1 (2022-03-18)
2+
3+
- Minor fixes
4+
15
## 0.3.0 (2022-03-18)
26

3-
- Several minor Fixes
7+
- Several minor fixes
48
- Performance improvements
59
- BREAKING: Changes default value of `padding` to `EdgeInsets.zero`
610
- BREAKING: Changes default color to `Theme.of(context).colorScheme.secondary`
711

812
## 0.2.1 (2021-04-02)
913

10-
- Minor Changes/Fixes
14+
- Minor changes/fixes
1115
- Changes default values of `CircularWidgetLoading`
1216

1317
## 0.2.0 (2021-03-04)

example/pubspec.lock

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ packages:
4343
url: "https://pub.dartlang.org"
4444
source: hosted
4545
version: "1.15.0"
46-
cupertino_icons:
47-
dependency: "direct main"
48-
description:
49-
name: cupertino_icons
50-
url: "https://pub.dartlang.org"
51-
source: hosted
52-
version: "1.0.2"
5346
fake_async:
5447
dependency: transitive
5548
description:
@@ -162,7 +155,7 @@ packages:
162155
path: ".."
163156
relative: true
164157
source: path
165-
version: "0.3.0"
158+
version: "0.3.1"
166159
sdks:
167-
dart: ">=2.14.0 <3.0.0"
160+
dart: ">=2.15.0 <3.0.0"
168161
flutter: ">=1.17.0"

lib/src/widgets/wiper_loading.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ class _WiperLoadingState extends LoadingWidgetState<WiperLoading>
145145
)..repeat(reverse: true);
146146

147147
_animation = CurvedAnimation(parent: _controller, curve: widget.curve)
148-
..addListener(() {
149-
if (loaded) return;
150-
setState(() {});
151-
})
152148
..addStatusListener((status) {
153149
switch (status) {
154150
case AnimationStatus.forward:
@@ -243,6 +239,9 @@ class _WiperLoadingState extends LoadingWidgetState<WiperLoading>
243239
setLoadingState(LoadingState.DISAPPEARING, rebuild: false);
244240
_controller.animateBack(0.0);
245241
}
242+
243+
_controller.duration = widget.interval;
244+
_animation.curve = widget.curve;
246245
}
247246

248247
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: widget_loading
22
description: An easy way to hide a widget when you have nothing to show yet and need a loading animation at the same time.
3-
version: 0.3.0
3+
version: 0.3.1
44
repository: https://github.com/SplashByte/widget_loading
55

66
environment:

0 commit comments

Comments
 (0)