Flutter: Displaying SnackBar Using GlobalKey
Learn how to display a SnackBar in Flutter using a GlobalKey. This tutorial covers creating an app with two tabs and constructing a GlobalKey to manage the SnackBar.

Brandon Donnelson
8.4K views • Mar 31, 2018

About this video
In this video I cover displaying the snack bar using the global key.
In this episode I cover:
- Create an app with two tabs
- Construct a GlobalKey for the Page Scaffold
- Pass the GlobalKey to the tabs widgets
- On change in tab will show the Snackbar
Source code used in this episode:
https://gist.github.com/branflake2267/7bf49fc232743d0cacfb90e8aa71467d
In this episode I cover:
- Create an app with two tabs
- Construct a GlobalKey for the Page Scaffold
- Pass the GlobalKey to the tabs widgets
- On change in tab will show the Snackbar
Source code used in this episode:
https://gist.github.com/branflake2267/7bf49fc232743d0cacfb90e8aa71467d
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
8.4K
Likes
122
Duration
12:19
Published
Mar 31, 2018
User Reviews
4.5
(1) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
No specific trending topics match this video yet.
Explore All Trends