Skip to content

Commit

Permalink
[animations] Migrate _getScrimColor to look for ColoredBox (#163)
Browse files Browse the repository at this point in the history
* Fix _getScrimColor to look for ColoredBox post-migration
  • Loading branch information
Shi-Hao Hong authored May 27, 2020
1 parent 1df8f1e commit 7400380
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/animations/test/open_container_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1650,13 +1650,7 @@ void main() {
}

Color _getScrimColor(WidgetTester tester) {
// TODO(dnfield): fix this after https://github.com/flutter/flutter/pull/50979
final Container container = tester.widget(find.byType(Container));
if (container.decoration != null) {
final BoxDecoration decoration = container.decoration;
return decoration.color;
}
return (container as dynamic).color;
return tester.widget<ColoredBox>(find.byType(ColoredBox)).color;
}

void _expectMaterialPropertiesHaveAdvanced({
Expand Down

0 comments on commit 7400380

Please sign in to comment.