Jonah Williams
e7cd5d3867
Throw FlutterError when calling setState in State constructor ( #16759 )
...
* log error when calling setState in constructor
2018-04-19 18:00:38 -07:00
Jonah Williams
034a663d33
Semantics object support for edge triggered semantics ( #16081 )
...
Semantics object support for edge triggered semantics
2018-04-19 17:59:19 -07:00
Greg Spencer
b83eb465fd
Updating the Chip demo in the Gallery to include all the new types of chips. ( #16522 )
...
This chip demo is more interactive than the last one, trying to exercise all of the types of chips for a demo that lets you select different types of "chips" (like tortilla, wood, micro, etc.), and then filter them and select an action on them.
2018-04-19 16:43:22 -07:00
xster
133c98a85b
Fine-tune iOS's scroll start feel ( #16721 )
...
* Fine-tune iOS's scroll start feel
* remove negations in doc
* Our own dart-side gesture arena also contributes to the 'jerk'. Make sure that snap is accounted as well.
* Added more code comments from review.
2018-04-19 16:17:44 -07:00
Michael Goderbauer
1ba99b94f2
SliverList works with changing children that are keyed ( #16724 )
...
Fixes #14590 .
2018-04-19 16:05:41 -07:00
Greg Spencer
0b389fc92e
Change CircleAvatar to use BoxFit.cover for images ( #16649 )
...
This is a PR giving some love to the abandoned PR #16263 by @harrisonturton
I've added a test, and formatted it to be readable.
Currently the CircleAvatar does not set a fit property on the DecorationImage it uses to paint images. This causes non-square images to not fully cover the circle, which looks pretty bad. This PR sets it to BoxFix.cover.
Fixes #13478 .
2018-04-19 15:52:40 -07:00
Jonah Williams
eb1fd78601
Roll engine to 3405e23a32af4ea3655e5d1a78955066b2573331 ( #16755 )
...
* update engine version, ignore scopesRoute and namesRoute flags until framework support is added
2018-04-19 12:35:24 -07:00
Jacob Richman
044dfdb446
Tweak theme_test so it passes when --track-widget-creation is used. ( #16717 )
2018-04-18 17:46:20 -07:00
Greg Spencer
e6b62a3a30
Adding some tests for onTapDown and onTapCancel ( #16682 )
...
Adding some tests for onTapDown and onTapCancel for the InkWell, as suggested in post-submission comments by @Hixie in #16190 .
Also, added those to the diagnostic output.
2018-04-18 11:27:55 -07:00
Jacob Richman
928c41e9a7
Support summary-details tree view ( #16638 )
...
Support summary-details tree view.
2018-04-18 09:09:34 -07:00
Chinmay Garde
e9177ba3d1
Roll engine to 0c09bf03d. ( #16668 )
...
This roll includes the following engine commits:
* flutter/engine@0c09bf03 : In the service protocol, if no view is specified to flush tasks on, pick the first one. (#5028 )
* flutter/engine@ecaefd7a : Roll src/third_party/skia/ 276886160..1cd6098d5 (50 commits) (#5026 )
* flutter/engine@e6545573 : Enable 'Speak Screen' and 'Switch Control' for iOS (#5016 )
* flutter/engine@3393c179 : Fix Android platform channels (#5025 )
* flutter/engine@1bc0e1bb : On windows, refer to Dart snapshot directly executable. (#5024 )
* flutter/engine@cf6ca32d : Revert "Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79" (#5023 )
* flutter/engine@4b45a53e : Only make ERROR and FATAL log levels visible by default. (#5022 )
* flutter/engine@98f6c2d5 : Fix shell launcher test (dart2 compliant and stop polling) (#5009 )
* flutter/engine@75851f08 : Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79 (#5020 )
* flutter/engine@9495a52d : On iOS, try to use ES3, then fall back to ES2. (#5006 )
* flutter/engine@d6d4eec2 : Fix broken Linux build (#5019 )
* flutter/engine@d15dc76e : Fix broken Chromebot build (#5018 )
* flutter/engine@c17a6290 : Breadcrumbs to the wiki (#5017 )
* flutter/engine@4eaf2c2f : Return raw (unencoded) bytes in Image.toByteData() (#5008 )
* flutter/engine@d812a617 : Roll src/third_party/skia/ e669bdfad..276886160 (9 commits) (#5014 )
* flutter/engine@62aeab72 : Call SkSurface::flush instead of getting a backend handle in vulkan_swapchain. (#5012 )
* flutter/engine@f4ebb180 : Roll src/third_party/skia/ 3462eb034..e669bdfad (54 commits) (#5007 )
* flutter/engine@0b7d6be9 : Re-land "do not pause rendering when android view loses focus" (#5004 )
* flutter/engine@91dee598 : If the rasterizer has a valid surface context, use that to create a snapshotting render target. (#4979 )
* flutter/engine@570231b7 : Specify the packages file path when running engine dart tests. (#5005 )
* flutter/engine@0b9cef5a : Minor update to README (#5003 )
* flutter/engine@c386418f : Promote line height in text style created from paragraph style (#4995 )
* flutter/engine@4e0fbb6f : If the test specifies a .dill file, dont make the engine interpret is as source. (#5002 )
* flutter/engine@58e84c8b : Re-land "Support multiple shells in a single process. (#4932 )" (#4998 )
* flutter/engine@37e5df05 : Remove only use of SkPaint::kGenA8FromLCD (#4994 )
* flutter/engine@b7358b33 : libtxt: cache font families that are remapped to the default font family (#4990 )
* flutter/engine@a530035b : libtxt: fix leaks in Skia object reference counting (#4988 )
* flutter/engine@0c74fc93 : [fuchsia] Fix use-after-free (#4987 )
* flutter/engine@b6d2dde9 : [fuchsia] Fix build (#4986 )
* flutter/engine@1dd12649 : [async] Adapt to libasync API changes. (#4980 )
2018-04-17 13:41:18 -07:00
Greg Spencer
824b806bfc
Add missing docs to public function. ( #16651 )
...
Adding missing docs to the forceRebuild function in the widget inspector.
2018-04-17 12:19:15 -07:00
Mikkel Nygaard Ravn
10cf0cedad
Revert "Roll engine to 1bc0e1bb9a8db882a21086096cc2b1e0854312b7 ( #16643 )" ( #16661 )
2018-04-17 12:40:02 +02:00
Todd Volkert
dd32d1b179
Roll engine to 1bc0e1bb9a8db882a21086096cc2b1e0854312b7 ( #16643 )
...
* Roll engine to d6d4eec24c38bb06a9b1aef4e70c321d447ba762
Contains the following engine commits:
flutter/engine@1bc0e1b On windows, refer to Dart snapshot directly executable.
flutter/engine@cf6ca32 Revert "Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79"
flutter/engine@4b45a53 Only make ERROR and FATAL log levels visible by default.
flutter/engine@98f6c2d Fix shell launcher test (dart2 compliant and stop polling)
flutter/engine@75851f0 Roll Dart to fe606f890b0a311da802c78b0af414a3c2087a79
flutter/engine@9495a52 On iOS, try to use ES3, then fall back to ES2.
flutter/engine@d6d4eec Fix broken Linux build
flutter/engine@d15dc76 Fix broken Chromebot build
flutter/engine@c17a629 Breadcrumbs to the wiki
flutter/engine@4eaf2c2 Return raw (unencoded) bytes in Image.toByteData()
flutter/engine@d812a61 Roll src/third_party/skia/ e669bdfad..276886160 (9 commits)
flutter/engine@62aeab7 Call SkSurface::flush instead of getting a backend handle in vulkan_swapchain.
flutter/engine@f4ebb18 Roll src/third_party/skia/ 3462eb034..e669bdfad (54 commits)
flutter/engine@0b7d6be Re-land "do not pause rendering when android view loses focus"
flutter/engine@91dee59 If the rasterizer has a valid surface context, use that to create a snapshotting render target.
flutter/engine@570231b Specify the packages file path when running engine dart tests.
flutter/engine@0b9cef5 Minor update to README
flutter/engine@c386418 Promote line height in text style created from paragraph style
flutter/engine@4e0fbb6 If the test specifies a .dill file, dont make the engine interpret is as source.
flutter/engine@58e84c8 Re-land "Support multiple shells in a single process.
flutter/engine@37e5df0 Remove only use of SkPaint::kGenA8FromLCD
flutter/engine@b7358b3 libtxt: cache font families that are remapped to the default font family
flutter/engine@a530035 libtxt: fix leaks in Skia object reference counting
flutter/engine@0c74fc9 [fuchsia] Fix use-after-free
flutter/engine@b6d2dde [fuchsia] Fix build
flutter/engine@1dd1264 [async] Adapt to libasync API changes.
* Run test platform finalizers in reverse order to ensure that shell is shutdown before trying to delete any temporary files or directories. This fixes "Access Denied" error on Windows (see #16657 ).
2018-04-17 11:52:00 +02:00
Michael Goderbauer
f049f436c8
Update AppBar docs to analyze sample code ( #16634 )
2018-04-16 14:17:55 -07:00
Jonah Williams
b1ecf1ea9a
Add localizations for navigation menu, popup menu, dialog, and alert ( #16633 )
...
* add localizations for navigation menu, popup menu, dialog, and alert
2018-04-16 14:09:20 -07:00
Jacob Richman
ab9ba3f909
Support exposing the InspectorService over the Flutterservice extension protocol as well as the observatory protocol. ( #15876 )
...
* Support exposing the InspectorService over the Flutter
service extension protocol as well as the observatory protocol.
We will probably remove most of the observatory protocol support once a
couple versions of the Flutter IntelliJ plugin have shipped that use the
Flutter service extension protocol. The only reason to continue supporting
the observatory protocol is it will allow using the inspector when paused
at a breakpoint.
2018-04-16 10:04:40 -07:00
Greg Spencer
6c049ec286
Rename AnimatedChildSwitcher to AnimatedSwitcher ( #16551 )
...
We don't really like the name AnimatedChildSwitcher, and we think that AnimatedSwitcher might be better (since the Child part is redundant). We also considered AnimatedChild, AnimatedTransition and AnimatedReplacement (among others).
Nothing in here besides a rename.
2018-04-15 19:24:49 -07:00
Ian Hickson
1c3f6a851f
Fix formatting of Flex error message ( #16498 )
2018-04-12 21:16:39 -07:00
Greg Spencer
c73b8a7cf6
Fix a bug in the AnimatedChildSwitcher, add builders. ( #16250 )
...
This fixes a rendering problem in the AnimatedChildSwitcher where it would add a new "previous" child each time it rebuilt, and if you did it fast enough, all of them would disappear from the page.
It also expands the API for AnimatedChildSwitcher to allow you to specify your own transition and/or layout builder for the transition.
Fixes #16226
2018-04-12 16:17:26 -07:00
Greg Spencer
7a78741920
Revert "Changing the slider thumb size." ( #16541 )
...
This reverts commit 6494ab23f6
.
2018-04-12 16:11:43 -07:00
Greg Spencer
5129d8ffa6
Rename Rail to Track, per UX guideline ( #16519 )
2018-04-12 12:32:30 -07:00
Greg Spencer
4dbbf67887
Adding ChipTheme, ChipThemeData, and some more tests. ( #16447 )
...
This converts the chips to use a ChipThemeData to get most of their customization values from (if not overridden by specific arguments to the chip constructors), and to have the base ThemeData contain one of these. It also adds the ChipTheme widget that will allow overriding the theme for a particular subtree in the widget hierarchy.
Added tests for both, and just more tests in general for the Chips.
2018-04-12 11:13:42 -07:00
Greg Spencer
c31706f996
Changing the slider thumb size. ( #16515 )
...
The spec changed the size of the slider thumb, so this just effects that change.
2018-04-12 10:22:41 -07:00
Devon Carew
071485258f
Revert "re-write flutter analyze (the single-shot and --flutter-repo) to use the analysis server ( #16281 )" ( #16482 )
...
This reverts commit 2f41ea546f
.
2018-04-11 16:49:38 -07:00
Devon Carew
2f41ea546f
re-write flutter analyze (the single-shot and --flutter-repo) to use the analysis server ( #16281 )
...
re-write flutter analyze (the single-shot and --flutter-repo) to use the analysis server
2018-04-11 14:50:36 -07:00
Michael Goderbauer
49a3adc1ac
AutomaticKeepAlive now keeps alive ( #16445 )
...
Fixes https://github.com/flutter/flutter/issues/16346 .
See https://github.com/flutter/flutter/issues/16346#issuecomment-380255095 for detailed explanation of what was going wrong before this fix.
2018-04-11 10:31:47 -07:00
Alexander Aprelev
a2951a9a1f
Roll engine to ed303c628fe4b322529f8cf01ecb38135a2bab73 (dart roll)
...
Changes since last roll:
```
ed303c628 Roll dart sdk again. Previous roll required 23ae4fa098 revert. (#4966 )
8cd272733 Revert "Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (#4960 )" (#4965 )
9199b40f2 Revert "Support multiple shells in a single process. (#4932 )" (#4964 )
6baff4c82 Support multiple shells in a single process. (#4932 )
31c5bb427 Roll dart to 7764e6962e22afcf4b58c4e3cef3147330f3c884. (#4960 )
c8e4c6984 Avoid copying the contents of large platform message responses (#4947 )
5ff527295 Update to use new vulkan GrBackendRenderTarget ctor. (#4962 )
0c8993a1a Update to use new vulkan GrBackendRenderTarget ctor (part 2) (#4963 )
132ebdda8 Revert "Roll src/third_party/skia/ 9874bf1bc..52e16d984 (135 commits) (#4958 )" (#4961 )
11882ab9e Roll src/third_party/skia/ 9874bf1bc..52e16d984 (135 commits) (#4958 )
```
Add consts
2018-04-10 20:17:06 -07:00
Ian Hickson
497b9deb2a
Some cleanup of Chips that I found while learning the code. ( #16249 )
2018-04-10 16:43:57 -07:00
Todd Volkert
f408bb06f9
Update dependencies ( #16442 )
2018-04-10 14:27:53 -07:00
Jason Simmons
c3ce892c9e
Add support for locale-specific text styles ( #16430 )
...
See https://github.com/flutter/flutter/issues/12630 and
https://github.com/flutter/flutter/issues/16408
2018-04-10 13:41:51 -07:00
Greg Spencer
c43134a71c
Fixes a problem with the height of the chip label ( #16420 )
...
There was a bug in the size calculation for the height of the chip label, where it would force the label to be larger than it wanted to be, causing text to not be vertically centered.
2018-04-10 12:02:52 -07:00
Jonah Williams
fbfaffe1db
Do not add run spacing if there are no run metrics ( #16290 )
...
* do not add run spacing if there are no run metrics
2018-04-10 09:38:00 -07:00
Alexandre Ardhuin
498f1fcc23
fix missing function call ( #16382 )
2018-04-10 09:17:40 +02:00
Alexander Markov
3499fa23e3
Roll engine to eea6197a24256fe588e18127f56c733bc42b6a8d (before Dart roll)
...
* Update text_style_test
2018-04-09 18:52:23 -07:00
Roberto Scaramuzzi
cdc68a73e6
Update text_form_field.dart ( #15843 )
...
* Update text_form_field.dart
* Update text_form_field_test.dart
* Update text_form_field_test.dart
* Update text_form_field_test.dart
2018-04-09 13:43:43 -07:00
Sam Rawlins
2329cb7ec8
Bump mockito to 3.0.0-alpha+3 ( #16306 )
...
* Bump mockito to 3.0.0-alpha+3
* Type annotation
2018-04-09 12:43:31 -07:00
Jacob Richman
660408edd6
Switch to the new Matrix4.tryInvert method to avoid throwing and catching ( #15771 ) exceptions while performing hit testing.
2018-04-09 10:32:22 -07:00
Jonah Williams
037a4aef16
Un(less)conditionally schedule first callback frame when creating ticker ( #16261 )
...
* always schedule first frame when creating ticker, regardless of phase or frame
2018-04-06 13:09:07 -07:00
Todd Volkert
06ed3622a3
Roll engine to d2b69fec751d6d11f62019c863b2cba4ce575bfe ( #16307 )
2018-04-06 10:09:16 -07:00
David Shuckerow
cb3df70da6
Spelling ( #16210 )
2018-04-06 10:00:06 -07:00
Greg Spencer
6055c56e23
Rename chip's border attribute to shape for consistency. ( #16276 )
...
This renames the chip's border attribute to 'shape' so that it is consistent with the other places where we supply a ShapeBorder.
This is a breaking change, but a very small one: the border attribute was introduced only a few months ago, and is not widely used.
2018-04-05 16:16:00 -07:00
Hans Muller
af9e15f361
Added BeveledRectangleBorder ShapeBorder ( #16279 )
2018-04-05 16:02:47 -07:00
Hans Muller
c7d982eba3
Updated appearance of filled TextFields - added UnderlineInputBorder.borderRadius ( #16272 )
2018-04-05 12:08:11 -07:00
Yegor
eb69a20c0a
fix date/time picker borders ( #16240 )
2018-04-04 16:39:25 -07:00
Jonah Williams
5125c43247
re-enable verify only test failure and update deps. ( #16090 )
...
* re-enable verify-only failing test for out of sync deps and update deps to latest version
2018-04-04 10:52:46 -07:00
Jonah Williams
ae96e81ce4
export RawKeyEvent from RawKeyboardListener ( #15956 )
...
Adds an export of the RawKeyEvent type from the RawKeyboardListener library, since it is required by the API
2018-04-04 10:06:10 -07:00
Adam Barth
3ff25c7792
Add _PointerState#toString ( #16197 )
...
This method makes it easier to debug issues involving broken pointer
states.
2018-04-04 09:03:56 -07:00
Greg Spencer
7a6a65a597
Adding all the different types of chips, along with their complex behaviors ( #16039 )
...
This implements various different chip types: There are now the InputChip, ChoiceChip, FilterChip, ActionChip, and the original vanilla Chip, all of which have different uses. They can be customized in a number of ways. See their docs for more information.
Also fixes #16083
2018-04-03 19:31:08 -07:00
David Shuckerow
68c77e37e2
Add a bottom app bar to the floating action button motion demo. ( #16196 )
2018-04-03 19:30:14 -07:00