SnackBars managed by the ScaffoldMessenger

Summary

Context

Description of change

Migration guide

Timeline

References

Summary

The SnackBar API within the Scaffold is now handled by the
ScaffoldMessenger, one of which is
available by default within the context of a MaterialApp.

Context

Description of change

The previous approach called upon the Scaffold to show a SnackBar.

Scaffold

key:

scaffoldKey

body:

Builder

builder:

BuildContext

context

return

GestureDetector

onTap:

()

Scaffold

of