2992 Commits

Author SHA1 Message Date
Matt Perry
a7b28a3ede Added a Form widget to manage multiple Input widgets. 2016-03-25 17:55:38 -04:00
Viktor Lidholt
9802ee1865 Merge pull request #2906 from vlidholt/master
First pass at new Flutter gallery front page
2016-03-25 14:45:00 -07:00
Andrew Wilson
3a84cef248 Merge pull request #2907 from apwilson/velocity_drop
Add a callback when a Draggable is dropped without being accepted.
2016-03-25 14:28:14 -07:00
Andrew Wilson
f90ccf4825 Add a callabck when a Draggable is dropped without being accepted. 2016-03-25 14:18:24 -07:00
Viktor Lidholt
d563f50822 First pass at new Flutter gallery front page 2016-03-25 14:11:01 -07:00
Adam Barth
5c5948bb81 Fix app bar padding without leading widget
If there's no leading widget, we just want 8.0 pixels of padding instead of all
the padding to get over to the 72.0 pixel key line.

Fixes #2912
2016-03-25 13:55:10 -07:00
Adam Barth
9e6e522bb3 Merge pull request #2903 from abarth/default_media_query
Add a default MediaQuery value
2016-03-25 13:30:36 -07:00
Adam Barth
3c6d4f660e Add a default MediaQuery value
Now MediaQuery.of always returns a non-null value. By default, you get the
values associated with the current ui.Window.

