diff --git a/examples/cookbook/design/drawer/lib/drawer.dart b/examples/cookbook/design/drawer/lib/drawer.dart index 3e1c30bb06..0649317934 100644 --- a/examples/cookbook/design/drawer/lib/drawer.dart +++ b/examples/cookbook/design/drawer/lib/drawer.dart @@ -3,6 +3,9 @@ import 'package:flutter/material.dart'; void drawerStart() { // #docregion DrawerStart Scaffold( + appBar: AppBar( + title: const Text('AppBar without hamburger button'), + ), drawer: null, // Add a Drawer here in the next step. ); // #enddocregion DrawerStart @@ -11,6 +14,9 @@ void drawerStart() { void drawerEmpty() { // #docregion DrawerEmpty Scaffold( + appBar: AppBar( + title: const Text('AppBar with hamburger button'), + ), drawer: Drawer( child: null, // Populate the Drawer in the next step. ), diff --git a/src/cookbook/design/drawer.md b/src/cookbook/design/drawer.md index dc1f8e6074..5ce3c3ce9a 100644 --- a/src/cookbook/design/drawer.md +++ b/src/cookbook/design/drawer.md @@ -35,6 +35,9 @@ In this example, create a `Scaffold` with a `drawer`: ```dart Scaffold( + appBar: AppBar( + title: const Text('AppBar without hamburger button'), + ), drawer: // Add a Drawer here in the next step. ); ``` @@ -49,6 +52,9 @@ which adheres to the Material Design spec. ```dart Scaffold( + appBar: AppBar( + title: const Text('AppBar with hamburger button'), + ), drawer: Drawer( child: // Populate the Drawer in the next step. ),