6580 Commits

Author SHA1 Message Date
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
Adam Barth
69e511d207 Cursor is tiny when there's no text in an input
Now we use a zero-width space to force the engine to resolve the font and tell
us how large the text is likely to be once there's text in the widget.

Fixes #302
2015-11-13 10:17:23 -08:00
Adam Barth
71578c8b0d Update to a new engine 2015-11-13 09:37:21 -08:00
Ivan Baranov
f5a9d33888 Fix quotes error in update flutter bash script 2015-11-13 13:00:52 +03:00
Ian Hickson
fc5832dcdf Merge pull request #355 from Hixie/tap-bugs
Fix tapcancel on slop.
2015-11-12 22:22:42 -08:00
Ian Hickson
16471d92b9 Merge pull request #353 from Hixie/hit-testing-cleanup
Hit Testing Cleanup
2015-11-12 22:22:36 -08:00
Ian Hickson
876459e898 Merge pull request #354 from Hixie/more-debugging-for-listeners
More detailed debugging info for RenderPointerListener et al
2015-11-12 22:22:34 -08:00
Ian Hickson
0401cbd0f0 Merge pull request #356 from Hixie/trivial-cleanup
Trivial whitespace fixes.
2015-11-12 22:22:30 -08:00
Ian Hickson
c40cb176e3 Fix tapcancel on slop.
Make sure to send tapcancel when the primary pointer fails because of
slop, even if the gesture won by default.

Also, minor cleanup and clarification of an invariant.
2015-11-12 22:17:47 -08:00
Ian Hickson
1aa2751ba8 Trivial whitespace fixes. 2015-11-12 22:10:16 -08:00
Ian Hickson
c78e81f566 More detailed debugging info for RenderPointerListener et al
Elaborate on the debugging information exposed by
RenderPointerListener, Listener, and GestureDetector.
2015-11-12 21:22:38 -08:00
Ian Hickson
92b9d91af1 Hit Testing Cleanup
- Drop the unused BindingHitTestEntry class. (Well, it was
  constructed, but its member was never used, so it wasn't doing
  anything a boring old HitTestEntry couldn't already do.)

- Add toString()s to HitTestEntry and HitTestResult, to aid in
  debugging hit-test related code.
2015-11-12 20:57:08 -08:00
Adam Barth
4e329a6731 Merge pull request #350 from abarth/dispose_host_objects
Explicitly dispose heavy C++ objects
2015-11-12 17:24:43 -08:00
Adam Barth
679a423b3d Explicitly dispose heavy C++ objects
This patch calls dispose() explicitly on a number of heavy C++ objects so that
they can be eagerly finalized instead of waiting for GC.
2015-11-12 17:07:49 -08:00
Adam Barth
b628ff4051 Merge pull request #349 from abarth/reparent_data
Parent data not updated when reparenting using global keys
2015-11-12 16:58:57 -08:00
Adam Barth
35464f447b Parent data not updated when reparenting using global keys
When we reactivate a subtree that had a global key, we weren't updating the
parent data because:

1) The child wasn't in the tree when we updated the parent data element.
2) The activated child didn't go through mount (just through update).

This patch moves the parent data update work to when we attach the render
object, which we do both during mount and when reactivating a child.

Fixes #345
2015-11-12 16:51:56 -08:00
Hans Muller
f0825a8271 Merge pull request #342 from HansMuller/stocks_menu_bug
Fix Dialog and PopupMenu completion logic

It's now (just) in TransitionRoute.

Added smoke tests for showMenu() and showDialog().

Fixes #337
2015-11-12 16:40:47 -08:00
Hans Muller
45e1211677 Fix Dialog and PopupMenu completion logic 2015-11-12 16:31:24 -08:00
Devon Carew
1eb67420a0 Merge pull request #343 from devoncarew/widget_icons
add a flutter.yaml file for the widgets project
2015-11-12 16:21:00 -08:00
Ian Hickson
91fb1f13e6 Merge pull request #346 from Hixie/analyze-bugs
Make the analyzer actually work.
2015-11-12 15:54:50 -08:00
Hixie
8ab229f89c Make the analyzer actually work.
Turns out that ignoring all error lines that match the empty string is a
poor way to go.

Also, we have to update all the example packages now too, since we
analyze them. So just have travis use our update script.

Also, remove flutter_tools' old travis stuff. It's now part of a bigger
repo.

Also, make travis use the dev Dart SDK, since we need the new analyzer.
Stable is way too out of date, e.g. it still complains about libraries
not having names and mixins using 'super', and the strong mode hints are
even more aggressive than on dev.
2015-11-12 15:41:04 -08:00
Ian Hickson
5109dd51a6 Merge pull request #341 from Hixie/analyzer-trash
Delete analyzer temporary directories
2015-11-12 14:29:07 -08:00
Devon Carew
49b7fee4c7 add a flutter.yaml file for the widgets project 2015-11-12 13:42:54 -08:00
Hixie
4a5713acc8 Delete analyzer temporary directories 2015-11-12 13:11:41 -08:00