• Adam Barth's avatar
    Callback identity is too fragile for CustomPaint · 72329cf4
    Adam Barth authored
    Many of the widgets that use CustomPaint were spamming repaints because
    CustomPaint repaints when the identity of the onPaint callback changes, which
    it does every build for StatelessComponents.
    
    This patch changes CustomPaint to use a CustomPainter, similar to the new
    custom layout widgets. The CustomPainter has a `shouldRepaint` function along
    with its `paint` function. This function gives clients explicit control over
    when the custom paint object repaints.
    72329cf4
Name
Last commit
Last update
..
box_test.dart Loading commit data...
flex_test.dart Loading commit data...
grid_test.dart Loading commit data...
image_test.dart Loading commit data...
intrinsic_width_test.dart Loading commit data...
offstage_test.dart Loading commit data...
overflow_test.dart Loading commit data...
positioned_box_test.dart Loading commit data...
rendering_tester.dart Loading commit data...
size_test.dart Loading commit data...
stack_test.dart Loading commit data...
viewport_test.dart Loading commit data...