Skip to content

Commit

Permalink
Merge branch 'main' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticmouse authored Jan 21, 2024
2 parents 65188be + 623549e commit 0bfcea7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/cookbook/design/drawer/lib/drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
),
Expand Down
6 changes: 6 additions & 0 deletions src/cookbook/design/drawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ In this example, create a `Scaffold` with a `drawer`:
<?code-excerpt "lib/drawer.dart (DrawerStart)" replace="/null, //g"?>
```dart
Scaffold(
appBar: AppBar(
title: const Text('AppBar without hamburger button'),
),
drawer: // Add a Drawer here in the next step.
);
```
Expand All @@ -49,6 +52,9 @@ which adheres to the Material Design spec.
<?code-excerpt "lib/drawer.dart (DrawerEmpty)" replace="/null, //g"?>
```dart
Scaffold(
appBar: AppBar(
title: const Text('AppBar with hamburger button'),
),
drawer: Drawer(
child: // Populate the Drawer in the next step.
),
Expand Down

0 comments on commit 0bfcea7

Please sign in to comment.