Flutter: Two keys in Scaffold

Issue In this Flutter code showSnackBar() doesn’t work. I don’t know how to use the two keys (_scaffoldStateKey and _scaffoldMessengerKey) at the same time. How should I correct it? class _GetStateObjectRouteState extends State<GetStateObjectRoute> { final GlobalKey<ScaffoldState> _scaffoldStateKey= GlobalKey(); final GlobalKey<ScaffoldMessengerState>

Continue reading