3455 Commits

Author SHA1 Message Date
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
Devon Carew
4fe1ca0783 Merge pull request #2905 from devoncarew/run_cleanup
Run cleanup
2016-03-25 13:30:18 -07:00
Devon Carew
2fc8e9a110 create a crash report 2016-03-25 13:29:15 -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
Jason Simmons
03830d5676 Merge pull request #2896 from jason-simmons/yaml_schema
Validate flutter.yaml against a JSON schema
2016-03-25 10:14:58 -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
Jason Simmons
c2b4ac9c3c Validate flutter.yaml against a JSON schema 2016-03-24 17:49:23 -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
Devon Carew
c3eec6ec4f several fixes to the doctor command 2016-03-24 14:17:49 -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
Jason Simmons
f5c3b75d5c Merge pull request #2876 from jason-simmons/font_include_asset
Add embedded font assets to the asset list
2016-03-24 12:50:54 -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
Jason Simmons
f17b68d2d3 Add embedded font assets to the asset list
Any font asset referenced in the fonts section of flutter.yaml will now be
included in the FLX assets.  It's no longer necessary to separately list the
font in the assets section.
2016-03-24 11:20:11 -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
f57a84b390 Merge pull request #2868 from abarth/rm_wrong_comment
Remove wrong comment
2016-03-24 10:17:10 -07:00
Alhaad Gokhale
ae7734ee12 Merge pull request #2861 from alhaad/run_mojo_with_url
Allow run_mojo command to run an app at a URL.
2016-03-24 10:10:31 -07:00
Alhaad Gokhale
58edc7ed9b In run_mojo, rename bundlePath -> targetApp since it may not be a path. 2016-03-24 10:01:00 -07:00
Adam Barth
3ebbabdc0c Remove incorrect comment
This test is no longer disabled.

Fixes #2827
2016-03-24 10:00:30 -07:00
Devon Carew
7940e26b04 Merge pull request #2862 from devoncarew/less_noisy_android
filter some noisy messages from adb logcat
2016-03-24 09:20:20 -07:00
Devon Carew
d4185802cd print the os from flutter doctor 2016-03-24 00:00:37 -07:00
Devon Carew
d7e4f78b26 Merge pull request #2859 from devoncarew/doctor_rework
re-work the doctor command
2016-03-23 23:10:13 -07:00
Devon Carew
25f332d8d7 re-work the doctor command 2016-03-23 21:12:29 -07:00
Devon Carew
017f0271b7 filter some noisy messages from adb logcat 2016-03-23 21:12:04 -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
Alhaad Gokhale
35e30235f0 In run_mojo command, parse Uri scheme to decide whether app is on local
filesystem or not.
2016-03-23 19:11:04 -07:00
Alhaad Gokhale
c4da1da20c Allow run_mojo command to run an app at a URL.
Fixes #2113
2016-03-23 17:13:47 -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
e6cffd2897 Merge pull request #2842 from Hixie/icondata-tostring
prettier IconData toString
2016-03-22 22:42:29 -07:00