mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() 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. |
||
---|---|---|
.. | ||
big_switch.dart | ||
card_collection.dart | ||
container.dart | ||
date_picker.dart | ||
drag_and_drop.dart | ||
dropdown.dart | ||
ensure_visible.dart | ||
flutter.yaml | ||
gestures.dart | ||
horizontal_scrolling.dart | ||
http_post.dart | ||
indexed_stack.dart | ||
launch_url.dart | ||
media_query.dart | ||
navigation.dart | ||
nine_patch.dart | ||
overlay_geometry.dart | ||
pageable_list.dart | ||
piano.dart | ||
progress_indicator.dart | ||
pubspec.yaml | ||
raw_keyboard.dart | ||
README.md | ||
scrollbar.dart | ||
sector.dart | ||
smooth_resize.dart | ||
spinning_mixed.dart | ||
styled_text.dart | ||
tabs.dart |
Small examples of the Flutter widget framework
To run these, open a terminal in this directory and use the following command:
flutter start --checked -t foo.dart
...where foo.dart
is the file you want to run.