Commit Graph

18811 Commits

Author SHA1 Message Date
Jenn Magder
09987dc00a Migrate create command to null safety (#104484) 2022-05-24 18:48:10 -07:00
Yang Chao
b5adbee145 Fix an issue that clearing the image cache may cause resource leaks (#104527) 2022-05-24 16:58:09 -07:00
Jenn Magder
a56c5e51ae Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00
Bruno Leroux
1e0a1a2661 Add an example and update GestureDetector documentation (#102360) 2022-05-24 16:38:09 -07:00
Jesús S Guerrero
336aa267f9 [flutter_tools] General info project validator (#103653) 2022-05-24 16:28:10 -07:00
Dacian Florea
680bc17cde [web] [fix] Cache resource data only if the fetching succeed (#103816) 2022-05-24 16:23:06 -07:00
Konstantin Scheglov
c27e88a5b1 Fix existing DUPLICATE_IMPORT diagnostics. (#104533) 2022-05-24 14:18:31 -07:00
chunhtai
efb9368573 Supports global selection for all devices (#95226)
* Support global selection

* addressing comments

* add new test

* Addressing review comments

* update

* addressing comments

* addressing comments

* Addressing comments

* fix build
2022-05-24 13:53:55 -07:00
chunhtai
bd7d34f09d Reland "Fix Backbutton is not displayed when there is a endDrawer (#1… (#104110)
* Reland "Fix Backbutton is not displayed when there is a endDrawer (#102093)"

This reverts commit a4a8e73bce.

* add todos
2022-05-24 13:39:46 -07:00
Loïc Sharma
c29a7a2d22 Ignore replacement characters from vswhere.exe output (#104284)
Flutter uses `vswhere.exe` to find Visual Studio installations and determine if they satisfy Flutter's requirements. However, `vswhere.exe`'s JSON output is known to contain bad UTF-8. This change ignores bad UTF-8 as long as they affect JSON properties that are either unused, or, used only for display purposes by Flutter.

Fixes: https://github.com/flutter/flutter/issues/102451
2022-05-24 13:30:37 -07:00
LongCatIsLooong
12147ad718 Remove RenderObject.rotate (#103092) 2022-05-24 11:37:35 -07:00
Xilai Zhang
de230d393c Revert "Add ability for ModalRoutes to ignore pointers during transitions and do so on Cupertino routes (#95757)" (#104520)
This reverts commit 4c0b0be2da.
2022-05-24 11:10:13 -07:00
Taha Tesser
5739bf4fab RefreshIndicator: Add notificationPredicate example (#103894) 2022-05-24 04:58:06 -07:00
Taha Tesser
a12a69a47c Fix BottomAppBar dip without FAB (#104490) 2022-05-24 03:13:08 -07:00
Chris Bracken
f9765c136f [tool] Add tests for FakeProcessManager (#104456)
Adds a bit more clarifying documentation to the implementation of the
outputFollowsExit case, and adds tests that verify the behaviour of
stderr, stdout of processes launched via FakeProcessManager.

Specifically:
* Verifies that stderr, stdout are not emitted immediately after process
  exit if outputFollowsExit is true. They must be emitted at least one
  turn through the event loop later.
* Verifies that ProcessResult.stderr, stdout have the type documented
  according to the encoding passted to Process.run/runSync:
  * List<int> if null is passed as the encoding.
  * String (in the default system encoding) if no encoding is specified.
  * String (in the specified encoding) if an encoding is specified.

This is additional testing relating to refactoring landed in:
https://github.com/flutter/flutter/pull/103947

Issue: https://github.com/flutter/flutter/issues/102451
2022-05-23 22:57:34 -07:00
Darren Austin
eadd07b0b9 Fix ColorScheme.copyWith for surfaceTint (#104435) 2022-05-23 20:24:18 -07:00
Jenn Magder
c5d046c00c continue->next in Ruby script (#104296) 2022-05-23 18:43:05 -07:00
hellohuanlin
f85209272d Add Focus support for iOS platform view (#103019) 2022-05-23 17:58:13 -07:00
gaaclarke
914556ea64 Started sharing SemanticsProperties between the Widget and the RenderObject (#104281) 2022-05-23 16:18:08 -07:00
gaaclarke
41c6063356 Sped up Element._sort (#104103) 2022-05-23 11:53:07 -07:00
Tong Mu
baac9a8aef [Keyboard, Windows] Fix that IME events are still dispatched to FocusNode.onKey (#104244) 2022-05-20 22:08:08 -07:00
Chris Sells
4c66e304d1 fixes 103234 to enable debugging Flutter apps on VR headset (#104135) 2022-05-20 21:58:09 -07:00
Pierre-Louis
1e1f4bcfb5 Mention that NavigationBar is a new widget (#104264) 2022-05-21 01:25:17 +02:00
Dan Field
1c852cedaa Do not assert callbacks contains key if disposed (#104292) 2022-05-20 14:51:14 -07:00
Darren Austin
b08b88ce6c Add support for Material 3 medium and large top app bars. (#103962)
* Add support for M3 AppBar 'Medium' and 'Large' types.

* Updates from review feedback.

* Updated from review feedback.
2022-05-20 14:02:25 -07:00
Casey Hillers
da105b2b24 Revert "[framework] inline AbstractNode into RenderObject" (#104257) 2022-05-20 11:43:11 -07:00
Loïc Sharma
52e19ef7ec Refactor vswhere.exe integration (#104133)
`VisualStudio` calls `vswhere.exe` to find Visual Studio installations and determine if they satisfy Flutter's requirements. Previously, `VisualStudio` stored the JSON output from `vswhere.exe` as `Map`s, resulting in duplicated logic to read the JSON output (once to validate values, second to expose values). Also, `VisualStudio` stored two copies of the JSON output (the latest valid installation as well as the latest VS installation).

This change simplifies `VisualStudio` by introducing a new `VswhereDetails`. This type contains the logic to read `vswhere.exe`'s JSON output, and, understand whether an installation is usable by Flutter. In the future, this `VswhereDetails` type will be used to make Flutter doctor resilient to bad UTF-8 output from `vswhere.exe`.

Part of https://github.com/flutter/flutter/issues/102451.
2022-05-20 10:12:25 -07:00
Zachary Anderson
ab7f6e5cfe Pass --verbosity=error to the Dart front-end (#104020) 2022-05-20 09:10:31 -07:00
Bruno Leroux
afdfc56bbb Fix tooltips don't dismiss when using TooltipTriggerMode.tap (#103960) 2022-05-20 04:58:06 -07:00
Bruno Leroux
5c6f65ee99 Add Tooltip onTriggered callback (#104237)
Co-authored-by: Bruno Leroux <bruno.leroux@gmail.com>
2022-05-20 11:23:32 +02:00
Taha Tesser
43c81ff1f7 CupertinoColors: Add diagrams (#103280) 2022-05-20 01:13:09 -07:00
Renzo Olivares
b876f78ea5 Desktop platforms should not collapse selection on copy (#104209)
* Add tests

* fix tests

* updates

Co-authored-by: Renzo Olivares <roliv@google.com>
2022-05-19 20:52:50 -07:00
Tong Mu
23bc3d64eb [Mouse] Remove all pointers at the end of tests (#102694) 2022-05-19 17:48:10 -07:00
Will Lockwood
4c0b0be2da Add ability for ModalRoutes to ignore pointers during transitions and do so on Cupertino routes (#95757) 2022-05-19 15:33:12 -07:00
Emmanuel Garcia
0052566c7e Show custom error message when Kotlin or Gradle bump is required (#102421) 2022-05-19 14:38:13 -07:00
Kate Lovett
e8f8a82a7b Revert "Fix DropdownButton menu clip" (#104203) 2022-05-19 14:33:12 -07:00
Jonah Williams
24bd28f696 [framework] inline AbstractNode into RenderObject (#103832) 2022-05-19 14:28:09 -07:00
Christopher Fujino
586b15cbcb [flutter_tools] Upgrade only from flutter update-packages (#103924) 2022-05-19 13:33:11 -07:00
Greg Spencer
f6c3ee310f Add ShortcutsRegistry (#103456)
This adds a ShortcutsRegistry for ShortcutActivator to Intent mappings that can be modified from its descendants.

This is so that descendants can make shortcuts dynamically available to a larger portion of the app than just their descendants. This is a precursor needed by the new MenuBar, for instance, so that the menu bar itself can be placed where it likes, but the shortcuts it defines can be in effect for most, if not all, of the UI surface in the app. For example, the "Ctrl-Q" quit binding would need to work even if the focused widget wasn't a child of the MenuBar.

This just provides the shortcut to intent mapping, the actions activated by the intent are described in the context where they make sense. For example, defining a "Ctrl-C" shortcut mapped to a "CopyIntent" should perform different functions if it happens while a TextField has focus vs when a drawing has focus, so those different areas would need to define different actions mapped to "CopyIntent". A hypothetical "QuitIntent" would probably be active for the entire app, so would be mapped in an Actions widget near the top of the hierarchy.
2022-05-19 13:17:42 -07:00
Liam Appelbe
d2ba83d421 Use libraryFilters flag to speed up coverage collection (#104122)
* Use libraryFilters flag to speed up coverage collection

* Allow libraryNames to be null

* Unconditionally enable the reportLines flag

* Fix analysis errors
2022-05-19 12:19:52 -07:00
Darren Austin
17e2fce1cf Add const MaterialStatePropertyAll class. (#104127) 2022-05-19 09:35:33 -07:00
David Miguel Lozano
b1f10cebbe Define ColorSwatch.lerp() function (#103701) 2022-05-19 09:28:08 -07:00
Bernardo Ferrari
440e0e2c4e Add StrokeAlign to Border (#102112) 2022-05-19 09:18:10 -07:00
Pierre-Louis
9a35b569b9 Use correct time separator for Indonesian locale (#104070)
* Update material_id.arb

* Update README.md

* Update generated_material_localizations.dart

* Update README.md

* remove trailing whitespace
2022-05-19 11:24:19 +02:00
Taha Tesser
3f5bd7d89e Add Material 3 AppBar example (#102823) 2022-05-19 00:13:09 -07:00
xubaolin
93211a48d7 [Scrollbar]Skip the ScrollPosition check if the bar was unmounted (#103948) 2022-05-18 20:12:10 -07:00
Gary Qian
350a7618eb Remove extraneous org.jetbrains.kotlin:kotlin-stdlib-jdk7 gradle dep (#104028) 2022-05-18 17:52:13 -07:00
Dan Field
d50b5a0749 Stop recommending "shrinkWrap" (#104008) 2022-05-18 17:47:15 -07:00
Bruno Leroux
4b67827169 Add Tooltip default vertical padding (#103395) 2022-05-18 17:42:15 -07:00
Justin McCandless
384800b5e7 Fix right clicking a field to focus (#103228) 2022-05-18 17:37:11 -07:00