• Tae Hyung Kim's avatar
    DecoratedSliver (#127823) · 541fdd60
    Tae Hyung Kim authored
    This is a second attempt to merge #107269. Currently I've fixed two of the issues:
    1. Fixed horizontal scrollview by using a switch statement to consider vertical/horizontal case.
    2. Fixed issue of `paintExtent` not being the right extent for painting. Rather using a `scrollExtent` for the main axis length of the decoration box and painting it offsetted by the `scrollOffset`.
    3. If the sliver child has inifinite scrollExtent, then we only draw the decoration down to the bottom of the `cacheExtent`. The developer is expected to ensure that the border does not creep up above the cache area.
    
    This PR includes a test that checks that the correct rectangle is drawn at a certain scrollOffset for both the horizontal and vertical case which should be sufficient for checking that `SliverDecoration` works properly now.
    
    Fixes https://github.com/flutter/flutter/issues/107498.
    541fdd60
Name
Last commit
Last update
..
actions Loading commit data...
animated_grid Loading commit data...
animated_list Loading commit data...
animated_size Loading commit data...
animated_switcher Loading commit data...
app Loading commit data...
app_lifecycle_listener Loading commit data...
async Loading commit data...
autocomplete Loading commit data...
autofill Loading commit data...
basic Loading commit data...
binding 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...
hardware_keyboard Loading commit data...
heroes Loading commit data...
image Loading commit data...
implicit_animations Loading commit data...
inherited_model Loading commit data...
inherited_notifier Loading commit data...
inherited_theme Loading commit data...
interactive_viewer Loading commit data...
layout_builder Loading commit data...
magnifier 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...
overlay Loading commit data...
overscroll_indicator Loading commit data...
page_storage Loading commit data...
page_view Loading commit data...
preferred_size Loading commit data...
restoration Loading commit data...
restoration_properties Loading commit data...
routes Loading commit data...
scroll_notification_observer Loading commit data...
scroll_position Loading commit data...
scroll_view Loading commit data...
scrollbar Loading commit data...
shared_app_data Loading commit data...
shortcuts Loading commit data...
single_child_scroll_view Loading commit data...
sliver Loading commit data...
sliver_fill Loading commit data...
slotted_render_object_widget Loading commit data...
table Loading commit data...
tap_region Loading commit data...
text Loading commit data...
text_magnifier Loading commit data...
transitions Loading commit data...
tween_animation_builder Loading commit data...
undo_history Loading commit data...
will_pop_scope Loading commit data...