2520 Commits

Author SHA1 Message Date
Hans Muller
8a8bd0197c Merge pull request #62 from HansMuller/bottom_sheet_drag
Support drag-to-dismiss in persistent bottom sheets

Flinging a persistent bottom sheet downwards dismisses it, per the Material spec.

The showBottomSheet() function now returns a Future, like showModalBottomSheet() does, so that you can discover when it's been dismissed - with navigator.pop() - and with what value.

Factored the drag gesture handling code into _BottomSheetDragController

This CL was flutter/engine#1997
2015-11-09 10:44:47 -08:00
Hans Muller
da4fbdd4ae Updated {} and fling dismiss Future value 2015-11-09 09:39:19 -08:00
Ian Hickson
d355611d03 Merge pull request #61 from Hixie/dart-tests
Port test logic to Dart.
2015-11-09 09:11:38 -08:00
Ian Hickson
3419068cb3 Port test logic to Dart. 2015-11-09 09:00:49 -08:00
Hans Muller
9cb8188a0c Support drag-to-dismiss in persistent bottom sheets 2015-11-09 08:36:19 -08:00
Adam Barth
1cadf1256d Update CONTRIBUTING.md 2015-11-08 22:21:55 -08:00
Adam Barth
f4c62a860a Update CONTRIBUTING.md 2015-11-08 22:18:16 -08:00
Adam Barth
fdafd51f8c Merge pull request #58 from abarth/contributing
Add a CONTRIBUTING.md
2015-11-08 22:11:09 -08:00
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
9bc6e68635 Merge pull request #51 from abarth/init_from_path
Teach flutter init how to depend on flutter using a relative path
2015-11-07 21:36:13 -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
Adam Barth
c9a79bfedb Merge pull request #48 from jeffallen/no-run-as
Avoid use of run-as
2015-11-07 09:53:01 -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
45408d3ee6 Merge pull request #38 from abarth/test_flx
The FLX package should test itself
2015-11-07 00:09:03 -08: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
a53a8fc9e2 Merge pull request #37 from abarth/pubspec
Update pubspecs and enable testing
2015-11-06 23:50:40 -08:00
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