• amirh's avatar
    Support arbitrary shaped Material. (#14367) · 0672055a
    amirh authored
    For backward compatibility we keep supporting specifying the shape as a
    combination of MaterialType and borderRadius, and we just use that as a
    default when shapeBorder is null.
    
    To cleanup the implementation if shapeBorder was not specified we just
    translate the specified shape to a shapeBorder internally.
    I benchmarked paint, layout and hit testing, with the specialized shape
    clippers vs. the equivalent path clippers and did not see any
    significant performance difference.
    
    For testing, I extended the clippers/physicalShape matchers to match either the
    specialized shape or the equivalent shape.
    0672055a
Name
Last commit
Last update
..
aspect_ratio_test.dart Loading commit data...
baseline_test.dart Loading commit data...
box_constraints_test.dart Loading commit data...
box_test.dart Loading commit data...
cached_intrinsics_test.dart Loading commit data...
constraints_test.dart Loading commit data...
debug_overflow_indicator_test.dart Loading commit data...
debug_test.dart Loading commit data...
dynamic_intrinsics_test.dart Loading commit data...
editable_test.dart Loading commit data...
error_test.dart Loading commit data...
flex_overflow_test.dart Loading commit data...
flex_test.dart Loading commit data...
image_test.dart Loading commit data...
independent_layout_test.dart Loading commit data...
intrinsic_width_test.dart Loading commit data...
layers_test.dart Loading commit data...
limited_box_test.dart Loading commit data...
mock_canvas.dart Loading commit data...
mutations_test.dart Loading commit data...
non_render_object_root_test.dart Loading commit data...
object_test.dart Loading commit data...
offstage_test.dart Loading commit data...
overflow_test.dart Loading commit data...
paragraph_intrinsics_test.dart Loading commit data...
paragraph_test.dart Loading commit data...
positioned_box_test.dart Loading commit data...
proxy_box_test.dart Loading commit data...
proxy_getters_and_setters_test.dart Loading commit data...
reattach_test.dart Loading commit data...
recording_canvas.dart Loading commit data...
relative_rect_test.dart Loading commit data...
rendering_tester.dart Loading commit data...
repaint_boundary_test.dart Loading commit data...
semantics_and_children_test.dart Loading commit data...
simple_semantics_test.dart Loading commit data...
size_test.dart Loading commit data...
slivers_block_test.dart Loading commit data...
slivers_helpers_test.dart Loading commit data...
slivers_layout_test.dart Loading commit data...
slivers_test.dart Loading commit data...
stack_test.dart Loading commit data...
table_border_test.dart Loading commit data...
table_test.dart Loading commit data...
transform_test.dart Loading commit data...
wrap_test.dart Loading commit data...