4993 Commits

Author SHA1 Message Date
Jason Simmons
8782d95c6a Check the type of a hot reload report message (#7249)
See https://github.com/flutter/flutter/issues/7248
2016-12-13 13:43:19 -08:00
Chinmay Garde
3bc6a1bf6f Use test fonts in the test shell and remove custom font installation on Travis. (#7250) 2016-12-13 12:18:02 -08:00
YoungSeok Yoon
158ed8a0c0 Use the new path to the linter package (#7230) 2016-12-12 12:15:39 -08:00
Matt Perry
7d346dd184 Improve docs for Input and Form and friends. (#7208)
Fixes https://github.com/flutter/flutter/issues/7017
2016-12-12 14:24:45 -05:00
Matt Perry
5a864ded89 Always reserve space for error text in text fields. (#7206)
Fixes https://github.com/flutter/flutter/issues/6943
2016-12-12 14:24:36 -05:00
Yegor
25e6cc6743 tools: add timeout to VM service client (#7175) 2016-12-12 10:58:21 -08:00
John McCutchan
05866a27ed Add fine grained hot reload benchmark timers (#7237) 2016-12-12 10:27:05 -08:00
Devon Carew
bf25b31a65 some updates to the launch verbiage (#7236) 2016-12-12 09:31:58 -08:00
Yegor
2aead430a7 add GPU traces to timeline summary (#7190) 2016-12-09 16:15:31 -08:00
Alexandre Ardhuin
9eaaa91df7 use isEmpty and isNotEmpty (#7207) 2016-12-09 15:37:42 -08:00
Alexandre Ardhuin
778b30ac0b prefer_const_constructor in packages/flutter/bin (#7180) 2016-12-09 15:20:33 -08:00
Alexandre Ardhuin
c8447c91a9 prefer_const_constructor in packages/flutter/test (#7181) 2016-12-09 15:20:27 -08:00
Andrew Wilson
b0ee29d745 Fix _DragAvatar to display in the proper position for Overlays whose Point.origin is not the global Point.origin. (#7223) 2016-12-09 14:46:08 -08:00
Alexandre Ardhuin
1272e053c7 prefer_const_constructor in packages/flutter/lib (#7179) 2016-12-09 13:53:17 -08:00
Jason Simmons
37d78753a2 Propagate exceptions when parsing invalid JSON received from VM service RPCs (#7222)
The default rpc.Peer constructor was applying a transformer that filters
out these errors.

See https://github.com/flutter/flutter/issues/7174
2016-12-09 11:38:38 -08:00
Ian Hickson
4f2c6dffc7 Add annotations to the foundation Binding (#7214) 2016-12-08 23:34:09 -08:00
Todd Volkert
69bcfc082f Minor touch-ups in ProcessManager impls (#7196) 2016-12-08 09:51:05 -08:00
Todd Volkert
622e4396c9 Add tests for nested contexts (#7197)
This tests against the failure that was fixed in #7189
2016-12-08 09:39:32 -08:00
Todd Volkert
1155f96651 Add tests for process_manager.dart (#7178) 2016-12-07 21:03:58 -08:00
Todd Volkert
a4f2ad984d Fix context.dart to properly handle nested zones (#7189)
This fixes an infinite loop in the code that walks the parent
context chain looking for a variable.

This also includes a fix in build_info.dart whereby if the context
is set but the config is not yet set, we were trying to dereference
null.
2016-12-07 19:51:27 -08:00
Devon Carew
bec4a6c790 updates for flutter run --machine (#7183)
* have flutter run --machine log to stdout

* add a test

* add docs; fix type annotation lint
2016-12-07 12:48:47 -08:00
Collin Jackson
211fefc217 rename Sky to Flutter and add clarifying comment to template (#7165)
* s/sky/flutter/ in Android templates

* update engine.version with a compatible engine version

* replace more SkyActivity references with FlutterActivity
2016-12-06 16:03:32 -08:00
Dan Rubel
b265a8f5e4 setup protocol discovery before launching simulator (#7172) 2016-12-06 12:41:55 -08:00
Dan Rubel
cb6bfe39aa shorten exception info sent to analytics (#7169) 2016-12-06 12:16:49 -08:00
Hans Muller
f6cde06af3 Correct scrollable tabs fling velocity (#7170) 2016-12-06 10:48:45 -08:00
Todd Volkert
7536404b20 Add --replay-from argument to Flutter tools (#7146)
This argument will enable mocking of os-layer process invocations,
where the mock behavior will come from replaying a previously-
recorded set of invocations. At the point of process invocation,
the key metadata for the invocation will be looked up in the
recording's manifest, and iff a matching record exists in the
manifest, the process will be mocked out with data derived from
the corresponding recorded process (e.g. stdout, stderr, exit code).
2016-12-06 10:09:00 -08:00
Dan Rubel
93e662abaa Cleanup common port forwarding code (#7142)
This moves the various copies of port forwarding code in the Device subclasses into the ProtocolDiscovery class.

* move port forwarding to a common location
* throw exception if protocol Uri is not discovered or port forwarding fails
* cancel discovery protocol subscriptions on iOS launches (wasn't happening before)
* fix iOS port forwarding to match other implementations
* add tests
2016-12-06 09:19:12 -08:00
Dan Rubel
ba309b2668 degrade gracefully if flutter doctor cannot read directory (#7167) 2016-12-06 08:28:40 -08:00
Hans Muller
a3183a4a86 BottomNavigationBar accepts widget icons (#7161) 2016-12-06 08:14:36 -08:00
Chinmay Garde
4efb428254 Unconditionally enable Dart profiling on for all devices and platforms. (#7159)
It is not enabled by default in the VM because applications not launched via the tools may try to connect with the debugger. This causes the debugger and the IDE to hang on Mac.
2016-12-05 13:48:41 -08:00
Matt Perry
7034a03c67 Open the keyboard without explicit tap for autofocused Inputs. (#7129)
Fixes https://github.com/flutter/flutter/issues/7035
2016-12-05 13:39:28 -05:00
Luke Church
673745901f Use touch to avoid race condition in file modification test (#7117)
* Use touch to avoid race condition in file modification test

* Remove unused import
2016-12-05 14:40:45 +00:00
Dan Rubel
a3caafe83c update flutter doctor to display versions for installed IntelliJ plugins (#7125) 2016-12-02 18:16:04 -05:00
Hans Muller
5eada49b05 ThemeData.copyWith() should not have a primarySwatch parameter (#7127) 2016-12-02 14:21:34 -08:00
Todd Volkert
c9e7782adb Add --record-to option to flutter tools (#7136)
* Add --record-to option to flutter tools

This option will cause flutter tools to record all process
invocations that occur and serialize their stdout and stderr
to files that get added to a "recording" ZIP file. This is
part of an effort to be able to test flutter tools in a hermetic
environment.

As a side-benefit, this recording should prove an excellent
attachment to any bug report.
2016-12-02 13:39:54 -08:00
Alexandre Ardhuin
b670ce4bcc prefer const constructor (#7118) 2016-12-01 09:43:08 -08:00
Hans Muller
7667a3f8eb DropdownButton hint (#7114) 2016-12-01 07:27:14 -08:00
Dan Rubel
a9584e1214 Handle new observatory url (#7061)
* reapply handle new Observatory URL changes
Fixes https://github.com/flutter/flutter/issues/6843

* allow non numeric IPv4 addresses
Fixes https://github.com/flutter/flutter/issues/7051
2016-11-30 20:29:04 -05:00
Hans Muller
ba4ae45e6f Scaffold backgroundColor (#7104) 2016-11-30 15:50:23 -08:00
Adam Barth
f960215167 Remove unneeded analyzer ignores (#7109)
We don't need these anymore.
2016-11-30 14:54:01 -08:00
Todd Volkert
df675f45ee Fix Fuchsia build (#7105) 2016-11-30 10:06:48 -08:00
Adam Barth
56f4fe42fd Improve showSnackBar docs (#7092)
Fixes #6915
2016-11-30 09:55:17 -08:00
Michael Beckler
28bfbd6c58 Changed DefaultTextStyle to consider the TextTheme defined in the context for Bottom Nav Bar (#7042)
* Changed DefaultTextStyle to consider the TextTheme defined in the context

* added regression test for bottom nav bar text themes

* added second regression test for fixed navbar
2016-11-30 09:51:49 -08:00
Todd Volkert
60b19b2035 Create abstraction layer for dart:io's Process commands (#7100)
With this change, they're run via instance methods on an object
obtained through the context. This will allow us to substitute
that object in tests with replay/record versions to allow us to
mock out the os-layer in tests.
2016-11-30 08:42:42 -08:00
Luke Church
0924b020ec Skip failing input tests (#6965)
* Skip failing input tests

* Only skip on Mac OS
2016-11-30 07:10:19 +00:00
Hans Muller
440ddef69e Regression tests should verify that debug are not set (#7090) 2016-11-29 15:17:51 -08:00
John McCutchan
618030e044 More AppContext cleanups (#7073) 2016-11-29 11:22:48 -08:00
P.Y. Laligand
f1938c60af Fix building Fuchsia apps. (#7071)
Started failing at 0b737ac57b071df65761f164913ece6db0a85804.
2016-11-29 09:57:58 -08:00
John McCutchan
f27b0611f4 Handle SIGUSR1/SIGUSR2 spamming gracefully (#7069) 2016-11-29 09:56:38 -08:00
John McCutchan
0b737ac57b Remove default AppContext and cleanup globals (#6999) 2016-11-29 07:54:20 -08:00