2313 Commits

Author SHA1 Message Date
Hixie
bdfeaaa47a More table fixes 2016-03-29 14:10:17 -07:00
Hans Muller
04e020590d Use _ScaffoldLayout to position scrollable appbars 2016-03-29 13:27:37 -07:00
Hixie
baf06515e5 Table widget
- Add x and y to the parent data, in case it's useful. In point of fact,
  I ended up not needing it.

- Make columnWidths settable rather than having a setter so that the
  code in the widgets layer is more idiomatic.

- Teach setFlatChildren about avoiding unnecessary drop/adopt loops.

- Assert that the child list length is correct more aggressively so that
  we catch the dumb bug I had more quickly next time.

- Improve the toString() to handle empty tables better.

- Resort the imports in framework.dart.

- Introduce a LocalKey for cases where you don't want to allow use of
  GlobalKey.

- Make inflateWidget and deactivateChild public for subclass use.

- Table widget.

- Cell widget.

- TableRow fake widget.
2016-03-29 12:43:19 -07:00
Andrew Wilson
8ff1982776 Allow Draggables to drop through DragTargets that don't accept them to one that does. 2016-03-29 10:31:04 -07:00
Ian Hickson
d5deea491e Merge pull request #2942 from Hixie/layout-asserts
More elaborate exceptions.
2016-03-28 23:35:28 -07:00
Ian Hickson
962a33f85c AnimatedOpacity
This provides an easy way to do implicit opacity transitions.
2016-03-28 23:16:53 -07:00
Ian Hickson
aedf41bfa7 More elaborate exceptions.
The elaboration will continue until morale improves.

Specific exceptions considered here:

 - size setter checking when you set the size
 - layout verifying that you do set the size
 - hitTest verifying that you aren't dirty and have a size
 - flex complaining about canFlex
2016-03-28 23:14:15 -07:00
Adam Barth
d312c9dc12 Merge pull request #2970 from abarth/align_popup
Adds constants for FractionalOffsets
2016-03-28 23:12:17 -07:00
Adam Barth
1ba539a661 Add constants for FractionalOffsets
Adds some names for common FractionalOffset values.
2016-03-28 22:51:06 -07:00
Adam Barth
4e4a352a62 Pointer events should pass buttons through
Fixes #2899
2016-03-28 20:29:03 -07:00
Adam Barth
055268eae5 Merge pull request #2965 from abarth/rm_analyze_regexp
Remove two `flutter analyze` regular expressions
2016-03-28 17:18:46 -07:00
Adam Barth
522030bdda Remove two flutter analyze regular expressions
We can work around these in code rather than by post-processing the analyzer
output.
2016-03-28 16:33:39 -07:00
Adam Barth
2e062dfab4 Use --packages rather than --package-root
The .packages file is replacing the packages directory of symlinks.
2016-03-28 15:01:25 -07:00
Adam Barth
6ffee20bd6 Merge pull request #2954 from abarth/child_view_exception
ChildView throws exceptions outside MojoShell
2016-03-28 14:44:42 -07:00
Kris Giesing
2b0705a392 Rename debugOwner to debugCreator
Fixes #2940
2016-03-28 13:16:31 -07:00
Adam Barth
39640bd0ef ChildView throws exceptions outside MojoShell
We're missing a null check.

Fixes #2949
2016-03-28 12:12:28 -07:00
Matt Perry
641604ad94 Merge pull request #2850 from mpcomplete/form
Added a Form widget to manage multiple Input widgets.
2016-03-28 13:55:08 -04:00
Ian Hickson
f7dac6169a Improve _AnimatedEvaluation.toString
...and fix a typo in a setState assert message.
2016-03-27 00:52:40 -07:00
Ian Hickson
044ecf5410 toStrings for Animations and Animatables 2016-03-26 23:09:32 -07:00
Ian Hickson
c53f18bfee Update print.dart 2016-03-25 23:46:45 -07:00
Hixie
6af9e6c96b RenderTable 2016-03-25 18:40:18 -07:00
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