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
188c25fb
Unverified
Commit
188c25fb
authored
Oct 03, 2018
by
xster
Committed by
GitHub
Oct 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify that only one nav bar should be in each route (#22584)
parent
dd3af0e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
nav_bar.dart
packages/flutter/lib/src/cupertino/nav_bar.dart
+16
-6
No files found.
packages/flutter/lib/src/cupertino/nav_bar.dart
View file @
188c25fb
...
...
@@ -148,8 +148,8 @@ bool _isTransitionable(BuildContext context) {
/// is provided and [automaticallyImplyLeading] is true (true by default).
///
/// The [middle] widget will automatically be a title text from the current
///
route if none is provided and [automaticallyImplyMiddle] is true (true by
/// default).
///
[CupertinoPageRoute] if none is provided and [automaticallyImplyMiddle] is
///
true (true by
default).
///
/// It should be placed at top of the screen and automatically accounts for
/// the OS's status bar.
...
...
@@ -158,12 +158,17 @@ bool _isTransitionable(BuildContext context) {
/// default), it will produce a blurring effect to the content behind it.
///
/// When [transitionBetweenRoutes] is true, this navigation bar will transition
/// on top of the routes instead of inside
it
if the route being transitioned
/// on top of the routes instead of inside
them
if the route being transitioned
/// to also has a [CupertinoNavigationBar] or a [CupertinoSliverNavigationBar]
/// with [transitionBetweenRoutes] set to true. If [transitionBetweenRoutes] is
/// true, none of the [Widget] parameters can contain a key in its subtree since
/// that widget will exist in multiple places in the tree simultaneously.
///
/// By default, only one [CupertinoNavigationBar] or [CupertinoSliverNavigationBar]
/// should be present in each [PageRoute] to support the default transitions.
/// Use [transitionBetweenRoutes] or [heroTag] to customize the transition
/// behavior for multiple navigation bars per route.
///
/// See also:
///
/// * [CupertinoPageScaffold], a page layout helper typically hosting the
...
...
@@ -432,17 +437,22 @@ class _CupertinoNavigationBarState extends State<CupertinoNavigationBar> {
/// is provided and [automaticallyImplyLeading] is true (true by default).
///
/// The [largeTitle] widget will automatically be a title text from the current
///
route if none is provided and [automaticallyImplyTitle] is true (true by
/// default).
///
[CupertinoPageRoute] if none is provided and [automaticallyImplyTitle] is
///
true (true by
default).
///
/// When [transitionBetweenRoutes] is true, this navigation bar will transition
/// on top of the routes instead of inside
it
if the route being transitioned
/// on top of the routes instead of inside
them
if the route being transitioned
/// to also has a [CupertinoNavigationBar] or a [CupertinoSliverNavigationBar]
/// with [transitionBetweenRoutes] set to true. If [transitionBetweenRoutes] is
/// true, none of the [Widget] parameters can contain any [GlobalKey]s in their
/// subtrees since those widgets will exist in multiple places in the tree
/// simultaneously.
///
/// By default, only one [CupertinoNavigationBar] or [CupertinoSliverNavigationBar]
/// should be present in each [PageRoute] to support the default transitions.
/// Use [transitionBetweenRoutes] or [heroTag] to customize the transition
/// behavior for multiple navigation bars per route.
///
/// See also:
///
/// * [CupertinoNavigationBar], an iOS navigation bar for use on non-scrolling
...
...
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