Using a Scaffold
Android and iOS user interfaces are based on two different design languages. Android uses Material Design, while Apple has created the Human Interface Guidelines for iOS, but the Flutter team calls the iOS design pattern Cupertino, in honor of Apple’s hometown. These two packages, Material Design and Cupertino, provide a set of widgets that mirror the user experience of their respective platforms.
These frameworks use a widget called Scaffold
(CupertinoScaffold
in the Cupertino framework) that provides a basic structure of a screen.
In this recipe, you are going to give your app some structure. You will be using the Scaffold
widget to add an AppBar
to the top of the screen and a slide-out drawer that you can pull from the left.
Getting ready
You should have completed the previous recipe in this chapter before following along with this one.
Create a new file in the project...