12168 Commits

Author SHA1 Message Date
Hans Muller
4f4005ee65
TextTheme.apply() corrections (#23108)
TextTheme.apply was incorrectly applying displayColor to the TextTheme's headline, title, subhead, body1, and body2 TextStyle colors. In all cases it should have been bodyColor.
2018-10-15 12:18:13 -07:00
Michael Klimushyn
6fef292f44
Wire decodedCacheRatioCap from PaintingBinding to Codec (#22452)
Users can set `PaintingBinding.decodedCacheRatioCap` to control the max
amount of memory used per image to avoid decoding frames each animation
loop.

This depends on flutter/engine#6310.

Fixes #20998, and fixes #14344
2018-10-15 11:22:27 -07:00
Mouad Debbar
43001a3ab6 Correctly throw when MaterialPageRoute's builder returns null (#22885) 2018-10-15 09:49:16 +02:00
Michael Goderbauer
8e2ca93f52
Remove all service extensions from release mode (#23038)
Service extensions can only be activated in debug or profile mode, their code should never be included in release mode. This PR adds guards around all service extension registration calls that enable Dart's tree shaker to remove the extension's code in release mode, which reduces our binary size:

Android Snapshot (uncompressed): minus 127,384 Bytes (-124.40KB)
APK (compressed): minus 38,136 Bytes (-37.24KB)
iOS Snapshot (App.framework, uncompressed): 264,304 Bytes(-258.10KB)

For details: https://docs.google.com/document/d/13JlgvliCn5sWwT2K2SfDwD1NhEfxpJH9DCf22gZZru8/edit

**Benchmark Regressions:** This PR may cause benchmarks to regress because it may change the timing of GC. If you notice a benchmark regression **please note down the exact set of benchmarks that regressed on this PR** and then feel free to revert. I will follow-up with a PR that forces a GC before the effected benchmarks run to get a clean baseline before re-applying this PR.
2018-10-12 21:07:55 -07:00
matthew-carroll
04a26778c5
Revert "Reversion for roll (#22984)" (#23029)
This reverts commit 80f80ab08c0dad8551c91087cd1017aba094d22c.
2018-10-12 16:31:34 -07:00
liyuqian
53de41cac6
Roll engine to 50c2e69da with goldens fix (#23016)
Goldens updated due to Skia AA changes. We previously also made a mistake by having a golden test run on MacOS.

git log 3ffa36295234..50c2e69da --no-merges --oneline
50c2e69da Roll src/third_party/skia 1b62fad4b188..b27a9cf2f4a8 (1 commits) (flutter/engine#6514)
8757bf2a1 Roll src/third_party/skia 05caa69a3f5a..1b62fad4b188 (2 commits) (flutter/engine#6513)
c2fd10ad1 Roll src/third_party/skia 2a138544646d..05caa69a3f5a (1 commits) (flutter/engine#6512)
2018-10-12 13:15:25 -07:00
Artur Rymarz
a3670a2f85 Add parameters to allow hiding icons and border of the Cupertino TabBar (#22804) 2018-10-12 09:08:57 -07:00
engine-flutter-autoroll
490d369a7f
Roll engine 35ba11eb49e8..3ffa36295234 (1 commits) (#22993)
35ba11eb49...3ffa362952

git log 35ba11eb49e8..3ffa36295234 --no-merges --oneline
3ffa36295 Add a callback for iOS when the first Flutter frame is rendered (flutter/engine#6135)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-12 01:22:17 -04:00
engine-flutter-autoroll
c4b72d61a6
Roll engine daf4447a2eb2..35ba11eb49e8 (2 commits) (#22990)
daf4447a2e...35ba11eb49

git log daf4447a2eb2..35ba11eb49e8 --no-merges --oneline
35ba11eb4 Roll src/third_party/skia e7588323d586..2a138544646d (2 commits) (flutter/engine#6510)
f95bad849 Roll src/third_party/skia a631669e50a2..e7588323d586 (8 commits) (flutter/engine#6509)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-12 00:31:17 -04:00
matthew-carroll
80f80ab08c
Reversion for roll (#22984)
For G3 Roll:

* Revert "MaterialButton must honor its minWidth and height parameters (#22919)"

This reverts commit a02332335a0849e92daa7fb272e2ee1ccc7d4248.

* Revert "Update uses of ButtonTheme.bar: pass along the current Theme's colorScheme (#22827)"

This reverts commit 655bf6a290714248733c7af46c637fce34b56206.

* Revert "ButtonTheme.of().colorScheme defers to Theme (#22880)"

This reverts commit a590940e458ae02d89f63062e45a406cb3a73f4e.

* Revert "Bring TextTheme into alignment with the current Material spec (#22330)"

This reverts commit 8bfb4b3ee5e908165135aaa57dc6bce5d561a693.

* Revert "Added ColorScheme, updated ThemeData, ButtonTheme, material buttons (#22013)"

This reverts commit eea3465ae75ac5445c54490c542047032f8f8314.

* Manual adjustments to fix reversion issues.
2018-10-11 18:17:46 -07:00
engine-flutter-autoroll
74d677b58a
Roll engine 9cad7b663ee2..daf4447a2eb2 (3 commits) (#22986)
9cad7b663e...daf4447a2e

git log 9cad7b663ee2..daf4447a2eb2 --no-merges --oneline
daf4447a2 Reland "Allow raster caching any layer subtree (#6442)" (flutter/engine#6507)
c6e6da512 Revert "Allow raster caching any layer subtree (#6442)" (flutter/engine#6506)
6447418f7 Allow raster caching any layer subtree (flutter/engine#6442)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-11 20:51:17 -04:00
jslavitz
673d56d1b7
Fix test template (#22982)
* added test
2018-10-11 16:25:34 -07:00
Greg Spencer
ba1323929a
Re-enable docs generation. (#22979) 2018-10-11 15:56:22 -07:00
Jonah Williams
313059cdb6
Add labeled tappable target guideline and gallery tests (#22824) 2018-10-11 15:05:10 -07:00
engine-flutter-autoroll
3188e5c6cf
Roll engine 22522c0b3e69..9cad7b663ee2 (2 commits) (#22978)
22522c0b3e...9cad7b663e

git log 22522c0b3e69..9cad7b663ee2 --no-merges --oneline
9cad7b663 Roll src/third_party/skia 9c37cd96e4c8..a631669e50a2 (12 commits) (flutter/engine#6501)
ee53ae1ea Roll src/third_party/skia 932759e9b414..9c37cd96e4c8 (1 commits) (flutter/engine#6498)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-11 17:56:17 -04:00
Janice Collins
3b68ae8422
Remove extraneous flags from dartdoc invocation (#22972) 2018-10-11 13:27:43 -07:00
Alexandre Ardhuin
0e76cb4c10
prefer_void_to_null in flutter_test (#22847)
* prefer_void_to_null in flutter_test

* fix CI
2018-10-11 18:00:46 +02:00
Jason Simmons
dba54316f4 Android API version check for the call to Activity.reportFullyDrawn (#22918) 2018-10-11 08:57:33 -07:00
engine-flutter-autoroll
502697f916
Roll engine 7ea8b9968dce..22522c0b3e69 (1 commits) (#22946)
7ea8b9968d...22522c0b3e

git log 7ea8b9968dce..22522c0b3e69 --no-merges --oneline
22522c0b3 Roll src/third_party/skia f03d4eaa2487..932759e9b414 (2 commits) (flutter/engine#6497)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-11 10:20:23 -04:00
engine-flutter-autoroll
29feac1939
Roll engine f307c7fd070b..7ea8b9968dce (1 commits) (#22939)
f307c7fd07...7ea8b9968d

git log f307c7fd070b..7ea8b9968dce --no-merges --oneline
7ea8b9968 Roll src/third_party/skia 9835dd51b320..f03d4eaa2487 (1 commits) (flutter/engine#6496)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-11 01:24:23 -04:00
engine-flutter-autoroll
7e94d9a5ce
Roll engine daed2b7d61f3..f307c7fd070b (3 commits) (#22936)
daed2b7d61...f307c7fd07

git log daed2b7d61f3..f307c7fd070b --no-merges --oneline
f307c7fd0 Remove VM options that are on by default now. (flutter/engine#6495)
61cf4c01f Pass scriptcode and variantcode to dart:ui Window. (flutter/engine#6493)
0eda0cfd4 Roll src/third_party/skia 04ac46135f23..9835dd51b320 (7 commits) (flutter/engine#6494)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-11 00:28:23 -04:00
Alexander Aprelev
e274ed866a [dart] Roll engine to dart roll 2018-10-10 20:45:22 -07:00
Alexander Aprelev
fde2347cfe [dart] Roll engine to pre-dart roll 2018-10-10 20:45:22 -07:00
Hans Muller
a02332335a MaterialButton must honor its minWidth and height parameters (#22919) 2018-10-10 20:22:07 -07:00
Greg Spencer
081d2a7a86
Re-land text wrapping/color PR (#22831)
This attempts to re-land #22656.

There are two changes from the original:

I turned off wrapping completely when not sending output to a terminal. Previously I had defaulted to wrapping at and arbitrary 100 chars in that case, just to keep long messages from being too long, but that turns out the be a bad idea because there are tests that are relying on the specific form of the output. It's also pretty arbitrary, and mostly people sending output to a non-terminal will want unwrapped text.

I found a better way to terminate ANSI color/bold sequences, so that they can be embedded within each other without needed quite as complex a dance with removing redundant sequences.

As part of these changes, I removed the Logger.supportsColor setter so that the one source of truth for color support is in AnsiTerminal.supportsColor.

*     Turn on line wrapping again in usage and status messages, adds ANSI color to doctor and analysis messages. (#22656)

    This turns on text wrapping for usage messages and status messages. When on a terminal, wraps to the width of the terminal. When writing to a non-terminal, wrap lines at a default column width (currently defined to be 100 chars). If --no-wrap is specified, then no wrapping occurs. If --wrap-column is specified, wraps to that column (if --wrap is on).

    Adds ANSI color to the doctor and analysis output on terminals. This is in this PR with the wrapping, since wrapping needs to know how to count visible characters in the presence of ANSI sequences. (This is just one more step towards re-implementing all of Curses for Flutter. :-)) Will not print ANSI sequences when sent to a non-terminal, or of --no-color is specified.

    Fixes ANSI color and bold sequences so that they can be combined (bold, colored text), and a small bug in indentation calculation for wrapping.

    Since wrapping is now turned on, also removed many redundant '\n's in the code.
2018-10-10 18:17:56 -07:00
Andrew Davies
1531ef60ec
[frdp] Add configurable timeouts for VM. (#22893)
This adds configurable timeouts for the Dart VM. Due to some testing
machines running things quite slowly, this is becoming more necessary.
2018-10-10 16:11:01 -07:00
Sebastian Roth
9c01c2b836 Use new run arguments API in flutter_view / Android example. 2018-10-10 12:45:41 -07:00
Hans Muller
a590940e45
ButtonTheme.of().colorScheme defers to Theme (#22880)
ButtonThemeData no longer requires a colorScheme. If colorScheme is null, ButtonTheme.of() will initialize it from the current Theme.
2018-10-10 11:40:30 -07:00
Greg Spencer
0ff9e8a928
Rename 'application' back to 'module', and make 'app' the default again for templates. (#22888)
We decided that redefining the default for templates was premature. We're going to go back to having "module" in experimental land again, and we'll try again when we have the feature set fully baked.

This keeps the writing of the .metadata files, and writing the template type to them, because that was a good improvement, and there are still a bunch of added tests that improve our coverage.
2018-10-10 11:01:40 -07:00
creativecreatorormaybenot
e58e473251 Added person related icons (#22490)
Adds person related icons: `group` & `group_solid`, `person` & `person_solid` and `person_add` & `person_add_solid`.
2018-10-10 10:27:29 -07:00
Philip
0c6c61988d Remove new keyword from default template app (#22454)
* Remove new keyword from default template app
2018-10-10 09:59:53 -07:00
Jason Simmons
52e5a9a70a
Add a profile build type to the Android app template (with plugin support) (#22884)
This is required in order to support "flutter run --profile"
2018-10-10 09:54:57 -07:00
Danny Tuppeny
a02f9d501b
Allow passing a restart reason through to analytics (#21983)
* Allow passing a restart reason through to analytics

* Update to avoid overlaps with other code

* Remove TODO as this is the real live value

* Improve formatting + constant name
2018-10-10 10:23:32 +01:00
engine-flutter-autoroll
8ceead31f6
Roll engine e68b85ae7ff4..bc6df5bc34dc (3 commits) (#22889)
e68b85ae7f...bc6df5bc34

git log e68b85ae7ff4..bc6df5bc34dc --no-merges --oneline
bc6df5bc3 Roll buildroot to 2f0e56e63f92f1a8b80603e4b1c671fcf7b04feb (flutter/engine#6480)
2d199e85c Roll src/third_party/skia ef85d19100b1..42137de2b2b8 (7 commits) (flutter/engine#6479)
b6060d490 Missing dealloc method in FlutterEventChannel (flutter/engine#6464)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-10 02:25:23 -04:00
Alexandre Ardhuin
bfedbd09b8
prefer_void_to_null in flutter_localizations (#22826) 2018-10-10 06:04:31 +02:00
Jorge Coca
422e56c29c Added support for Gradle productFlavors that are not only lowercase (#22767)
Fixes https://github.com/flutter/flutter/issues/19507
2018-10-09 20:04:29 -07:00
Hans Muller
8bfb4b3ee5
Bring TextTheme into alignment with the current Material spec (#22330) 2018-10-09 17:00:15 -07:00
engine-flutter-autoroll
87f97ca358
Roll engine bf377896ff0f..e68b85ae7ff4 (2 commits) (#22881)
bf377896ff...e68b85ae7f

git log bf377896ff0f..e68b85ae7ff4 --no-merges --oneline
e68b85ae7 Roll Tonic (flutter/engine#6478)
fcb7292cb Add build targets for fuchsia (flutter/engine#6470)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-09 19:43:20 -04:00
Greg Spencer
485ed2f655
Fix DevFS to understand missing files in _stat() (#22844)
Fixes #22451
2018-10-09 14:33:47 -07:00
Jonah Williams
fb7a5937ba
Basic scroll semantics support (#21764) 2018-10-09 14:16:28 -07:00
Janice Collins
59f1f1b6e2
Update dartdoc to 0.23.1. (#22875) 2018-10-09 13:49:00 -07:00
Jonah Williams
9e51cc3e83
Add assert for null duration on snackbar (#22746) 2018-10-09 13:45:56 -07:00
jslavitz
8d545e9301
Add disabledThumbColor and other properties from Switch to SwitchListTile final (#22823)
* added missing properties
2018-10-09 13:43:15 -07:00
engine-flutter-autoroll
d954ae6850 Roll engine 289c6b1a1c27..bf377896ff0f (2 commits) (#22878)
289c6b1a1c...bf377896ff

git log 289c6b1a1c27..bf377896ff0f --no-merges --oneline
bf377896f Revert height (flutter/engine#6477)
ec103ad52 Roll src/third_party/skia a41a74ac7994..ef85d19100b1 (11 commits) (flutter/engine#6476)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-09 13:21:06 -07:00
Stanislav Baranov
570ae840f2
Remove unused deps and flags from flutter tool. (#22571) 2018-10-09 13:04:06 -07:00
engine-flutter-autoroll
e3ec1cc150 Roll engine 08af410d4ab5..289c6b1a1c27 (1 commits) (#22869)
08af410d4a...289c6b1a1c

git log 08af410d4ab5..289c6b1a1c27 --no-merges --oneline
289c6b1a1 Revert "Revert "Use single_root_scheme when compiling platform (#6402)" (#6431)" (flutter/engine#6473)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-09 12:51:04 -07:00
liyuqian
a5c161c13a
Revert "Add a profile build type to the app template" (#22872)
Reverts flutter/flutter#22837

Try to fix application_test

* Revert "Add a profile build type to the app template (#22837)"

This reverts commit 3b248fdc111d1b25014ed723ac4a0bc4225f6461.
2018-10-09 11:43:31 -07:00
Stanislav Baranov
9a22f5a117
Ensure that VM snapshot is copied from artifacts before gradle merges assets. (#22707)
Gradle plugin support for adding flutter as subproject to another Android app
2018-10-09 10:40:03 -07:00
engine-flutter-autoroll
bbc83022f8
Roll engine 69e9eb1cd1ce..08af410d4ab5 (2 commits) (#22866)
69e9eb1cd1...08af410d4a

git log 69e9eb1cd1ce..08af410d4ab5 --no-merges --oneline
08af410d4 [dart] Roll dart to a50dfd66980ed5c9aef9851fcc57557fb607769c. (flutter/engine#6472)
25b8bbfb2 Roll src/third_party/skia 817c01aecdc4..a41a74ac7994 (1 commits) (flutter/engine#6475)


The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.
2018-10-09 13:27:20 -04:00
Jason Simmons
3b248fdc11
Add a profile build type to the app template (#22837)
This is required in order to support "flutter run --profile"
2018-10-09 09:45:46 -07:00