Visitar URL original
Temporary fix for test with upcoming breaking change by dnfield · Pull Request #98 · flutter/packages · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
The most beautiful piece of code I have ever written
  • Loading branch information
dnfield committed Feb 19, 2020
commit e0d16cf47d9bb77e994b8d810744b91a2fba8ed2
8 changes: 6 additions & 2 deletions packages/animations/test/open_container_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,13 @@ 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));
final BoxDecoration decoration = container.decoration;
return decoration.color;
if (container.decoration != null) {
final BoxDecoration decoration = container.decoration;
return decoration.color;
}
return (Container as dynamic).color;
}

void _expectMaterialPropertiesHaveAdvanced({
Expand Down