6580 Commits

Author SHA1 Message Date
Adam Barth
2f6c37672c Run unit tests on Travis 2015-11-06 23:47:04 -08:00
Adam Barth
2ed113430a Add dev/run_tests
This script runs the Flutter unit tests. By default, the script assumes you
have compiled a SkyShell in an "engine/src" that's a peer to the "flutter"
directory.
2015-11-06 23:14:17 -08:00
Adam Barth
08539b4e4d Rewire the pubspecs to use local paths
Using local paths ensures that each package sees each other package at HEAD.
2015-11-06 22:46:52 -08:00
Adam Barth
b7a212f76e Merge branch 'flutter' 2015-11-06 21:40:01 -08:00
Adam Barth
a491bcbc54 Merge pull request #36 from devoncarew/add_flutter_yaml
add a flutter.yaml file to the init template
2015-11-06 21:25:12 -08:00
Devon Carew
a469020983 add a flutter.yaml file to the init template 2015-11-06 20:57:35 -08:00
Adam Barth
e7c837b412 Merge pull request #1972 from krisgiesing/examples
Add flutter.yaml for address_book example
2015-11-06 20:33:34 -08:00
Adam Barth
d86fb66e9b Merge pull request #35 from abarth/rm_http
Remove the --http option
2015-11-06 20:28:32 -08:00
Adam Barth
113500206a Remove the --http option 2015-11-06 20:17:24 -08:00
Adam Barth
fe59d9a46d Clean up updater dependencies 2015-11-06 15:47:44 -08:00
Adam Barth
e9cc4d73fe Rev pub spec 2015-11-06 15:39:56 -08:00
Adam Barth
92d24b89a7 Rev pub packages 2015-11-06 15:38:35 -08:00
Adam Barth
1bc82e133d Rev sky_engine, sky_services, and mojo_sdk 2015-11-06 14:59:23 -08:00
Adam Barth
eed20996ba Merge pull request #1999 from abarth/null_width_factor
Don't crash if no widthFactor is set in an unbounded context
2015-11-06 14:52:12 -08:00
Adam Barth
5ee721fe68 Merge pull request #1995 from abarth/startup_assert
We throw an exception if you tap the screen during load
2015-11-06 14:52:03 -08:00
Adam Barth
e4a14e5675 Don't crash if no widthFactor is set in an unbounded context 2015-11-06 13:16:45 -08:00
Adam Barth
060b34f700 We throw an exception if you tap the screen during load
Inside runApp, we were building the render tree for the app, but we weren't
calling layout, which meant we were running a hit test on a dirty tree. Now
hitTest specifically asserts that the tree is clean and we synchronously call
layout for your app during runApp.

Fixes #1960
2015-11-06 11:46:24 -08:00
Adam Barth
5cf258c49e Merge pull request #1989 from abarth/fix_heroes
Heroes don't reverse any more
2015-11-06 10:59:39 -08:00
Adam Barth
70b14e8a31 Heroes don't reverse any more
We need to use the performance for the "from" route when going backwards. Also,
fix a bug in the HeroParty where it would call the quest finished callback
multiple times.

Fixes #1958
2015-11-06 10:53:46 -08:00
Hans Muller
10a4753f43 Merge pull request #1990 from HansMuller/bottom_sheet_placeholder
Adds showBottomSheet(), AlignTransition
2015-11-06 10:10:21 -08:00
Hans Muller
b39c1f895d Adds showBottomSheet(), AlignTransition 2015-11-06 09:52:01 -08:00
Jason Simmons
e96a609d88 Merge pull request #34 from jason-simmons/android_device_id_flag
Add a flag that selects which Android device ID is the target for Flu…
2015-11-06 09:32:16 -08:00
Adam Barth
fa50aaec50 Merge pull request #1986 from abarth/remove_scaffolding
Remove scaffolding for Navigator1 to Navigator2 transition
2015-11-06 08:13:16 -08:00
Ian Hickson
1a684291f6 Merge pull request #1971 from Hixie/better-messages-for-MaterialApp
Better asserts for MaterialApp and Navigator
2015-11-05 21:35:33 -08:00
Adam Barth
f9abef3e03 Remove scaffolding for Navigator1 to Navigator2 transition
These types belong at the MaterialApp level.

