The input widget scrolls, so it should give its text loose constraints. That
way the text ends up being its intrinsic size even if put in a context with
tight constraints.
Fixes#298
Add a unit test for persistent bottom sheets
ShowBottomSheet now clears its placeholder after the bottom sheet has been dismissed.
Added support for generating fling gestures to WidgetTester.
Previously we would walk from every node in layout to the root to mark the root
as needing paint. Now we leave dirty bits throughout the tree so that we can
cut off the walk as soon as we find a dirty node.
Refactor bottom sheet support, add one to the stocks demo
Factored OverlayRoute out of the modal and persistent bottom sheet classes, since the bottom sheet classes need to drive the performance.
Added a bottom sheet to the stocks demo: long-press on a stock shows a modal bottom sheet.
Made AnimatedModalBarrier public.
Factored OverlayRoute out of the modal and persistent bottom sheet clases, since the bottom sheet classes need to drive the performance.
Added a bottom sheet to the stocks demo: long-press on a stock shows a modal bottom sheet.
Made AnimatedModalBarrier public.
- animation_bench.dart. This benchmark measures the full main-thread pipeline
for ticking the drawer entrance and exit animation.
- build_bench.dart. This benchmark measures a full app rebuild when there's no
state change.
- layout_bench.dart. This benchmark measures a full relayout.
Previously, we assumed the first build configuration would have one. Now we
keep looking until we find one. Also, re-ordered the configurations so that
you'll get the Android one if you have both, which is probably what you would
expect.
Fixes#100
Support drag-to-dismiss in persistent bottom sheets
Flinging a persistent bottom sheet downwards dismisses it, per the Material spec.
The showBottomSheet() function now returns a Future, like showModalBottomSheet() does, so that you can discover when it's been dismissed - with navigator.pop() - and with what value.
Factored the drag gesture handling code into _BottomSheetDragController
This CL was flutter/engine#1997