Commit Graph

29153 Commits

Author SHA1 Message Date
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
Hans Muller
b3783a1605 Merge pull request #383 from HansMuller/more_stocks_bugs
Give the StockSymbolView's Hero a Key

The StockSymbolBottomSheet includes a Hero, as does the StockSymbolPage and the StockRow. When two or more heroes with the same tag are gathered together Heros.of() expects them to have distinguishing non-null keys. Now they do.

Fixes #382
2015-11-16 12:00:10 -08:00
Hans Muller
f7b36f07f8 Give the StockSymbolView's Hero a Key 2015-11-16 11:35:42 -08:00
Ivan Baranov
3d99e74b99 Fix unary operator error when revision variable is empty 2015-11-16 21:56:46 +04:00
Hans Muller
8b1dd598e1 Merge pull request #376 from HansMuller/stocks_bug
Safely clear SnackBack and BottomSheet placeholders

Correct one stocks demo bug: displaying the stock symbol viewer (single tap on a row) while a BottomSheet or SnackBar was up, would assert.

Thep SnackBack and BottomSheet placeholder keys are cleared when they're obscured by a route with an opaque OverlayEntry. So in that case there's no need to try and clear the placeholder's child again.
2015-11-16 08:11:15 -08:00
Adam Barth
1ddc71aa46 Merge pull request #379 from TheBosZ/master
Updates for Windows development
2015-11-14 13:14:32 -08:00
Nathan Kerr
d36af446f2 Change Regex to correctly match against my device.
Since we don't care about the port, just allow any characters between the spaces after the device ID and the product.

Running Windows 10, running "adb devices -l" with my device attached to the computer gives:
FA34MW904146           device product:cm_m7 model:One device:m7

Which wasn't being matched correctly (no info on USB port).
2015-11-14 11:25:29 -08:00
Nathan Kerr
ed297f476a Need to change working directories so that the command works when called from outside the flutter directory.
Removed accidental debug code.
2015-11-14 11:22:48 -08:00
Hans Muller
7955995f24 Safely clear SnackBack and BottomSheet placeholders 2015-11-13 16:13:35 -08:00
Adam Barth
afaedbf21d Merge pull request #375 from abarth/nest_scaffolds
You should be able to nest Scaffolds
2015-11-13 15:40:57 -08:00
Adam Barth
fc2e31b8aa You should be able to nest Scaffolds
Prior to this patch, MultiChildLayoutDelegate couldn't be re-entered because it
cleared _idToChild when unwinding its stack. Now we restore the previous value
of _idToChild when we unwind.
2015-11-13 15:35:39 -08:00
John McCutchan
56a81089fb Merge pull request #368 from johnmccutchan/fix_message_api_breakage
Update four callers of Message constructor to pass in required arguments
2015-11-13 14:46:09 -08:00
John McCutchan
d1e62a39e2 Update four callers of Message constructor to pass in required arguments 2015-11-13 14:39:06 -08:00
Adam Barth
3def4fdc32 Merge pull request #351 from abarth/launch_url
Add an example for launching a URL
2015-11-13 14:25:12 -08:00
Adam Barth
4cb0ae4901 Add an example for launching a URL 2015-11-13 14:16:25 -08:00
Adam Barth
41e1187576 Merge pull request #365 from johnmccutchan/bump_deps
Bump dependencies on sky_engine and sky_services
2015-11-13 13:28:50 -08:00
John McCutchan
e31d103521 Bump dependencies on sky_engine and sky_services 2015-11-13 13:24:32 -08:00
Adam Barth
b62344147b Merge pull request #363 from abarth/empty_cursor
Cursor is tiny when there's no text in an input
2015-11-13 11:19:02 -08:00