Fixes #1969
2015-11-05 21:05:30 -08:00
Adam Barth
519ab4ae1a Merge pull request #1983 from Hixie/block-padding
Teach Block about padding.
2015-11-05 19:39:40 -08:00
Adam Barth
60d77d972f Factor DrawerController out of Drawer
This patch paves the path for refactoring the Drawer into the Scaffold to
support edge swipes and peeks.
2015-11-05 19:06:00 -08:00
Hixie
1f5844ea70 Teach Block about padding.
It's common to want a scrolling viewport but with padding around the
contents. Teaching Block about this makes the places that do this
substantially simpler and further buries ScrollableViewport and
BlockBody (they're now only used in scrollable.dart).
2015-11-05 17:14:27 -08:00
Hans Muller
ef866e00a3 Replace Align shrinkWrap parameter with widthFactor and heightFactor 2015-11-05 16:45:05 -08:00
Hixie
aaee3b93da Add more Gesture Arena tests
...and clean them up so it's easier to understand them.
2015-11-05 15:58:53 -08:00
Jason Simmons
6e0b59fc09 Add a flag that selects which Android device ID is the target for Flutter commands 2015-11-05 15:53:32 -08:00
Kris Giesing
6d293b84d4 Remove unneeded flutter.yaml property 2015-11-05 15:25:17 -08:00
Kris Giesing
8a2505b1c8 Add flutter.yaml for address_book example 2015-11-05 15:20:05 -08:00
Hixie
255ed0b951 Make Draggable use gestures
Draggable is now itself a gesture arena member. This means it won't
conflict with other gesture recognisers in the same path.

This also allows variants of Draggable that are triggered by other
gestures.

Also, some cleanup of DoubleTapGestureRecognizer, GestureDetector, and
PrimaryPointerGestureRecognizer.

Also, make MultiTapGestureRecognizer support a timeout for longpress.

Also, make Draggable data be typed.

Also, hide warnings about constructor warnings for now. Analyzer doesn't
support them yet. (Have to do this on a per-line basis)

Directions for future research:
 - animating the avatar (enter/exit transitions)
 - interaction with the navigator (canceling a drag on page navigation, etc)
 - double-tap draggable
2015-11-05 15:16:59 -08:00
Hixie
8831407722 Better asserts for MaterialApp and Navigator
- runApp(new MaterialApp()) was crashing long after the constructor. Now
  it asserts in a more useful location.
- remove the default name for NamedRouteSettings. It was unused anyway.
2015-11-05 15:14:21 -08:00
Matt Perry
5516d12fa1 Merge pull request #1970 from mpcomplete/updater.urls
Fix updater. It was looking for the wrong files.
2015-11-05 18:03:11 -05:00
Matt Perry
72c17afa06 Fix updater. It was looking for the wrong files. 2015-11-05 17:56:50 -05:00
Adam Barth
2fc5a7597c Add the ability to have translucent gesture detectors
A translucent gesture detector still listens for gestures but also lets the
content visually behind the detector receive events.
2015-11-05 12:47:39 -08:00
Adam Barth
043917c5f0 Fix crash in flutter script 2015-11-05 11:14:39 -08:00
Adam Barth
6d1b63cecc Merge pull request #33 from abarth/flutter_bash
Add a bash script for bootstrapping flutter_tools
2015-11-05 10:48:33 -08:00
Adam Barth
dbee5c01e9 Add a bash script for bootstrapping flutter_tools 2015-11-05 00:22:58 -08:00
Adam Barth
8084d3c65d Merge pull request #32 from abarth/flutter_test
Add a command for running unit tests
2015-11-04 23:52:23 -08:00
Adam Barth
fc8cdf4daf Add a command for running unit tests 2015-11-04 23:43:15 -08:00
Adam Barth
f5ce556472 Simplify README 2015-11-04 22:24:53 -08:00
Adam Barth
c8f66a1f6c Merge pull request #31 from abarth/flutter_tools
Flutter tools
2015-11-04 22:10:09 -08:00
Adam Barth
654faaf571 Add flutter_tools to Travis 2015-11-04 22:08:07 -08:00
Adam Barth
a4d0b56072 Merge pull request #30 from syoichi/patch-1
Fix a typo on the README.md
2015-11-04 22:06:32 -08:00
Adam Barth
a06c98ce76 Merge branch 'flutter_tools' 2015-11-04 22:03:51 -08:00
Hans Muller
7bafe54a5e Added LayoutId widget, MultiChildLayoutDelegate.isChild() 2015-11-04 16:58:21 -08:00
Adam Barth
9bc64540c5 Improve hit testing
Now a RenderBox is considered hit if one of its children are hit or it itself
decides that it's hit. In particular, empty space inside a flex won't be hit
because none of the children are located there and a RenderFlex doesn't
consider itself hittable.

Fixes #53
Fixes #1221
2015-11-04 16:51:19 -08:00