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
3c34ff7f
Unverified
Commit
3c34ff7f
authored
May 31, 2019
by
Dan Field
Committed by
GitHub
May 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prep for engine roll (#33662)
* Prep for engine roll
parent
c289c998
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
window.dart
packages/flutter_test/lib/src/window.dart
+17
-0
No files found.
packages/flutter_test/lib/src/window.dart
View file @
3c34ff7f
...
...
@@ -95,6 +95,23 @@ class TestWindow implements Window {
onMetricsChanged
();
}
// TODO(dnfield): Remove this ignore once custom embedders have had time to catch up
// And make this property actually wrap _window.viewPadding.
// @override
// ignore: annotate_overrides, public_member_api_docs
WindowPadding
get
viewPadding
=>
_viewPaddingTestValue
??
_window
.
padding
;
WindowPadding
_viewPaddingTestValue
;
/// Hides the real padding and reports the given [paddingTestValue] instead.
set
viewPaddingTestValue
(
WindowPadding
viewPaddingTestValue
)
{
_viewPaddingTestValue
=
viewPaddingTestValue
;
onMetricsChanged
();
}
/// Deletes any existing test padding and returns to using the real padding.
void
clearViewPaddingTestValue
()
{
_viewPaddingTestValue
=
null
;
onMetricsChanged
();
}
@override
WindowPadding
get
padding
=>
_paddingTestValue
??
_window
.
padding
;
WindowPadding
_paddingTestValue
;
...
...
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