• 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
..
all_elements.dart Loading commit data...
binding.dart Loading commit data...
controller.dart Loading commit data...
finders.dart Loading commit data...
matchers.dart Loading commit data...
stack_manipulation.dart Loading commit data...
test_async_utils.dart Loading commit data...
test_pointer.dart Loading commit data...
test_text_input.dart Loading commit data...
test_vsync.dart Loading commit data...
widget_tester.dart Loading commit data...