24470 Commits

Author SHA1 Message Date
Adam Barth
f6bd26a3f3 Make flutter run_mojo imply flutter build
This makes run_mojo more similar to flutter start.
2015-11-17 16:19:55 -08:00
Adam Barth
e69e6c3eb1 Rename StatisticsBox to RenderStatisticsBox
Fixes #441
2015-11-17 16:10:15 -08:00
Florian Loitsch
7d7e20fd41 Merge pull request #405 from floitschG/scheduler
Add a task scheduler.
2015-11-17 16:05:26 -08:00
Adam Barth
0760c8be7f Merge pull request #446 from abarth/improve_version
Improve flutter --version output
2015-11-17 16:05:08 -08:00
Florian Loitsch
371bf37dd9 Add a task-scheduler.
The current implementation is still pretty rudimentary.
2015-11-17 15:59:54 -08:00
Ian Hickson
74f08e731a Merge pull request #448 from Hixie/nested-focus-scopes
Fix focus bug that was breaking nested navigators
2015-11-17 15:59:16 -08:00
Hixie
ad2dccf9d2 Fix focus bug that was breaking nested navigators
Turns out we were assuming that once the global key is gone, our
listener is unregistered. It isn't.

I'm planning on adding a test as part of my nested navigator work.
2015-11-17 15:54:05 -08:00
Jason Simmons
ba10546889 Merge pull request #437 from jason-simmons/apk_package
Add a Flutter command that builds an APK using a local build of the e…
2015-11-17 15:27:34 -08:00
Adam Barth
835e7f25fc Improve flutter --version output
Sample output:

```
Flutter
Repository: git@github.com:flutter/flutter.git
Branch: master
Revision: 7be58b1ae0d4bddd181b3f44f509721ab070177f (62 minutes ago)
```

Fixes #433
2015-11-17 15:24:25 -08:00
Jason Simmons
07556429f2 Add a Flutter command that builds an APK using a local build of the engine
Example:
   cd flutter/examples/stocks
   flutter --engine-src-path /path/to/engine/src apk -o Stocks.apk -m apk/AndroidManifest.xml
2015-11-17 14:54:25 -08:00
Adam Barth
7be58b1ae0 Merge pull request #442 from abarth/run_flutter_mojo
Switch flutter run_mojo over to flutter.mojo
2015-11-17 14:23:22 -08:00
Adam Barth
b8e16d7c09 Switch flutter run_mojo over to flutter.mojo
The new flutter.mojo is ready for use.
2015-11-17 14:16:20 -08:00
Ian Hickson
2734627ad9 Merge pull request #440 from Hixie/state-heroes
Notify the previous route when pushing and popping
2015-11-17 13:25:36 -08:00
Hixie
173a71ea5b Notify the previous route when pushing and popping
This makes HeroController ignore StateRoutes when deciding where to
animate heroes to and from.
2015-11-17 13:15:10 -08:00
Adam Barth
a3d4741977 Update engine 2015-11-17 11:57:12 -08:00
Adam Barth
0585a44a14 Merge pull request #435 from abarth/event_duration
Convert PointerInputEvent to Duration for timestamp
2015-11-17 11:56:38 -08:00
Ian Hickson
e98ae2424f Merge pull request #436 from Hixie/analyzer
Allowing us to have a single error seems silly.
2015-11-17 11:17:51 -08:00
Hixie
56b9245b1a Allowing us to have a single error seems silly. 2015-11-17 11:08:46 -08:00
Adam Barth
7b2004b0e9 Convert PointerInputEvent to Duration for timestamp
To make the units clear.
2015-11-17 11:07:50 -08:00
Ian Hickson
1d3f734a92 Merge pull request #414 from Hixie/fix-demos
Fix some examples.
2015-11-17 09:53:54 -08:00
Adam Barth
70ab160e89 Merge pull request #422 from abarth/from_rect
Add a Positioned constructor from a Rect
2015-11-17 09:32:40 -08:00
Adam Barth
c769d120c4 Add a Positioned constructor from a Rect
A common pattern is to use a Positioned with a Sized box to give both an offset
from the edge as well as a fixed size to the child. This patch rolls into into
the Stack layout algorithm for simplicity.

Fixes #250
2015-11-16 23:23:54 -08:00
Adam Barth
a35b214d89 Merge pull request #421 from abarth/icon_sizes
Add all the icon sizes to the FLX
2015-11-16 23:01:02 -08:00
Adam Barth
f19632430a Merge pull request #420 from abarth/version
Add a --version option to flutter
2015-11-16 23:00:53 -08:00
Adam Barth
a8ab3d6934 Add all the icon sizes to the FLX
Adding all the sizes of all the icons adds about 50 KB to the stocks FLX.
That's probably the right trade-off until we get better at pruning the set of
assets.

Fixes #235
2015-11-16 22:55:35 -08:00
Adam Barth
9e212017fb Add a --version option to flutter
This option just prints the current git revision.

Fixes #40
2015-11-16 22:49:30 -08:00
Collin Jackson
6f0464c006 Merge pull request #418 from collinjackson/redundant_fetch
Remove redundant fetch functions and avoid crashing when no headers are set
2015-11-16 22:06:10 -08:00
Collin Jackson
31f6b8f6a5 Make fetch.dart and mojo_client.dart share a network service singleton 2015-11-16 22:00:47 -08:00
Collin Jackson
b07d55d1b3 Remove redundant fetch functions and avoid crashing when no headers are set 2015-11-16 18:31:57 -08:00
krisgiesing
725474c6d7 Merge pull request #416 from krisgiesing/run_mojo_fix
Allow flutter engine path to be set when using run_mojo
2015-11-16 17:06:49 -08:00
Kris Giesing
95a2af8b80 Fix analyzer errors 2015-11-16 17:00:55 -08:00
Kris Giesing
57bca7da10 Allow flutter engine path to be set when using run_mojo 2015-11-16 16:42:47 -08:00
krisgiesing
3350c0c3e4 Merge pull request #415 from krisgiesing/editable_fix
Fix issue with forward-delete in editable text widget
2015-11-16 16:31:05 -08:00
Kris Giesing
2acc2f6f84 Back out irrelevant change 2015-11-16 16:26:42 -08:00
Kris Giesing
58df220ea4 Fix issue with forward-delete in editable text widget 2015-11-16 16:07:21 -08:00
Collin Jackson
f1f68f50d2 Merge pull request #401 from collinjackson/remove_sky_log_check
Now that #371 is fixed, we no longer need to check logs for "sky"
2015-11-16 15:57:53 -08:00
Adam Barth
7ad947ac66 Update sky_engine and sky_services 2015-11-16 15:56:32 -08:00
Hixie
5e221334fa Fix some examples.
- drag and drop was using the wrong draggables (long press vs short
  press).

- navigation.dart wasn't using material correctly and so was ending up
  with some red text.

- piano wasn't followig our style guide even a little.

- date picker was not scrollable.
2015-11-16 15:54:40 -08:00
Eric Seidel
8687981404 Merge pull request #408 from eseidelGoogle/shebang
Moar shebang.
2015-11-16 15:45:29 -08:00
Eric Seidel
a2ee056310 Moar shebang.
Make it possible to run dev/update_packages.dart directly from the shell.

@abarth
2015-11-16 15:43:04 -08:00
Collin Jackson
b2cdc16812 Merge pull request #396 from collinjackson/headers
Support for setting HTTP headers
2015-11-16 14:36:05 -08:00
Collin Jackson
03f265a5ce Merge pull request #400 from collinjackson/logs_abbr
Fix #373 Add abbreviation for flutter logs -c
2015-11-16 14:35:58 -08:00
Collin Jackson
8c195c074f Now that #371 is fixed, we no longer need to check logs for "sky" 2015-11-16 14:34:54 -08:00
Collin Jackson
0aca425a8b Fix #373 Add abbreviation for flutter logs -c 2015-11-16 14:23:18 -08:00
Collin Jackson
e3b9094f2a Fix #104 Support for setting HTTP headers 2015-11-16 14:10:58 -08:00
Ian Hickson
d5e71f768b Merge pull request #385 from Hixie/MaterialPageRoute
Move Material page animations to Material layer.
2015-11-16 13:20:34 -08:00
Hixie
309d25d4bb Move Material page animations to Material layer.
PageRoute is now MaterialPageRoute.

This also changes the following:

- Now the HeroController is a Navigator observer, rather than a feature
  of HeroPageRoutes, which are gone. This means heroes can work between
  any kind of ModalRoute now.

- ModalPageRoute is moved from modal_barrier.dart to routes.dart.

- It allows routes to opt-out of their modal barrier being a shortcut to
  popping the route.

- Features of PageRoute that aren't Material-specific get promoted to
  ModalRoute features: storage, the subtree key, offstageness...

The AnimatedModalBarrier is still a ModalRoute feature.
2015-11-16 12:53:12 -08:00
Ian Hickson
8bc9e1b8a2 Merge pull request #384 from Hixie/resilient-tests
More resilient Widget tests
2015-11-16 12:52:53 -08:00
Hixie
d041f3ead5 More resilient Widget tests
- force the time dilation to 1.0 for the Widget tests, so that a local
  change doesn't break all the tests during development.
- add missing license block to all the files.
- set ui.window.onBeginFrame to null when you use WidgetTester, so that
  the engine doesn't trigger any confusing frames after our fake frames.
2015-11-16 12:29:25 -08:00
Adam Barth
81e1c83547 Merge pull request #359 from IvBaranov/flutter_update_fix
Fix quotes error in update flutter bash script
2015-11-16 12:27:14 -08:00