top-snackbar-flutter icon indicating copy to clipboard operation
top-snackbar-flutter copied to clipboard

onTap doesn't work when using onSwipe

Open xOldeVx opened this issue 1 year ago • 1 comments

I want to let the user to select to tap on the snackBar to go to the main screen, or just dismiss it by swipe, but it doesn't work, the onTap function is working only if i'm not using DismissType.onSwipe

showTopSnackBar( Overlay.of(context), Container(child: Text('Text')), curve: Curves.fastLinearToSlowEaseIn, dismissDirection: [DismissDirection.up, DismissDirection.horizontal], dismissType: DismissType.onSwipe, <----------------- when comment it, the goToMainScreen() is working onTap: () => goToMainScreen(context), );

xOldeVx avatar Nov 14 '23 09:11 xOldeVx