Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f049f436
Unverified
Commit
f049f436
authored
Apr 16, 2018
by
Michael Goderbauer
Committed by
GitHub
Apr 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update AppBar docs to analyze sample code (#16634)
parent
b1ecf1ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+10
-9
No files found.
packages/flutter/lib/src/material/app_bar.dart
View file @
f049f436
...
...
@@ -188,22 +188,23 @@ class AppBar extends StatefulWidget implements PreferredSizeWidget {
/// For less common operations, consider using a [PopupMenuButton] as the
/// last action.
///
///
For example:
///
## Sample code
///
/// ```dart
///
return
new Scaffold(
/// new Scaffold(
/// appBar: new AppBar(
/// title: new Text('Hello World'),
/// actions: <Widget>[
/// new IconButton(
/// icon: new Icon(Icons.shopping_cart),
/// tooltip: 'Open shopping cart',
/// onPressed: _openCart,
/// onPressed: () {
/// // ...
/// },
/// ),
/// ],
/// ),
/// body: _buildBody(),
/// );
/// )
/// ```
final
List
<
Widget
>
actions
;
...
...
@@ -767,11 +768,11 @@ class SliverAppBar extends StatefulWidget {
/// For less common operations, consider using a [PopupMenuButton] as the
/// last action.
///
///
For example:
///
## Sample code
///
/// ```dart
///
return
new Scaffold(
/// body: new CustomView(
/// new Scaffold(
/// body: new Custom
Scroll
View(
/// primary: true,
/// slivers: <Widget>[
/// new SliverAppBar(
...
...
@@ -789,7 +790,7 @@ class SliverAppBar extends StatefulWidget {
/// // ...rest of body...
/// ],
/// ),
/// )
;
/// )
/// ```
final
List
<
Widget
>
actions
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment