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
46b60773
Commit
46b60773
authored
Nov 04, 2016
by
Jason Simmons
Committed by
GitHub
Nov 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Gallery usage of Scaffold.of (#6639)
parent
e7d5c7d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+3
-3
No files found.
examples/flutter_gallery/lib/gallery/home.dart
View file @
46b60773
...
...
@@ -99,7 +99,7 @@ class GalleryHome extends StatefulWidget {
}
class
GalleryHomeState
extends
State
<
GalleryHome
>
with
SingleTickerProviderStateMixin
{
static
final
Key
_homeKey
=
new
ValueKey
<
String
>(
'Gallery Home'
);
static
final
GlobalKey
<
ScaffoldState
>
_scaffoldKey
=
new
GlobalKey
<
ScaffoldState
>(
);
static
final
GlobalKey
<
ScrollableState
>
_scrollableKey
=
new
GlobalKey
<
ScrollableState
>();
AnimationController
_controller
;
...
...
@@ -148,7 +148,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
Widget
build
(
BuildContext
context
)
{
final
double
statusBarHeight
=
MediaQuery
.
of
(
context
).
padding
.
top
;
Widget
home
=
new
Scaffold
(
key:
_
home
Key
,
key:
_
scaffold
Key
,
scrollableKey:
_scrollableKey
,
drawer:
new
GalleryDrawer
(
useLightTheme:
config
.
useLightTheme
,
...
...
@@ -166,7 +166,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
background:
new
Builder
(
builder:
(
BuildContext
context
)
{
return
new
_AppBarBackground
(
animation:
Scaffold
.
of
(
context
)?
.
appBarAnimation
animation:
_scaffoldKey
.
currentState
.
appBarAnimation
);
}
)
...
...
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