Skip to content

Commit

Permalink
Merge pull request #6 from Poujhit/dev
Browse files Browse the repository at this point in the history
Version v2.5.1 release
  • Loading branch information
Poujhit committed May 3, 2023
2 parents d276ade + 1445407 commit 481a1bf
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions dry-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash
dart format .
flutter pub publish -n
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.5.0"
version: "2.5.1"
flutter:
dependency: "direct main"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/src/bubbles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class _FloatingBubblesState extends State<FloatingBubbles> {
}
if (widget.duration != null && widget.duration != 0)
Timer(Duration(seconds: widget.duration!), () {
if(mounted) {
if (mounted) {
setState(() {
checkToStopAnimation = 1;
});
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: 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'
Expand Down

0 comments on commit 481a1bf

Please sign in to comment.