I want to display a simple SnackBar inside Flutter\'s stateful widget. My application creates new instance of MaterialApp with a stateful widget ca
initState been called before build I guess _scaffoldKey.currentState has not been initialized when it is call.
I don't know if you can get a ScaffoldState from initState. If you change your code you can show the snackbar from build method with:
Scaffold.of(context).showSnackBar(SnackBar(Text(value)));