Skip to content

Commit bb32808

Browse files
authored
Update the Scaffold examples; use the new button classes (flutter#61394)
1 parent 88a78d6 commit bb32808

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/flutter/lib/src/material/scaffold.dart

+9-9
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ class Scaffold extends StatefulWidget {
11111111

11121112
/// A set of buttons that are displayed at the bottom of the scaffold.
11131113
///
1114-
/// Typically this is a list of [FlatButton] widgets. These buttons are
1114+
/// Typically this is a list of [TextButton] widgets. These buttons are
11151115
/// persistently visible, even if the [body] of the scaffold scrolls.
11161116
///
11171117
/// These widgets will be wrapped in a [ButtonBar].
@@ -1153,7 +1153,7 @@ class Scaffold extends StatefulWidget {
11531153
/// key: _scaffoldKey,
11541154
/// appBar: AppBar(title: const Text('Drawer Demo')),
11551155
/// body: Center(
1156-
/// child: RaisedButton(
1156+
/// child: ElevatedButton(
11571157
/// onPressed: _openDrawer,
11581158
/// child: const Text('Open Drawer'),
11591159
/// ),
@@ -1164,7 +1164,7 @@ class Scaffold extends StatefulWidget {
11641164
/// mainAxisAlignment: MainAxisAlignment.center,
11651165
/// children: <Widget>[
11661166
/// const Text('This is the Drawer'),
1167-
/// RaisedButton(
1167+
/// ElevatedButton(
11681168
/// onPressed: _closeDrawer,
11691169
/// child: const Text('Close Drawer'),
11701170
/// ),
@@ -1213,7 +1213,7 @@ class Scaffold extends StatefulWidget {
12131213
/// key: _scaffoldKey,
12141214
/// appBar: AppBar(title: Text('Drawer Demo')),
12151215
/// body: Center(
1216-
/// child: RaisedButton(
1216+
/// child: ElevatedButton(
12171217
/// onPressed: _openEndDrawer,
12181218
/// child: Text('Open End Drawer'),
12191219
/// ),
@@ -1224,7 +1224,7 @@ class Scaffold extends StatefulWidget {
12241224
/// mainAxisAlignment: MainAxisAlignment.center,
12251225
/// children: <Widget>[
12261226
/// const Text('This is the Drawer'),
1227-
/// RaisedButton(
1227+
/// ElevatedButton(
12281228
/// onPressed: _closeEndDrawer,
12291229
/// child: const Text('Close Drawer'),
12301230
/// ),
@@ -1386,7 +1386,7 @@ class Scaffold extends StatefulWidget {
13861386
/// @override
13871387
/// Widget build(BuildContext context) {
13881388
/// return Center(
1389-
/// child: RaisedButton(
1389+
/// child: ElevatedButton(
13901390
/// child: Text('SHOW A SNACKBAR'),
13911391
/// onPressed: () {
13921392
/// Scaffold.of(context).showSnackBar(
@@ -1421,7 +1421,7 @@ class Scaffold extends StatefulWidget {
14211421
/// // can refer to the Scaffold with Scaffold.of().
14221422
/// builder: (BuildContext context) {
14231423
/// return Center(
1424-
/// child: RaisedButton(
1424+
/// child: ElevatedButton(
14251425
/// child: Text('SHOW A SNACKBAR'),
14261426
/// onPressed: () {
14271427
/// Scaffold.of(context).showSnackBar(SnackBar(
@@ -1966,7 +1966,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
19661966
/// ```dart
19671967
/// Widget build(BuildContext context) {
19681968
/// return Center(
1969-
/// child: RaisedButton(
1969+
/// child: ElevatedButton(
19701970
/// child: const Text('showBottomSheet'),
19711971
/// onPressed: () {
19721972
/// Scaffold.of(context).showBottomSheet<void>(
@@ -1980,7 +1980,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
19801980
/// mainAxisSize: MainAxisSize.min,
19811981
/// children: <Widget>[
19821982
/// const Text('BottomSheet'),
1983-
/// RaisedButton(
1983+
/// ElevatedButton(
19841984
/// child: const Text('Close BottomSheet'),
19851985
/// onPressed: () => Navigator.pop(context),
19861986
/// )

0 commit comments

Comments
 (0)