• 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
..
lib Loading commit data...
align_items.dart Loading commit data...
baseline.dart Loading commit data...
borders.dart Loading commit data...
flex.dart Loading commit data...
interactive_flex.dart Loading commit data...
justify_content.dart Loading commit data...
pubspec.yaml Loading commit data...
render_grid.dart Loading commit data...
render_paragraph.dart Loading commit data...
sector_layout.dart Loading commit data...
shadowed_box.dart Loading commit data...
simple_autolayout.dart Loading commit data...
spinning_flex.dart Loading commit data...
touch_demo.dart Loading commit data...
transform.dart Loading commit data...