flutter/examples/widgets
Hixie d45bf1457c HomogeneousViewport support for Theme.of()
Previously, RenderObjectElements didn't support being marked dirty. This
is fine, except for MixedViewport and HomogeneousViewport, which have
builder functions to which they hand themselves as a BuildContext. If
those builder functions call, e.g., Theme.of(), then when the theme
changes, the Inherited logic tries to tell the RenderObjectElement
object that its dependencies changed and that doesn't go down well.

This patch fixes this by making RenderObjectElement a BuildableElement,
and making MixedViewport and HomogeneousViewport hook into that to
rebuild themselves appropriately.

Also, this was only found at all because ThemeData didn't implement
operator==, so we were aggressively marking the entire tree dirty all
the time. That's fixed here too.

Also, I changed card_collection.dart to have more features to make this
easier to test. This found bugs #1524, #1522, #1528, #1529, #1530, #1531.
2015-10-07 15:53:50 -07:00
..
big_switch.dart Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
BUILD.gn Move example out of sky/packages to //examples 2015-08-07 17:04:50 -07:00
card_collection.dart HomogeneousViewport support for Theme.of() 2015-10-07 15:53:50 -07:00
container.dart Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
date_picker.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
drag_and_drop.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
ensure_visible.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
horizontal_scrolling.dart Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
navigation.dart Simplify the usage of Navigator's routes argument 2015-10-05 13:59:30 -07:00
overlay_geometry.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
pageable_list.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
piano.dart Make fn3 the default widget framework 2015-10-01 09:48:35 -07:00
progress_indicator.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
pubspec.yaml pubspec.yaml files for the smaller demos. 2015-08-10 17:13:17 -07:00
scale.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
sector.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
spinning_mixed.dart Switch scheduler over to Duration 2015-10-03 13:48:57 -07:00
styled_text.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00
tabs.dart Simplify Scaffold 2015-10-06 10:06:17 -07:00