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
7e6aa6de
Commit
7e6aa6de
authored
Nov 03, 2016
by
Ian Hickson
Committed by
GitHub
Nov 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify AppBar.actions (#6700)
Closes
https://github.com/flutter/flutter/issues/6125
parent
b47b16f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+26
-6
No files found.
packages/flutter/lib/src/material/app_bar.dart
View file @
7e6aa6de
...
@@ -125,11 +125,13 @@ class _AppBarExpandedHeight extends InheritedWidget {
...
@@ -125,11 +125,13 @@ class _AppBarExpandedHeight extends InheritedWidget {
///
///
/// See also:
/// See also:
///
///
/// * [Scaffold]
/// * [Scaffold], which displays the [AppBar] in its [Scaffold.appBar] slot.
/// * [TabBar]
/// * [TabBar], which is typically placed in the [bottom] slot of the [AppBar]
/// * [IconButton]
/// if the screen has multiple pages arranged in tabs.
/// * [PopupMenuButton]
/// * [IconButton], which is used with [actions] to show buttons on the app bar.
/// * [FlexibleSpaceBar]
/// * [PopupMenuButton], to show a popup menu on the app bar, via [actions].
/// * [FlexibleSpaceBar], which is used with [flexibleSpace] when the app bar
/// can expand and collapse.
/// * <https://material.google.com/layout/structure.html#structure-toolbars>
/// * <https://material.google.com/layout/structure.html#structure-toolbars>
class
AppBar
extends
StatelessWidget
{
class
AppBar
extends
StatelessWidget
{
/// Creates a material design app bar.
/// Creates a material design app bar.
...
@@ -172,11 +174,29 @@ class AppBar extends StatelessWidget {
...
@@ -172,11 +174,29 @@ class AppBar extends StatelessWidget {
/// of the app.
/// of the app.
final
Widget
title
;
final
Widget
title
;
/// Widgets to display after the
title
widget.
/// Widgets to display after the
[title]
widget.
///
///
/// Typically these widgets are [IconButton]s representing common operations.
/// Typically these widgets are [IconButton]s representing common operations.
/// For less common operations, consider using a [PopupMenuButton] as the
/// For less common operations, consider using a [PopupMenuButton] as the
/// last action.
/// last action.
///
/// For example:
///
/// ```dart
/// return 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,
/// ),
/// ]
/// ),
/// body: _buildBody(),
/// );
/// ```
final
List
<
Widget
>
actions
;
final
List
<
Widget
>
actions
;
/// This widget is stacked behind the toolbar and the tabbar and it is not
/// This widget is stacked behind the toolbar and the tabbar and it is not
...
...
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