diff --git a/packages/animations/test/open_container_test.dart b/packages/animations/test/open_container_test.dart index bd0fb3975ebb..41acd5030d7e 100644 --- a/packages/animations/test/open_container_test.dart +++ b/packages/animations/test/open_container_test.dart @@ -1601,13 +1601,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(find.byType(ColoredBox)).color; } void _expectMaterialPropertiesHaveAdvanced({