fix analysis (#47594)
This commit is contained in:
committed by
GitHub
parent
924efae96c
commit
49c7845907
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user