diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e9c3b7..b962da5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [2.5.1] - 03 May 2023 + +- **Fix**: Formatting issue in bubbles.dart file +- **Code**: Added scripts for deploy and dry-run + ## [2.5.0] - 02 May 2023 - **Fix**: setState after the widget being disposed #4 diff --git a/README.md b/README.md index 543eee9..f31c2dc 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ In your flutter project(in pubspec.yaml) add the dependency: ```yaml dependencies: - floating_bubbles: ^2.5.0 + floating_bubbles: ^2.5.1 ``` Import the package: diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..f52ac2e --- /dev/null +++ b/deploy.sh @@ -0,0 +1,11 @@ +#! /bin/bash + +BRANCH="$(git rev-parse --abbrev-ref HEAD)" +if [[ "$BRANCH" != "master" ]]; then + echo 'Deploy script will only run in master branch.'; + exit 1; +fi + +echo 'Deploying to Pub...'; +dart format . +flutter pub publish diff --git a/dry-run.sh b/dry-run.sh new file mode 100644 index 0000000..b760564 --- /dev/null +++ b/dry-run.sh @@ -0,0 +1,3 @@ +#! /bin/bash +dart format . +flutter pub publish -n \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index 4f64bdc..146e21c 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -63,7 +63,7 @@ packages: path: ".." relative: true source: path - version: "2.5.0" + version: "2.5.1" flutter: dependency: "direct main" description: flutter diff --git a/lib/src/bubbles.dart b/lib/src/bubbles.dart index abf6262..ac1af4e 100644 --- a/lib/src/bubbles.dart +++ b/lib/src/bubbles.dart @@ -139,7 +139,7 @@ class _FloatingBubblesState extends State { } if (widget.duration != null && widget.duration != 0) Timer(Duration(seconds: widget.duration!), () { - if(mounted) { + if (mounted) { setState(() { checkToStopAnimation = 1; }); diff --git a/pubspec.yaml b/pubspec.yaml index 583437a..3d630be 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: floating_bubbles description: A Flutter Package for adding Floating bubbles on the Foreground to any Flutter widget. -version: 2.5.0 +version: 2.5.1 homepage: https://github.com/Poujhit/floating_bubbles environment: sdk: '>=2.12.0 <3.0.0'