Fixes #2894
2016-03-25 13:07:42 -07:00
Hixie
67769cb93b ImageFit.fitWidth/fitHeight and minor docs fixes 2016-03-25 12:31:27 -07:00
Ian Hickson
47e882a5a2 Merge pull request #2878 from Hixie/border-style-none
Support hairline borders
2016-03-25 09:29:57 -07:00
Ian Hickson
da48e2a391 Clean up prints in services/*
We really shouldn't have two separate network library wrappers... I filed https://github.com/flutter/flutter/issues/2889 on that. But for now, this makes one of them have a generally better error handling story, and makes the other one only dump to the console in debug mode. It also makes both use debugPrint instead of print, and makes one use the 'mojom' prefix for mojom imports.
2016-03-24 22:41:29 -07:00
krisgiesing
cef24293b7 Merge pull request #2839 from krisgiesing/offscreen_layout
Allow independent rendering pipelines
2016-03-24 16:26:36 -07:00
Adam Barth
1e25792590 Merge pull request #2881 from abarth/from_ltrb
Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB
2016-03-24 15:56:44 -07:00
Hans Muller
d89ccc4aad Scrollbar thumb color, etc 2016-03-24 15:36:17 -07:00
Adam Barth
c8c325d095 Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB
This matches the pattern from Rect. I've left EdgeInsets.TRBL marked as
deprecated to give clients a chance to update.

Fixes #2860
2016-03-24 15:19:40 -07:00
Kris Giesing
bb5a82a726 Allow independent rendering pipelines
Fixes #2723
2016-03-24 14:59:21 -07:00
Hixie
9fc29dbbb8 Support hairline borders
Previously, border with '0' was ambiguous. Sometimes we treated it as
hairline borders, sometimes as "don't show the border", though even in
the latter case we did some graphics work sometimes. Now we have an
explicit BorderStyle.none flag to not draw the border efficiently.
2016-03-24 14:05:38 -07:00
Adam Barth
7711b1f660 Merge pull request #2879 from abarth/sized_box_docs
Improve docs for SizedBox
2016-03-24 13:22:54 -07:00
Adam Barth
bafd2c20c6 Improve docs for SizedBox
Fixes #2873
2016-03-24 13:22:37 -07:00
Ian Hickson
98b1f19df8 Merge pull request #2875 from Hixie/border-paint
Make the border painting code reusable.
2016-03-24 12:54:34 -07:00
Adam Barth
dff356fcf8 Merge pull request #2872 from abarth/fix_inherited
Inherited widgets should work across reactivations
2016-03-24 12:11:00 -07:00
Hixie
32f7cbcf65 Make the border painting code reusable. 2016-03-24 11:24:24 -07:00
Ian Hickson
8678edfaaf Merge pull request #2871 from Hixie/borders
Tweaks to Border to make it easier to subclass.
2016-03-24 11:24:18 -07:00
Adam Barth
e361c0b096 Inherited widgets should work across reactivations
Previously we updated only the reactivated element's inherited widgets. Now we
update all the inherited widgets for the whole subtree that's being
reactivated. We need to visit the whole subtree anyway, so there isn't much of
a loss.

Fixes #2733
Fixes #2438
Fixes #1701
2016-03-24 10:54:08 -07:00
Hixie
685ccfcea0 Tweaks to Border to make it easier to subclass.
Also, more docs. Also, expose isUniform.
2016-03-24 10:51:40 -07:00
Hixie
24f93f7353 Fix minor typos (EdgeInsets, ImageResource) 2016-03-24 10:20:39 -07:00
Adam Barth
3ebbabdc0c Remove incorrect comment
This test is no longer disabled.

Fixes #2827
2016-03-24 10:00:30 -07:00
Adam Barth
f08b51b8ed Merge pull request #2858 from abarth/physics_with_changing_behavior
Scrollable physics should be reasonable when sizes change
2016-03-23 20:18:17 -07:00
Adam Barth
f7f1259b7b Scrollable physics should be reasonable when sizes change
Previously, when the content extent changed during a scroll interaction, we'd
stop the current scroll interaction and reset the scroll offset. Now we try to
continue the scroll interaction (e.g., drag, fling, or overscroll) even through
the underlying scroll behavior has changed.

For physics-based scroll interactions, we keep the current position and
velocity and recompute the operative forces. For drag interactions, we keep the
current position and continue to let the user drag the scroll offset.

After this patch, we still disrupt non-physical scroll animations that are
operating outside the new scroll bounds because it's not clear how we can
sensibly modify them to work with the new scroll bounds.
2016-03-23 16:14:07 -07:00
Hans Muller
8107d25175 fixed a typo 2016-03-23 15:54:55 -07:00
Hans Muller
67a18fa532 TwoLevelList fails to restore sublist expanded state 2016-03-23 12:27:25 -07:00
Adam Barth
9f5febc8cd Update ChildView after Mojo roll
The Mozart API has changed.
2016-03-23 11:05:31 -07:00
Ian Hickson
da88f1d01f Merge pull request #2828 from Hixie/lru
Replace use of LruMap with a pure LinkedHashMap
2016-03-22 23:24:40 -07:00
Ian Hickson
924480fcda Merge pull request #2843 from Hixie/nan-constraints
Handle NaNs in constraints, just in case.
2016-03-22 23:24:25 -07:00
Ian Hickson
ea04c910e7 Replace use of LruMap with a pure LinkedHashMap
...so that we can shed the quiver dependency in flutter's framework.
2016-03-22 23:01:31 -07:00
Ian Hickson
9eb4d15c7a Merge pull request #2826 from Hixie/overflow
CustomPaint documentation
2016-03-22 22:59:13 -07:00
Ian Hickson
9356c19dce Handle NaNs in constraints, just in case. 2016-03-22 22:53:40 -07:00
Ian Hickson
cde947eaf1 prettier IconData toString 2016-03-22 22:13:32 -07:00
Ian Hickson
942840748a CustomPaint documentation
...followed all the way back to ImageCache, ImageInfo, ImageProvider,
and friends.
2016-03-22 21:36:44 -07:00
Ian Hickson
cae847dc98 Merge pull request #2835 from Hixie/RenderFractionallySizedBox-constraints
Rationalise the overflow render boxes
2016-03-22 17:36:13 -07:00
Hans Muller
ff424196fc Fixed VirtualViewport child key assignment 2016-03-22 14:46:50 -07:00
Hixie
34cc0c4728 Rationalise the overflow render boxes
New RenderAligningShiftedBox abstract class for render boxes with
"alignment", which as of now is:

 - RenderPositionedBox
 - RenderConstrainedOverflowBox (ex RenderOverflowBox)
 - RenderSizedOverflowBox
 - RenderFractionallySizedOverflowBox (ex RenderFractionallySizedBox)

(The respective widgets are Align, OverflowBox, SizedOverflowBox, and
FractionallySizedBox. They haven't been renamed.)

Also I added some toString details.
2016-03-22 14:06:49 -07:00
Hixie
71976b306b Fix RenderFractionallySizedBox's constraints logic
Fixes https://github.com/flutter/flutter/issues/2735
2016-03-22 10:29:43 -07:00
Jason Simmons
b00cf22e0d Merge pull request #2788 from jason-simmons/messaging_to_host
Provide APIs for exchanging messages with the host application
2016-03-22 10:15:31 -07:00
Hans Muller
1af58aee4a Fix Fast Fling Failure 2016-03-22 08:43:22 -07:00
Jason Simmons
074564eec3 Provide APIs for exchanging messages with the host application 2016-03-21 16:39:55 -07:00
Adam Barth
2fc4f2079d Merge pull request #2818 from abarth/scroll_tolerance
Scrollable sometimes pushes frames forever
2016-03-21 12:39:21 -07:00
Adam Barth
5a5fcb959d Scrollable sometimes pushes frames forever
We were setting a negative velocity tolerance, which never triggered because we
assume tolerances are positive numbers. Now we use a positive tolerance and
assert to catch this case in the future.

Fixes #2765
2016-03-21 12:21:24 -07:00
Hans Muller
70550a7a9a Fix _LazyWidgetProvider indexing, move Ali Connors 2016-03-21 12:20:09 -07:00
Adam Barth
24bf14c518 Merge pull request #2814 from abarth/custom_switch_thumb
Allow customizing of Switch thumbs
2016-03-21 12:11:25 -07:00