Unverified Commit 49c78459 authored by Alexandre Ardhuin's avatar Alexandre Ardhuin Committed by GitHub

fix analysis (#47594)

parent 924efae9
...@@ -47,8 +47,9 @@ class GalleryVisualDensityValue { ...@@ -47,8 +47,9 @@ class GalleryVisualDensityValue {
bool operator ==(dynamic other) { bool operator ==(dynamic other) {
if (runtimeType != other.runtimeType) if (runtimeType != other.runtimeType)
return false; return false;
final GalleryVisualDensityValue typedOther = other; return other is GalleryVisualDensityValue
return visualDensity == typedOther.visualDensity && label == typedOther.label; && visualDensity == other.visualDensity
&& label == other.label;
} }
@override @override
......
...@@ -70,7 +70,7 @@ void main() { ...@@ -70,7 +70,7 @@ void main() {
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await tester.tap(find.text('Compact')); await tester.tap(find.text('Compact'));
await tester.pumpAndSettle(); 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)); expect(app.theme.visualDensity, equals(VisualDensity.compact));
await tester.tap(find.byIcon(Icons.arrow_drop_down).at(2)); await tester.tap(find.byIcon(Icons.arrow_drop_down).at(2));
...@@ -80,7 +80,7 @@ void main() { ...@@ -80,7 +80,7 @@ void main() {
matching: find.text('System Default') matching: find.text('System Default')
)); ));
await tester.pumpAndSettle(); 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())); expect(app.theme.visualDensity, equals(const VisualDensity()));
// Verify platform settings // Verify platform settings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment