From ccfdf87ba01da56668a7228d3c6e11908e5ea608 Mon Sep 17 00:00:00 2001 From: MaddinMade Date: Fri, 18 Mar 2022 18:50:54 +0100 Subject: [PATCH] version 0.3.1 --- CHANGELOG.md | 8 ++++++-- example/pubspec.lock | 11 ++--------- lib/src/widgets/wiper_loading.dart | 7 +++---- pubspec.yaml | 2 +- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bdc718e..6bc4081 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/example/pubspec.lock b/example/pubspec.lock index bc87a11..39575ea 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -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: @@ -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" diff --git a/lib/src/widgets/wiper_loading.dart b/lib/src/widgets/wiper_loading.dart index 0f582c5..1a99f16 100644 --- a/lib/src/widgets/wiper_loading.dart +++ b/lib/src/widgets/wiper_loading.dart @@ -145,10 +145,6 @@ class _WiperLoadingState extends LoadingWidgetState )..repeat(reverse: true); _animation = CurvedAnimation(parent: _controller, curve: widget.curve) - ..addListener(() { - if (loaded) return; - setState(() {}); - }) ..addStatusListener((status) { switch (status) { case AnimationStatus.forward: @@ -243,6 +239,9 @@ class _WiperLoadingState extends LoadingWidgetState setLoadingState(LoadingState.DISAPPEARING, rebuild: false); _controller.animateBack(0.0); } + + _controller.duration = widget.interval; + _animation.curve = widget.curve; } @override diff --git a/pubspec.yaml b/pubspec.yaml index c9b70ab..bf126a8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: