1826 Commits

Author SHA1 Message Date
Adam Barth
576795dcc6 Add a CONTRIBUTING.md
This document describes the workflow for contributing code to this repository.
2015-11-08 21:56:20 -08:00
Devon Carew
4112f66312 Merge pull request #52 from devoncarew/older_android
support older android devices (>= 17)
2015-11-07 21:59:56 -08:00
Devon Carew
3b9862a52c support older android devices (>= 16) 2015-11-07 21:55:21 -08:00
Adam Barth
2710e0f468 Teach flutter init how to depend on flutter using a relative path 2015-11-07 21:30:26 -08:00
Jeff R. Allen
c8c2d23f26 Avoid use of run-as
Issue #1988 results from run-as not working on some phones,
because of Android issue 58373.

This change removes the need for run-as for running
"flutter start". It is still needed for tracing.
2015-11-07 15:28:01 +06:00
Adam Barth
00de3081d5 The FLX package should test itself
Rather than using the Flutter unit tests to test FLX, we can just test FLX
directly. Also, clean up the dependencies in the pubspec to match the code.
2015-11-06 23:59:17 -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
Devon Carew
a469020983 add a flutter.yaml file to the init template 2015-11-06 20:57:35 -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
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
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
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
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
Adam Barth
7b36d94455 Use sky_tools 37 2015-11-04 14:50:07 -08:00
Adam Barth
70bd462074 Rev pub specs 2015-11-04 14:49:29 -08:00
Adam Barth
01a6356230 Rev pubspec 2015-11-04 14:26:07 -08:00
Adam Barth
b4fa3fbbf0 Return to the mojo artifacts for Linux 2015-11-04 14:25:47 -08:00
Hans Muller
7a370b8aba Merge pull request #1952 from HansMuller/snack_bottom_fab
One Scaffold layout to rule them all

Expanded the existing CustomMultiChildLayout to handle all of the Scaffold's children.

This change also eliminates the FAB input dead-zone.
2015-11-04 14:00:30 -08:00
Matt Perry
92e3e96ae3 Merge pull request #1949 from mpcomplete/async
Remove use of FakeAsync in signing_test.dart
2015-11-04 16:57:55 -05:00
Hans Muller
875d826294 One Scaffold layout to rule them all. 2015-11-04 13:52:15 -08:00
Hixie
ba3f60f87f Gesture class hierarchy tune-up
Make all the *GestureRecognizer classes inherit from a class called
GestureRecognizer. Give the old GestureRecognizer a name that is more
precise about its purpose. Remove the members of GestureArenaMember that
aren't used by GestureArenas.
2015-11-04 13:18:11 -08:00