-
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 |
---|---|---|
.. | ||
cassowary | ||
flutter | ||
flutter_sprites | ||
flutter_tools | ||
flx | ||
newton | ||
playfair | ||
unit | ||
updater | ||
.gitignore |