wie man Snackbar in InitState () in Flattern zeigt

// We can simply use the WidgetBinding instance to add a callback after the build method is called.. that will show the
// snackbar after the initState is completed and build method is called.

void initState() {
 super.initState();
WidgetsBinding.instance
    .addPostFrameCallback((_) => _scaffoldKey.currentState.showSnackBar(SnackBar(content: Text("Your message here..")));
}
Bewildered Badger