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
a9b7a41b
Commit
a9b7a41b
authored
Mar 14, 2016
by
Hans Muller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2690 from HansMuller/copy_with_rename
Updated AppBar.copyWith parameter names
parents
5ca03073
c111daf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
app_bar.dart
packages/flutter/lib/src/material/app_bar.dart
+6
-6
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+5
-5
No files found.
packages/flutter/lib/src/material/app_bar.dart
View file @
a9b7a41b
...
...
@@ -42,9 +42,9 @@ class AppBar extends StatelessWidget {
AppBar
copyWith
({
Key
key
,
Widget
le
ft
,
Widget
center
,
List
<
Widget
>
right
,
Widget
le
ading
,
Widget
title
,
List
<
Widget
>
actions
,
WidgetBuilder
flexibleSpace
,
double
foregroundOpacity
,
int
elevation
,
...
...
@@ -54,9 +54,9 @@ class AppBar extends StatelessWidget {
})
{
return
new
AppBar
(
key:
key
??
this
.
key
,
leading:
le
ft
??
this
.
leading
,
title:
center
??
this
.
title
,
actions:
right
??
this
.
actions
,
leading:
le
ading
??
this
.
leading
,
title:
title
??
this
.
title
,
actions:
actions
??
this
.
actions
,
flexibleSpace:
flexibleSpace
??
this
.
flexibleSpace
,
foregroundOpacity:
foregroundOpacity
??
this
.
foregroundOpacity
,
tabBar:
tabBar
??
this
.
tabBar
,
...
...
packages/flutter/lib/src/material/scaffold.dart
View file @
a9b7a41b
...
...
@@ -406,10 +406,10 @@ class ScaffoldState extends State<Scaffold> {
if
(
appBar
==
null
)
return
null
;
EdgeInsets
appBarPadding
=
new
EdgeInsets
.
only
(
top:
padding
.
top
);
Widget
le
ft
=
appBar
.
leading
;
if
(
le
ft
==
null
)
{
Widget
le
ading
=
appBar
.
leading
;
if
(
le
ading
==
null
)
{
if
(
config
.
drawer
!=
null
)
{
le
ft
=
new
IconButton
(
le
ading
=
new
IconButton
(
icon:
Icons
.
menu
,
onPressed:
openDrawer
,
tooltip:
'Open navigation menu'
// TODO(ianh): Figure out how to localize this string
...
...
@@ -417,7 +417,7 @@ class ScaffoldState extends State<Scaffold> {
}
else
{
_shouldShowBackArrow
??=
Navigator
.
canPop
(
context
);
if
(
_shouldShowBackArrow
)
{
le
ft
=
new
IconButton
(
le
ading
=
new
IconButton
(
icon:
Icons
.
arrow_back
,
onPressed:
()
=>
Navigator
.
pop
(
context
),
tooltip:
'Back'
// TODO(ianh): Figure out how to localize this string
...
...
@@ -429,7 +429,7 @@ class ScaffoldState extends State<Scaffold> {
elevation:
elevation
??
appBar
.
elevation
??
4
,
padding:
appBarPadding
,
foregroundOpacity:
foregroundOpacity
,
le
ft:
left
le
ading:
leading
);
}
...
...
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