Skip to content

Commit

Permalink
the toast no longer consumes touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
xdd666t committed Jan 26, 2022
1 parent db6f042 commit b795374
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Solve the page jump scene on the dialog (useSystem)
- SmartStatus add status:custom,attach,allCustom
- The entry 'init' method can customize the default style of Toast and Loading
- Optimize toast:The toast no longer consumes touch events
- Fix bug

# [3.2.x]
Expand Down
2 changes: 1 addition & 1 deletion lib/src/helper/navigator_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SmartNavigatorObserver extends NavigatorObserver {
var dialogQueue = DialogProxy.instance.dialogQueue;
int length = dialogQueue.length;
for (var i = 0; i < length; i++) {
if (dialogQueue.length == 0) return;
if (dialogQueue.isEmpty) return;
var item = dialogQueue.last;
if (item.useSystem) return;

Expand Down
2 changes: 1 addition & 1 deletion lib/src/widget/toast_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _ToastHelperState extends State<ToastHelper> with WidgetsBindingObserver {
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.only(bottom: _keyboardHeight),
child: widget.child,
child: IgnorePointer(child: widget.child),
);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
An elegant Flutter Dialog solution,
Easily implement Toast, Loading and custom Dialog,
Make the use of the dialog easier!
version: 3.3.6
version: 3.3.7
homepage: https://github.com/fluttercandies/flutter_smart_dialog
publish_to: https://pub.dartlang.org

Expand Down

0 comments on commit b795374

Please sign in to comment.