Closed kamleshwebtech closed 3 years ago
I did some research from main.dart to landing page where I implemented curved_navigation_bar package and found that I ran into same problem and fixed it by removing SnackBar before any call to Navigator with ScaffoldMessenger.of(context).removeCurrentSnackBar().
Look like this with Sample code:
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('A SnackBar has been shown.'),
animation: null,
),
);
ScaffoldMessenger.of(context).removeCurrentSnackBar();
Navigator.pushReplacementNamed(context, '/dashboard');
Hope it'll work for you.
FYI It was happening due to SnackBar's animation. I have set it to null "animation: null," and it worked. Thanks.
I am getting below error at the time of compile and running this curved_navigation_bar example while I am not using any herotag in my entire app:
Kindly suggest what is the issue and how can we solve it. Thanks a lot.