flutter show snackbar with scaffold key code example
Example: show snackbar without scaffold flutter
void _showToast(BuildContext context) {
final scaffold = Scaffold.of(context);
scaffold.showSnackBar(
SnackBar(
content: const Text('Updating..'),
),
);
this._showToast(context);