24470 Commits

Author SHA1 Message Date
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
Ian Hickson
05d94b5a9f Merge pull request #340 from Hixie/fewer-constructor-tearoffs
Remove constructor tear-offs
2015-11-12 12:53:45 -08:00
Hixie
9c6e96a3e8 Remove constructor tear-offs
Some of our workflows have no way to silence analyzer warnings, and the
analyzer doesn't yet support constructor tear-offs, so pretend that we
can't use them for now.
2015-11-12 12:39:02 -08:00
Ian Hickson
4a71f38224 Merge pull request #332 from Hixie/flutter-analyze
flutter analyze command
2015-11-12 12:28:48 -08:00
Adam Barth
7939ec5d40 Merge pull request #336 from abarth/builder_index
ItemBuilder should also get the index of the item
2015-11-12 12:25:12 -08:00
Hixie
a0227cab15 flutter analyze command
Other changes in this patch:
- Make the 'flutter' tool say "Updating flutter tool..." when it calls
  pub get, to avoid confusion about what the pub get output is about.
- Make the bash flutter tool call pub get when the revision has
  changed. (This was already happening on Windows.)
- Fix a raft of bugs found by the analyzer.
- Fix some style nits in various bits of code that happened to be near
  things the analyzer noticed.
- Remove the logic in "flutter test" that would run "pub get", since
  upon further reflexion it was determined it didn't work anyway.
  We'll probably have to add better diagnostics here and say to run the
  updater script.
- Remove the native velocity tracker script, since it was testing code
  that has since been removed.

Notes on ignored warnings:
- We ignore warnings in any packages that are not in the Flutter repo or
  in the author's current directory.
- We ignore various irrelevant Strong Mode warnings. We still enable
  strong mode because even though it's not really relevant to our needs,
  it does (more or less accidentally) catch a few things that are
  helpful to us.
- We allow CONSTANTS_LIKE_THIS, since we get some of those from other
  platforms that we are copying for sanity and consistency.
- We allow one-member abstract classes since we have a number of them
  where it's perfectly reasonable.
- We unfortunately still ignore warnings in mojom.dart autogenerated
  files. We should really fix those but that's a separate patch.
- We verify the actual source file when we see the 'Name non-constant
  identifiers using lowerCamelCase.' lint, to allow one-letter variables
  that use capital letters (e.g. for physics expressions) and to allow
  multiple-underscore variable names.
- We ignore all errors on lines that contain the following magic
  incantation and a "#" character:
    // analyzer doesn't like constructor tear-offs
- For all remaining errors, if the line contains a comment of the form
    // analyzer says "..."
  ...then we ignore any errors that have that "..." string in them.
2015-11-12 12:23:29 -08:00
Adam Barth
0259ad81db ItemBuilder should also get the index of the item
This seems useful for numbering the entries in the list, for example.

Fixes #328
2015-11-12 12:05:42 -08:00
Adam Barth
0758fea1c8 Merge pull request #334 from abarth/rev_engine
Update to a newer sky_engine and sky_services
2015-11-12 11:14:40 -08:00
Adam Barth
1bc06c80aa Update to a newer sky_engine and sky_services 2015-11-12 11:08:53 -08:00
Adam Barth
c428c8251d Merge pull request #331 from abarth/flutter_upgrade
Add a `flutter upgrade` command
2015-11-12 10:21:22 -08:00
Adam Barth
90991854e0 Add a flutter upgrade command
This command upgrades the version of flutter that you're using and runs
`pub upgrade` to update the transitive dependencies.
2015-11-12 10:16:13 -08:00