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
cdb82fce
Unverified
Commit
cdb82fce
authored
Apr 24, 2018
by
Hans Muller
Committed by
GitHub
Apr 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put the backdrop demo controls on the right (#16902)
parent
b1330eff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
22 deletions
+10
-22
backdrop_demo.dart
...ples/flutter_gallery/lib/demo/material/backdrop_demo.dart
+10
-15
live_smoketest.dart
examples/flutter_gallery/test/live_smoketest.dart
+0
-1
smoke_test.dart
examples/flutter_gallery/test/smoke_test.dart
+0
-6
No files found.
examples/flutter_gallery/lib/demo/material/backdrop_demo.dart
View file @
cdb82fce
...
...
@@ -342,14 +342,7 @@ class _BackdropDemoState extends State<BackdropDemo> with SingleTickerProviderSt
},
),
);
}).
toList
()
..
add
(
const
SizedBox
(
height:
8.0
))
..
add
(
new
Align
(
alignment:
AlignmentDirectional
.
centerStart
,
child:
new
BackButton
(
color:
Colors
.
white
.
withOpacity
(
0.5
))
),
);
}).
toList
();
return
new
Container
(
key:
_backdropKey
,
...
...
@@ -388,16 +381,18 @@ class _BackdropDemoState extends State<BackdropDemo> with SingleTickerProviderSt
return
new
Scaffold
(
appBar:
new
AppBar
(
elevation:
0.0
,
leading:
new
IconButton
(
onPressed:
_toggleBackdropPanelVisibility
,
icon:
new
AnimatedIcon
(
icon:
AnimatedIcons
.
close_menu
,
progress:
_controller
.
view
,
),
),
title:
new
BackdropTitle
(
listenable:
_controller
.
view
,
),
actions:
<
Widget
>[
new
IconButton
(
onPressed:
_toggleBackdropPanelVisibility
,
icon:
new
AnimatedIcon
(
icon:
AnimatedIcons
.
close_menu
,
progress:
_controller
.
view
,
),
),
],
),
body:
new
LayoutBuilder
(
builder:
_buildStack
,
...
...
examples/flutter_gallery/test/live_smoketest.dart
View file @
cdb82fce
...
...
@@ -30,7 +30,6 @@ const List<String> _kUnsynchronizedDemos = const <String>[
// These demos can't be backed out of by tapping a button whose
// tooltip is 'Back'.
const
List
<
String
>
_kSkippedDemos
=
const
<
String
>[
'Backdrop'
,
'Pull to refresh'
,
];
...
...
examples/flutter_gallery/test/smoke_test.dart
View file @
cdb82fce
...
...
@@ -102,12 +102,6 @@ Future<Null> smokeDemo(WidgetTester tester, String routeName) async {
await
tester
.
pump
();
await
tester
.
pump
(
const
Duration
(
milliseconds:
400
));
// This demo's back button isn't initially visible.
if
(
routeName
==
'/material/backdrop'
)
{
await
tester
.
tap
(
find
.
byTooltip
(
'Tap to dismiss'
));
await
tester
.
pumpAndSettle
();
}
// Go back
await
tester
.
pageBack
();
await
tester
.
pumpAndSettle
();
...
...
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