14434 Commits

Author SHA1 Message Date
Jonah Williams
b1d17c914d
Deprecate VelocityTracker default constructor and added VelocityTracker.withKind constructor (#66043)
We've gotten feedback that the VelocityTracker change was disruptive, though it did not break any of the flutter framework or customer tests. In order to make the change non-breaking, PointerDeviceKind parameter can be made optional.

Nevertheless, this parameter should be provided so that the existing touch handlers can use more accurate gestures on mouse/stylus inputs, so we can encourage this by deprecating the default constructor and pointing users towards the VelocityTracker.withKind constructor that takes a non-optional parameter
2020-09-17 15:18:31 -07:00
Herbert Poul
af2143412f
Remove FlutterApplication from app templates. (#64742) 2020-09-17 15:17:11 -07:00
Michael Arndt
fbc34def01
Fixed typo (subetting -> subsetting) (#62502) 2020-09-17 15:17:08 -07:00
Jenn Magder
4fee00798a
Inform user how to fix permissions when the observatory URL isn't found on iOS 14 (#65977) 2020-09-17 15:16:55 -07:00
Hans Muller
b56a8c569e
Replaced reference to obsolete FlatButton button class in SnackBar (#65988) 2020-09-17 15:16:20 -07:00
Ben Konyi
fb08acf10c
Roll packages to fix #66038 (#66052)
PR #65873 enabled DDS for non-web Flutter applications. This change
surfaced a bug where DDS would not send ServiceRegistered events to VM
service clients when they subscribed to the Service stream. This would
cause tools and tests that rely on these events (e.g., hot reload in
VSCode) to fail.

Fixes #66038.
2020-09-17 12:28:49 -07:00
Jonah Williams
a3aeab0c83
Revert "TextSelectionTheme support (step 2 of 3) (#65044)" (#66051)
This reverts commit cb92ffc7fa2a3731b98bd4dc7ddfedcc1f50ea6e.
2020-09-17 11:43:28 -07:00
renyou
48ba488d33
Revert "TextField constrained layout bug (#65966)" (#66027)
This reverts commit 10a66b19d5a7b7169602af74795c80e139907266.
2020-09-17 09:37:33 -07:00
Jonah Williams
d15da04f4f
Revert "always adds alert label for alert dialog in Android (#65973)" (#66031)
This reverts commit fd0554ba89e6e2904355bc96622554b6a4ca6bf9.
2020-09-17 07:51:28 -07:00
gaaclarke
fa646339d6
Added the machine's architecture to macos doctor results. (#65978) 2020-09-16 17:47:04 -07:00
chunhtai
fd0554ba89
always adds alert label for alert dialog in Android (#65973) 2020-09-16 17:42:05 -07:00
Darren Austin
cb92ffc7fa
TextSelectionTheme support (step 2 of 3) (#65044) 2020-09-16 17:22:04 -07:00
Jonah Williams
73652a723b
[flutter_tools] automatically update to latest sw on install (#65784)
If a new service worker is installed, automatically update this behind the scenes. Immediately after a page refresh, the new worker and cache will be available, though the main.dart.js and others will be available sooner due to the cache busting URLS
2020-09-16 17:16:58 -07:00
Dan Field
2acd170814
Make parameter optional (#65444) 2020-09-16 16:47:04 -07:00
nero
021c2010df
[ReorderableListView] remove extra margin added after picking up the item (#65080) 2020-09-16 16:37:04 -07:00
Christian Mürtz
1415078828
Find text containing in tests (#65072) 2020-09-16 16:32:03 -07:00
Ben Konyi
a17b330980
Reland "Re-enable the Dart Development Service (DDS) (#64671)" (#65873)
This reverts commit 66b01c1f2905f6b4f845f7283abe3e458351fe2e.

* Add DDS ipv6 support

* Use --dds-port for DDS instead of hijacking --host-vmservice-port
2020-09-16 16:27:42 -07:00
TheBiirb
71fa330931
Added sample code to AnimatedAlign (#64698) 2020-09-16 16:27:04 -07:00
Alexandre Ardhuin
6978832293
migrate some cupertino files to nullsafety (#65880) 2020-09-16 14:27:03 -07:00
Justin McCandless
10a66b19d5
TextField constrained layout bug (#65966)
Fix a bug in the layout of some textfields with constrained height and visual density.
2020-09-16 14:19:34 -07:00
Michael R Fairhurst
7f3c9b6bda
Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
YeungKC
0220c3585c
Fix FormFieldState value not in sync with the onChanged value from TextFormField. (#65695) 2020-09-16 08:13:05 -07:00
Anthony
081b598f40
Update Navigation Rail test with regression comment and cleaner size checking (#65877) 2020-09-15 22:22:08 -07:00
Jonah Williams
13fcedc7dc
[flutter] elide semantic information from certain widget spans (#65857) 2020-09-15 22:22:04 -07:00
Tong Mu
a48e14308e
Expose GestureBinding.handlePointerEvent, replacing dispatchEvent as the preferred way to dispatch events (#64846) 2020-09-15 22:17:06 -07:00
Jonah Williams
b02cb6e4c9
[flutter_tools] make local engine integration testing easier (#65802) 2020-09-15 13:32:02 -07:00
Greg Spencer
199a7c1964
Fix the character field of the RawKeyEvent to hold correct data on non-Android platforms. (#65667)
This fixes a problem where the character field of the RawKeyEvent was not being set at all for non-Android platforms.

I also updated the key maps, and corrected a problem with the Windows key map where the backquote character wasn't correctly mapped.
2020-09-15 13:02:16 -07:00
Devon Carew
04e4b117f6
fix an issue where raw json output is written to IDE clients (#65508)
fix an issues where raw json output was written to IDE clients
2020-09-15 12:44:05 -07:00
LongCatIsLooong
8eadbb3137
Revert "Add CompositedTransformFollower.{followerAnchor, leaderAnchor} for custom anchoring (#64930)" (#65871)
This reverts commit 2fbb529d2b04ab8a3472e14c4efdee9a068ea0f4.
2020-09-15 11:28:52 -07:00
Yuqian Li
7948a7863b
Continue the clipBehavior breaking change (#61366)
This follows https://github.com/flutter/flutter/pull/59364 and cl/319911104

FittedBox is still default to hardEdge clip as new FittedBox is added to Google very quickly. Let's first roll other part of changes into Google first.
2020-09-15 11:27:07 -07:00
Balvinder Singh Gambhir
3dde3e034c
[flutter_tools] generates version.json for web using flutter tool (#64644)
Generates version.json in web directory of project. version.json can be used in the future version of package_info which will support web. version.json has the following keys : app_name, version and build_number. This file is generated every time a user runs or builds the project.

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2020-09-15 11:21:54 -07:00
Yuqian Li
e3c6979d1b
Save startup timeline (#65118)
This would help us investigate issues like
https://github.com/flutter/flutter/issues/64781
2020-09-15 11:17:30 -07:00
Jenn Magder
7e27b140f0
Avoid thinning frameworks in iOS extensions (#65198) 2020-09-15 11:10:25 -07:00
Hans Muller
eb5ab2cb5c
Buttons animate elevation changes before changing background color (#65662) 2020-09-15 10:57:04 -07:00
Hans Muller
abc9af52c8
Updated API doc references to obsolete Material button classes (#65665) 2020-09-15 10:56:42 -07:00
Jonah Williams
4188085596
[flutter_tools] handle archive exception from invalid zip signature (#65869)
Like the ProcessException thrown from zip running on a bad file, the tool should catch the ArchiveException thrown from windows implementation using package:archive.
2020-09-15 10:55:41 -07:00
Jonah Williams
b88f308af7
[flutter_tools] port deprecated settings test to flutter integration shard (#65806)
Port the deprecated settings devicelab test to tool integration shard. Tests that apps can be built using the deprecated android/settings.gradle file.

Part of #65790
2020-09-15 10:55:07 -07:00
Anthony
50f929f98e
[Material] Fix a jumping animation in the beginning of the extended Navigation Rail transition (#65659) 2020-09-15 10:52:04 -07:00
Alexandre Ardhuin
e55b7ca0a3
fix nullability of ScrollMetrics (#65861) 2020-09-15 10:10:33 -07:00
Alexandre Ardhuin
b007a81ad4
Reland "Nnbd widgets" (#65528)
* Reland "Nnbd widgets (#64672)"

This reverts commit 127e67902e8bbb0dcbfb3351b8fd00f7cbdf0178.

* remove non-nullable enforcement on AsyncSnapshot

* make data param non-nullable for AsyncSnapshot.withData

* make some Text params non-nullable
2020-09-15 16:42:00 +02:00
Pedro Massango
96ca0e272b
Add onSelectionChanged into SelectableText widget (#65320) 2020-09-15 01:02:04 -07:00
GodHyum
dfd0c6270f
Remove back button when using end drawer (#63272) 2020-09-15 00:57:03 -07:00
stuartmorgan
fa12f443df
Update Windows app template (#65696) 2020-09-14 18:07:04 -07:00
Aman Verma
9dd6738662
Update flutter_command.dart (#65765) 2020-09-14 18:02:09 -07:00
Ayush Bherwani
4e89ccfdee
[LayoutBuilder] Implements baseline logic to pass baseline to child (#65000) 2020-09-14 18:02:05 -07:00
stuartmorgan
bcd0959ac3
Sort generated plugin file content by plugin name (#65509) 2020-09-14 17:57:11 -07:00
Filip Hracek
5b76b350b6
Improve docs of ImageFiltered and BackdropFilter (#65503) 2020-09-14 17:57:08 -07:00
Jonah Williams
039f1cf853
[flutter_tools] handle terminals that do not support single char mode in Terminal.promptForCharInput (#65418)
Some terminals stdin do not support single char mode (like an emacs terminal buffer apparently). If this is the case, then the presented choice values would always have an appended newline \n which would prevent us from finding the value in the listed index (or using it as a signal for the default choice). To fix, treat '' as the default choice and always trim the choice value.

While this has seemingly always been broken, it wasn't noticeable until the multi-device selection prompt was added a few months ago.

Fixes #65267
2020-09-14 17:57:04 -07:00
Jonah Williams
6acea15f22
[flutter_tools] fix failure to create ansi spinner if download needs to be retried (#65797)
Because the Status spinner was only created on setup, the second stop would asset/crash.

Fixes #65449
2020-09-14 17:55:11 -07:00
LongCatIsLooong
2fbb529d2b
Add CompositedTransformFollower.{followerAnchor, leaderAnchor} for custom anchoring (#64930) 2020-09-14 17:52:06 -07:00