Skip to content

Commit

Permalink
Merge pull request #24 from fenicfelix/dev
Browse files Browse the repository at this point in the history
Fixes the error being logged when closing smart edge alert
  • Loading branch information
fenicfelix authored May 3, 2024
2 parents bbd25fa + c8db23a commit 8ff1f40
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@

## 0.1.0

* Updates README.md with a detailed description of how to use the Smart Edge Alert.
* Updates README.md with a detailed description of how to use the Smart Edge Alert.

## 0.1.1

* Fixes bug on closing the smart edge alert
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A class responsible for showing the smart alert.

```yaml
# add this line to your dependencies
smart_edge_alert: ^0.1.0
smart_edge_alert: ^0.1.1
```
```dart
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.8"
version: "0.1.1"
source_span:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/smart_edge_alert.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class _SmartEdgeOverlayState extends State<SmartEdgeOverlay>
_controller.addStatusListener((listener) async {
if (listener == AnimationStatus.completed) {
await Future.delayed(Duration(seconds: widget.overlayDuration ?? 1));
_controller.reverse();
// _controller.reverse();
await Future.delayed(const Duration(milliseconds: 700));
OverlayView.dismiss();
}
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: smart_edge_alert
description: "A Flutter package that shows an interrupted smart alert from top or bottom."
version: 0.1.0
version: 0.1.1
homepage: https://github.com/fenicfelix/smart_edge_alert

environment:
Expand Down

0 comments on commit 8ff1f40

Please sign in to comment.