Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Eduardo Florence
2021-01-11 20:07:05 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
009de6a199d701ea4235558ca8a7a554f6dce4ab
009de6a1
1 parent
3444754f
Snackbar run Get.back multiple times if you tap to dismiss multiple times
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
lib/get_navigation/src/snackbar/snack_route.dart
lib/get_navigation/src/snackbar/snack_route.dart
View file @
009de6a
...
...
@@ -50,6 +50,7 @@ class SnackRoute<T> extends OverlayRoute<T> {
Alignment
_initialAlignment
;
Alignment
_endAlignment
;
bool
_wasDismissedBySwipe
=
false
;
bool
_onTappedDismiss
=
false
;
Timer
_timer
;
...
...
@@ -62,7 +63,12 @@ class SnackRoute<T> extends OverlayRoute<T> {
OverlayEntry
(
builder:
(
context
)
{
return
GestureDetector
(
onTap:
snack
.
isDismissible
?
Get
.
back
:
null
,
onTap:
()
{
if
(
snack
.
isDismissible
&&
!
_onTappedDismiss
)
{
_onTappedDismiss
=
true
;
Get
.
back
();
}
},
child:
AnimatedBuilder
(
animation:
_filterBlurAnimation
,
builder:
(
context
,
child
)
{
...
...
Please
register
or
login
to post a comment