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
91b6319a
Commit
91b6319a
authored
Aug 24, 2016
by
Collin Jackson
Committed by
GitHub
Aug 24, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow disabling the performance overlay in main.dart, fixes #5580 (#5583)
parent
09e68c33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app.dart
examples/flutter_gallery/lib/gallery/app.dart
+8
-3
drawer.dart
examples/flutter_gallery/lib/gallery/drawer.dart
+1
-1
home.dart
examples/flutter_gallery/lib/gallery/home.dart
+0
-1
No files found.
examples/flutter_gallery/lib/gallery/app.dart
View file @
91b6319a
...
...
@@ -26,9 +26,14 @@ final ThemeData _kGalleryDarkTheme = new ThemeData(
);
class
GalleryApp
extends
StatefulWidget
{
GalleryApp
({
this
.
updateUrlFetcher
,
Key
key
})
:
super
(
key:
key
);
GalleryApp
({
this
.
updateUrlFetcher
,
this
.
enablePerformanceOverlay
:
true
,
Key
key
}
)
:
super
(
key:
key
);
final
UpdateUrlFetcher
updateUrlFetcher
;
final
bool
enablePerformanceOverlay
;
@override
GalleryAppState
createState
()
=>
new
GalleryAppState
();
...
...
@@ -56,11 +61,11 @@ class GalleryAppState extends State<GalleryApp> {
});
},
showPerformanceOverlay:
_showPerformanceOverlay
,
onShowPerformanceOverlayChanged:
(
bool
value
)
{
onShowPerformanceOverlayChanged:
config
.
enablePerformanceOverlay
?
(
bool
value
)
{
setState
(()
{
_showPerformanceOverlay
=
value
;
});
},
}
:
null
,
timeDilation:
timeDilation
,
onTimeDilationChanged:
(
double
value
)
{
setState
(()
{
...
...
examples/flutter_gallery/lib/gallery/drawer.dart
View file @
91b6319a
...
...
@@ -162,7 +162,7 @@ class GalleryDrawer extends StatelessWidget {
]
)
),
new
DrawerItem
(
onShowPerformanceOverlayChanged
==
null
?
new
Container
(
height:
0.0
)
:
new
DrawerItem
(
icon:
new
Icon
(
Icons
.
assessment
),
onPressed:
()
{
onShowPerformanceOverlayChanged
(!
showPerformanceOverlay
);
},
selected:
showPerformanceOverlay
,
...
...
examples/flutter_gallery/lib/gallery/home.dart
View file @
91b6319a
...
...
@@ -80,7 +80,6 @@ class GalleryHome extends StatefulWidget {
})
:
super
(
key:
key
)
{
assert
(
onThemeChanged
!=
null
);
assert
(
onTimeDilationChanged
!=
null
);
assert
(
onShowPerformanceOverlayChanged
!=
null
);
}
final
bool
useLightTheme
;
...
...
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