2643 Commits

Author SHA1 Message Date
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
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
Hans Muller
3f58d9b7c9 Merge pull request #310 from HansMuller/snack_bar
showSnackBar() returns a Future, clears its placeholder

The returned Future completes after the snack bar has been dismissed.

Revised BottomSheet to ensure that its Future only runs after the bottom sheet has been dismissed.
2015-11-12 09:10:36 -08:00
Hans Muller
1aac53a500 showSnackBar() returns a Future, clears its placeholder
TransitionRoute completer is now optional.
2015-11-12 08:57:09 -08:00
Devon Carew
145b53f12b Merge pull request #325 from devoncarew/flutter_adb_logs
also listen for flutter in the adb logs
2015-11-11 21:36:08 -08:00
Devon Carew
603a6a164e Merge pull request #324 from devoncarew/double_tap
update double tap reference
2015-11-11 21:34:19 -08:00
Devon Carew
0292180075 also listen for flutter in the adb logs 2015-11-11 21:12:14 -08:00
Devon Carew
d057343b1b update double tap reference 2015-11-11 20:49:29 -08:00
Adam Barth
8a256abdde Merge pull request #321 from alhaad/fix_service_registry_handle
service_registry.dart should use the service registry handle instead of shell handle
2015-11-11 18:29:50 -08:00
Adam Barth
fe3175d4bc Merge pull request #320 from jimbeveridge/shell
Fixes assert connecting to Activity service under Linux
2015-11-11 18:28:36 -08:00
Ian Hickson
19b6cf6c70 Merge pull request #319 from jason-simmons/pointer_raw_examples_2
Update the interactive_flex example for the new event handlers
2015-11-11 17:56:44 -08:00
Jason Simmons
22f26be88f Update the interactive_flex example for the new event handlers 2015-11-11 17:24:33 -08:00
Alhaad Gokhale
d0cfff1688 service_registry.dart should use the service registry handle instead of
shell handle.

R=@abarth,@tonygentilcore
2015-11-11 17:14:35 -08:00
Jim Beveridge
04501af955 Fixes assert connecting to Activity service under Linux
Fixes #313.
2015-11-11 17:10:26 -08:00
Hans Muller
4b03a9eec8 Merge pull request #318 from HansMuller/stocks_demo
Add a persistent bottom sheet to the stocks demo
2015-11-11 15:54:33 -08:00
Eric Seidel
d6a0d92b9e Merge pull request #317 from eseidelGoogle/firebase
Move data out of Github and into Firebase
2015-11-11 15:48:08 -08:00
Hans Muller
5755b15bf5 Add a persistent bottom sheet to the stocks demo 2015-11-11 15:38:13 -08:00
Eric Seidel
d8d5156a45 Move data out of Github and into Firebase
@abarth @collinjackson
2015-11-11 15:30:10 -08:00
Devon Carew
850eee90ac Merge pull request #315 from devoncarew/fix_adb_parse
Fix adb parse
2015-11-11 14:23:10 -08:00
Devon Carew
3c943d79ec fix an issue parsing 'adb devices' output 2015-11-11 14:14:12 -08:00
Ian Hickson
c49f07eec0 Merge pull request #314 from TheBosZ/master
Update to match Hixie's changed bash script
2015-11-11 13:59:48 -08:00
Nathan Kerr
d263f47431 Update to match https://github.com/Hixie/flutter/blob/flutter-analyze-PENDING/bin/flutter 2015-11-11 13:54:06 -08:00
Adam Barth
769f9cb2a0 Merge pull request #297 from TheBosZ/master
Adding windows batch file to complement the bash script.
2015-11-11 12:50:43 -08:00
Nathan Kerr
8f8d1e5848 Adding windows batch file to complement the bash script. 2015-11-11 12:49:30 -08:00
Collin Jackson
cbc743f179 Remove unneeded null check in raw keyboard example 2015-11-11 11:05:11 -08:00
Collin Jackson
e97c0d1c53 Merge pull request #309 from collinjackson/raw_keyboard
Raw keyboard example
2015-11-11 11:03:09 -08:00
Collin Jackson
b79c78c05e Raw keyboard example 2015-11-11 10:55:06 -08:00
Jason Simmons
05ad96a1b4 Merge pull request #308 from jason-simmons/pointer_raw_examples
Update the raw examples to handle PointerPacket events
2015-11-11 10:47:50 -08:00
Jason Simmons
c94e4c4154 Update the raw examples to handle PointerPacket events 2015-11-11 10:44:47 -08:00