flutter/examples/widgets
Adam Barth 72329cf422 Callback identity is too fragile for CustomPaint
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.
2015-11-20 08:20:59 -08:00
..
big_switch.dart Rename package:sky to package:flutter 2015-10-09 20:44:52 -07:00
card_collection.dart ItemBuilder should also get the index of the item 2015-11-12 12:05:42 -08:00
container.dart Use the presence of handler to determine 'enabled' 2015-10-26 17:35:41 -07:00
date_picker.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
drag_and_drop.dart Fix some examples. 2015-11-16 15:54:40 -08:00
dropdown.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
ensure_visible.dart Port ensure_visible.dart to fn3. 2015-10-26 12:44:54 -07:00
flutter.yaml add a flutter.yaml file for the widgets project 2015-11-12 13:42:54 -08:00
gestures.dart Callback identity is too fragile for CustomPaint 2015-11-20 08:20:59 -08:00
horizontal_scrolling.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
http_post.dart Fix #104 Support for setting HTTP headers 2015-11-16 14:10:58 -08:00
indexed_stack.dart Trivial whitespace fixes. 2015-11-12 22:10:16 -08:00
launch_url.dart Add an example for launching a URL 2015-11-13 14:16:25 -08:00
media_query.dart Media query class for querying viewport information 2015-10-28 12:34:57 -07:00
navigation.dart Fix some examples. 2015-11-16 15:54:40 -08:00
nine_patch.dart Add a centerSlice parameter to images 2015-10-13 13:21:36 -07:00
overlay_geometry.dart Callback identity is too fragile for CustomPaint 2015-11-20 08:20:59 -08:00
pageable_list.dart ItemBuilder should also get the index of the item 2015-11-12 12:05:42 -08:00
piano.dart Update shadow rendering 2015-11-18 07:58:28 -08:00
progress_indicator.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
pubspec.yaml Rewire the pubspecs to use local paths 2015-11-06 22:46:52 -08:00
raw_keyboard.dart Remove unneeded null check in raw keyboard example 2015-11-11 11:05:11 -08:00
README.md add a flutter.yaml file for the widgets project 2015-11-12 13:42:54 -08:00
scrollbar.dart ItemBuilder should also get the index of the item 2015-11-12 12:05:42 -08:00
sector.dart Use the presence of handler to determine 'enabled' 2015-10-26 17:35:41 -07:00
smooth_resize.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
spinning_mixed.dart Port spinning_mixed demo to fn3 2015-10-22 14:20:13 -07:00
styled_text.dart Strong modeify the examples 2015-10-23 18:13:25 -07:00
tabs.dart Corrected Card resting elevation, tabs example toolbar 2015-11-18 14:33:08 -08:00

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.