6580 Commits

Author SHA1 Message Date
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
Adam Barth
b1435e2973 Merge pull request #305 from abarth/input_layout
Give loose contraints to text inside input widget
2015-11-11 09:56:29 -08:00
Hans Muller
6d57a2a247 Merge pull request #306 from HansMuller/named_parameters
Named parameters for the mock_events.dart TestPointer class
2015-11-11 09:55:53 -08:00
Hans Muller
b8286be18d Named parameters for the mock_events.dart TestPointer class 2015-11-11 09:47:06 -08:00
Adam Barth
64a645352c Give loose contraints to text inside input widget
The input widget scrolls, so it should give its text loose constraints.  That
way the text ends up being its intrinsic size even if put in a context with
tight constraints.

Fixes #298
2015-11-11 09:37:01 -08:00
Hans Muller
7791acd81d Merge pull request #303 from HansMuller/bottom_sheet_test
Add a unit test for persistent bottom sheets

ShowBottomSheet now clears its placeholder after the bottom sheet has been dismissed.

Added support for generating fling gestures to WidgetTester.
2015-11-11 09:10:05 -08:00
Hans Muller
b4c3970319 Add a unit test for persistent bottom sheets 2015-11-11 08:49:50 -08:00
Jason Simmons
97b1d21b4b Merge pull request #268 from jason-simmons/idl_pointer_event
Receive pointer events through PointerPackets
2015-11-10 16:07:21 -08:00
Jason Simmons
480c5ae4eb Receive pointer events through PointerPackets 2015-11-10 16:06:24 -08:00
Jason Simmons
587a6e86d4 Update CONTRIBUTING.md 2015-11-10 16:06:09 -08:00
Adam Barth
fa4147147a Merge pull request #295 from abarth/fix_more_warnings
Fix remaining analyzer warnings
2015-11-10 14:36:11 -08:00
Adam Barth
b1a17cb0f8 Fix remaining analyzer warnings
Constructor tear-offs aren't supported by the analyzer yet.
2015-11-10 14:12:15 -08:00
Adam Barth
7ea598d9c2 Merge pull request #294 from abarth/fix_warnings
Fix analyzer warnings in mojo_client.dart
2015-11-10 14:11:45 -08:00
Adam Barth
c685cb804d Fix analyzer warnings in mojo_client.dart 2015-11-10 14:06:22 -08:00