• Greg Spencer's avatar
    Add smoke tests for all the examples, fix 17 broken examples. (#89021) · ab2b0851
    Greg Spencer authored
    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.
    ab2b0851
Name
Last commit
Last update
..
actions Loading commit data...
animated_list Loading commit data...
animated_size Loading commit data...
animated_switcher Loading commit data...
async Loading commit data...
autocomplete Loading commit data...
autofill Loading commit data...
basic Loading commit data...
color_filter Loading commit data...
dismissible Loading commit data...
drag_target Loading commit data...
editable_text Loading commit data...
focus_manager Loading commit data...
focus_scope Loading commit data...
focus_traversal Loading commit data...
form Loading commit data...
framework Loading commit data...
gesture_detector Loading commit data...
heroes Loading commit data...
image Loading commit data...
implicit_animations Loading commit data...
inherited_notifier Loading commit data...
inherited_theme Loading commit data...
interactive_viewer Loading commit data...
layout_builder Loading commit data...
media_query Loading commit data...
navigator Loading commit data...
nested_scroll_view Loading commit data...
notification_listener Loading commit data...
overflow_bar Loading commit data...
overscroll_indicator Loading commit data...
page_storage Loading commit data...
page_view Loading commit data...
preferred_size Loading commit data...
restoration_properties Loading commit data...
routes Loading commit data...
scroll_position Loading commit data...
scroll_view Loading commit data...
scrollbar Loading commit data...
shortcuts Loading commit data...
single_child_scroll_view Loading commit data...
sliver_fill Loading commit data...
table Loading commit data...
transitions Loading commit data...
tween_animation_builder Loading commit data...
will_pop_scope Loading commit data...