wasabeef / flutter-architecture-blueprints

Flutter Architecture Blueprints is a project that introduces MVVM architecture and project structure approaches to developing Flutter apps.
MIT License
1.61k stars 261 forks source link

Scaffold.of() called with a context that does not contain a Scaffold. #32

Closed tenSunFree closed 4 years ago

tenSunFree commented 4 years ago

Scaffold.of() called with a context that does not contain a Scaffold. 01 02

Maybe you can solve this problem by adding ScaffoldStateGlobalKey. 03

wasabeef commented 4 years ago

@tenSunFree Thank you for your advice. That's correct. But I want to think more about how using Scackbar with Riverpod. So now I don't use the Snackbar this time 🤔