
This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework. The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead. The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
49 lines
2.1 KiB
YAML
49 lines
2.1 KiB
YAML
name: flutter_test
|
|
|
|
environment:
|
|
sdk: ">=2.12.0-0 <3.0.0"
|
|
|
|
dependencies:
|
|
# To update these, use "flutter update-packages --force-upgrade".
|
|
|
|
flutter:
|
|
sdk: flutter
|
|
|
|
# We depend on very specific internal implementation details of the
|
|
# 'test' package, which change between versions, so when upgrading
|
|
# this, make sure the tests are still running correctly.
|
|
test_api: 0.4.3
|
|
|
|
# Used by golden file comparator
|
|
path: 1.8.0
|
|
|
|
# Testing utilities for dealing with async calls and time.
|
|
fake_async: 1.2.0
|
|
clock: 1.1.0
|
|
|
|
# We import stack_trace because the test packages uses it and we
|
|
# need to be able to unmangle the stack traces that it passed to
|
|
# stack_trace. See https://github.com/dart-lang/test/issues/590
|
|
stack_trace: 1.10.0
|
|
|
|
# Used by globalToLocal et al.
|
|
vector_math: 2.1.1
|
|
|
|
async: 2.8.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
boolean_selector: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
characters: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
charcode: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
collection: 1.15.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
matcher: 0.12.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
meta: 1.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
source_span: 1.8.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
stream_channel: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
string_scanner: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
term_glyph: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
typed_data: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
|
|
|
dev_dependencies:
|
|
file: 6.1.2
|
|
|
|
# PUBSPEC CHECKSUM: c20c
|