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
49c78459
Unverified
Commit
49c78459
authored
Dec 21, 2019
by
Alexandre Ardhuin
Committed by
GitHub
Dec 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix analysis (#47594)
parent
924efae9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
scales.dart
examples/flutter_gallery/lib/gallery/scales.dart
+3
-2
drawer_test.dart
examples/flutter_gallery/test/drawer_test.dart
+2
-2
No files found.
examples/flutter_gallery/lib/gallery/scales.dart
View file @
49c78459
...
...
@@ -47,8 +47,9 @@ class GalleryVisualDensityValue {
bool
operator
==(
dynamic
other
)
{
if
(
runtimeType
!=
other
.
runtimeType
)
return
false
;
final
GalleryVisualDensityValue
typedOther
=
other
;
return
visualDensity
==
typedOther
.
visualDensity
&&
label
==
typedOther
.
label
;
return
other
is
GalleryVisualDensityValue
&&
visualDensity
==
other
.
visualDensity
&&
label
==
other
.
label
;
}
@override
...
...
examples/flutter_gallery/test/drawer_test.dart
View file @
49c78459
...
...
@@ -70,7 +70,7 @@ void main() {
await
tester
.
pumpAndSettle
();
await
tester
.
tap
(
find
.
text
(
'Compact'
));
await
tester
.
pumpAndSettle
();
app
=
find
.
byType
(
MaterialApp
).
evaluate
().
first
.
widget
;
app
=
find
.
byType
(
MaterialApp
).
evaluate
().
first
.
widget
as
MaterialApp
;
expect
(
app
.
theme
.
visualDensity
,
equals
(
VisualDensity
.
compact
));
await
tester
.
tap
(
find
.
byIcon
(
Icons
.
arrow_drop_down
).
at
(
2
));
...
...
@@ -80,7 +80,7 @@ void main() {
matching:
find
.
text
(
'System Default'
)
));
await
tester
.
pumpAndSettle
();
app
=
find
.
byType
(
MaterialApp
).
evaluate
().
first
.
widget
;
app
=
find
.
byType
(
MaterialApp
).
evaluate
().
first
.
widget
as
MaterialApp
;
expect
(
app
.
theme
.
visualDensity
,
equals
(
const
VisualDensity
()));
// Verify platform settings
...
...
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