Commit Graph

33159 Commits

Author SHA1 Message Date
Andrew Kolos
fd76ef0f26 Reland "Add API for discovering assets" (#119277)
* add asset manifest bin loading and asset manifest api

* use new api for image resolution

* remove upfront smc data casting

* fix typecasting issue

* remove unused import

* fix tests

* lints

* lints

* fix import

* revert image resolution changes

* Update image_resolution_test.dart

* Update decode_and_parse_asset_manifest.dart

* make targetDevicePixelRatio optional

* Update packages/flutter/lib/src/services/asset_manifest.dart

Co-authored-by: Jonah Williams <jonahwilliams@google.com>

* Update packages/flutter/lib/src/services/asset_manifest.dart

Co-authored-by: Jonah Williams <jonahwilliams@google.com>

* fix immutable not being imported

* return List in AssetManifest methods, fix annotation import

* simplify onError callback

* make AssetManifest methods abstract instead of throwing UnimplementedError

* simplify AssetVariant.key docstring

* tweak _AssetManifestBin docstring

* make AssetManifest and AssetVariant doc strings more specific

* use List.of instead of List.from for type-safety

* adjust import

* change _AssetManifestBin comment from doc comment to normal comment

* revert to callback function for onError in loadStructuredBinaryData

* add more to the docstring of AssetManifest.listAssets and AssetVariant.key

* add tests for CachingAssetBundle caching behavior

* add simple test to ensure loadStructuredBinaryData correctly calls load

* Update asset_manifest.dart

* update docstring for AssetManifest.getAssetVariants

* rename getAssetVariants, have it include main asset

* rename isMainAsset field of AssetMetadata to main

* (slightly) shorten name of describeAssetAndVariants

* rename describeAssetVariants back to getAssetVariants

* add tests for TestAssetBundle

* nits

* fix typo in docstring

* remove no longer necessary non-null asserts

* update gallery and google_fonts versions

---------

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
2023-02-02 15:17:15 +00:00
engine-flutter-autoroll
f9daa9aac4 Roll Flutter Engine from 18118e10a0a5 to 679c4b42e222 (4 revisions) (#119783)
* edba2d078 Roll Skia from a2e706ab283d to 934ef0660509 (7 revisions) (flutter/engine#39327)

* 387a894f6 Roll Fuchsia Mac SDK from 31KOCvc_d1yPT_yes... to j5rQsxkO2VJrX55Yj... (flutter/engine#39328)

* b8b49e161 Roll buildroot to #75f75b73. (flutter/engine#39329)

* 679c4b42e Roll Dart SDK from 1c219a91e637 to 99014717b633 (1 revision) (flutter/engine#39330)
2023-02-02 03:59:24 +00:00
Jenn Magder
34730c79ca Revert "Run Mac hostonly tests on any available arch (#119762)" (#119784)
This reverts commit 475fc4ac9d.
2023-02-02 03:42:17 +00:00
Jesús S Guerrero
f767f860eb check if directory exists before listing content (#119748) 2023-02-02 03:02:11 +00:00
engine-flutter-autoroll
322d10e1b5 18118e10a Add iOS spring animation objc files (flutter/engine#38801) (#119768) 2023-02-02 02:46:36 +00:00
Jenn Magder
475fc4ac9d Run Mac hostonly tests on any available arch (#119762)
* Run Mac hostonly presubmit tests on any available arch

* Force all Mac tests to run on arm64 to validate in presubmit

* Go back to web tests on x64

* Run plugin_test_ios on x64

* Try Chrome 110 on arm

* Revert chrome bump, remove forcing arm64

* Update issue number
2023-02-02 02:34:08 +00:00
engine-flutter-autoroll
ca7b7e3b0c Roll Flutter Engine from 29d09845f21e to 97d27ff59459 (2 revisions) (#119765)
* 4b77e7793 [Impeller] improve blur performance for Android and iPad Pro. (flutter/engine#39291)

* 97d27ff59 [Impeller] let images with opacity and filters passthrough. (flutter/engine#39237)
2023-02-02 01:15:15 +00:00
engine-flutter-autoroll
0b8486dda0 29d09845f Roll Dart SDK from b47964e5d575 to 1c219a91e637 (1 revision) (flutter/engine#39324) (#119763) 2023-02-02 00:31:04 +00:00
Greg Spencer
2ecf4ae962 Update the counter app to enable Material 3 (#118835)
* Update the counter app to enable Material 3

* Fix tools tests

* Update some wording

* Revert all but useMaterial3

* Update comments
2023-02-02 00:08:11 +00:00
Ian Hickson
4c99da6c56 Avoid printing blank lines between "Another exception was thrown:" messages. (#119587) 2023-02-01 23:57:54 +00:00
engine-flutter-autoroll
8f5949eda4 Roll Flutter Engine from 2b8dd4e5c699 to a12d102773dd (2 revisions) (#119758)
* 39b86cf03 Roll Fuchsia Linux SDK from TFcelQ5SwrzkcYK2d... to QxkjqmRgowkk_n2NZ... (flutter/engine#39322)

* a12d10277 Roll Skia from 86f7b2dd2b4f to a2e706ab283d (7 revisions) (flutter/engine#39323)
2023-02-01 23:47:16 +00:00
Alex Li
4ae2d3b6df 🔥 Do not format the messages file for gen-l10n (#119596)
* 🔥 Do not format the messages file

* ✅ Add test

* ✅ Add the link to the test

* ✅ Respect the path separator from the file system

* ✅ Add the untranslated messages file existence test
2023-02-01 23:45:38 +00:00
Jason Simmons
cd118dada9 Update a test expectation that depended on an SkParagraph fix (#119756)
This assertion had been disabled because a bug fix was pending in
SkParagraph.  This PR updates it to match the new behavior.

See https://github.com/flutter/flutter/pull/119653
2023-02-01 22:55:02 +00:00
Michael Goderbauer
7a926dcb03 Deprecate MediaQuery[Data].fromWindow (#119647)
* Deprecate MediaQuery[Data].fromWindow

* ++

* dart fix
2023-02-01 22:44:00 +00:00
Michael Goderbauer
8fd5d4ebb1 Remove deprecated SystemNavigator.routeUpdated method (#119187)
* Remove deprected SystemNavigator.routeUpdated

* test fix
2023-02-01 22:36:11 +00:00
Ian Hickson
578edfc856 Catch errors thrown while handling pointer events (#119577) 2023-02-01 22:25:57 +00:00
engine-flutter-autoroll
bc8927c7d7 2b8dd4e5c Use Windows high contrast black/white theme with MaterialApp themes (flutter/engine#39206) (#119747) 2023-02-01 22:09:10 +00:00
Taha Tesser
73124dcd38 Fix ListTileThemeData.copyWith doesn't override correct properties (#119738) 2023-02-01 22:07:02 +00:00
Kevin Chisholm
484d881f27 [conductor] update console link (#118338)
* update console link

* update test to include new console link
2023-02-01 14:05:45 -06:00
engine-flutter-autoroll
1305a509d4 Roll Flutter Engine from c08a286d60e9 to ba3adb74d952 (5 revisions) (#119741)
* 30ba71efa Roll Skia from 8f33da33edcf to 4b5799677173 (1 revision) (flutter/engine#39318)

* 0de70dbe5 Use the x64 toolchain when building host artifacts on arm64 mac (flutter/engine#39279)

* 4fc0a0297 Update README.md (flutter/engine#39319)

* bae377499 Roll Skia from 4b5799677173 to 86f7b2dd2b4f (8 revisions) (flutter/engine#39320)

* ba3adb74d Roll Dart SDK from 88d1f3ffa266 to b47964e5d575 (1 revision) (flutter/engine#39321)
2023-02-01 19:46:25 +00:00
Phil Quitslund
5613ab010d remove unnecessary parens (#119736) 2023-02-01 19:19:13 +00:00
Flutter GitHub Bot
1573c12963 Marks Mac_android microbenchmarks to be unflaky (#119727) 2023-02-01 18:53:20 +00:00
Zachary Anderson
254a796bc3 Revert "Reland "Add --serve-observatory flag to run, attach, and test (#118402)" (#119529)" (#119729)
This reverts commit 7477d7ac79.
2023-02-01 09:19:48 -08:00
Eilidh Southren
d278808014 [Re-land] Exposed tooltip longPress (#118796)
* Check whether slider is mounted before interaction, no-op if unmounted (#113556)

* Check whether slider is unmounted before interaction

* Update slider.dart

* Update Slider

* Add test

* Update slider_test.dart

* Update packages/flutter/test/material/slider_test.dart

Co-authored-by: Taha Tesser <tessertaha@gmail.com>

Co-authored-by: Taha Tesser <tessertaha@gmail.com>

* exposed tooltip longPress action when available

* updated tooltip test

* updated date picker test

---------

Co-authored-by: Mingyu <lyming90@gmail.com>
Co-authored-by: Taha Tesser <tessertaha@gmail.com>
Co-authored-by: Harper Liu <harperl0818@gmail.com>
2023-02-01 15:53:41 +00:00
engine-flutter-autoroll
3af30ff591 Roll Flutter Engine from 0d87b156265c to c08a286d60e9 (3 revisions) (#119706)
* 4ea9d6cdf Roll Skia from da41cf18f651 to 8f33da33edcf (1 revision) (flutter/engine#39315)

* 0bc7bce97 Roll Dart SDK from de03e1f41b50 to 88d1f3ffa266 (1 revision) (flutter/engine#39316)

* c08a286d6 Roll Fuchsia Mac SDK from Clk4li1185E2JoIkU... to 31KOCvc_d1yPT_yes... (flutter/engine#39317)
2023-02-01 15:08:21 +00:00
engine-flutter-autoroll
b4a6e349a2 0d87b1562 Roll Dart SDK from 8b57d23a7246 to de03e1f41b50 (1 revision) (flutter/engine#39313) (#119695) 2023-02-01 11:50:26 +00:00
engine-flutter-autoroll
4167835035 5b549950f Roll Fuchsia Linux SDK from 71lEeibIyrq0V8jId... to TFcelQ5SwrzkcYK2d... (flutter/engine#39312) (#119688) 2023-02-01 08:01:24 +00:00
Callum Moffat
97d273ce1f CupertinoThemeData equality (#119480) 2023-02-01 07:13:18 +00:00
engine-flutter-autoroll
e1f0b1d146 d92e23cb5 Roll Skia from 654f4805e8b8 to da41cf18f651 (1 revision) (flutter/engine#39311) (#119686) 2023-02-01 06:47:13 +00:00
Callum Moffat
a752c2f154 Expose enableIMEPersonalizedLearning on CupertinoSearchTextField (#119439) 2023-02-01 05:41:16 +00:00
engine-flutter-autoroll
3894d24816 1703a3966 Roll Skia from c29211525dac to 654f4805e8b8 (21 revisions) (flutter/engine#39309) (#119683) 2023-02-01 05:03:13 +00:00
Alex Li
8d0af36798 🥅 Produce warning instead of error for storage base url overrides (#119595)
* 🥅 Only log warning for storage base url

* ✅ Add test

* ✅ Add the link to the test

* ✅ Remove the test

* ✅ Remove the extra import
2023-02-01 03:49:31 +00:00
engine-flutter-autoroll
6f9a896d79 Roll Flutter Engine from 521b975449ba to 38913c5484cf (2 revisions) (#119675)
* 7d063fd28 Roll Dart SDK from 9bcc1773ebf0 to 8b57d23a7246 (1 revision) (flutter/engine#39303)

* 38913c548 Add SkSurface include to every file where it's used (flutter/engine#39304)
2023-02-01 02:38:18 +00:00
Michael Goderbauer
82df23539f Undo making Flex,Row,Column const (#119669) 2023-01-31 18:03:09 -08:00
engine-flutter-autoroll
dc86565941 Roll Flutter Engine from bb7b7006f4a3 to 521b975449ba (4 revisions) (#119670)
* 6678d9cc6 clipPath to use fillType param (flutter/engine#38956)

* 5c83e6eac Remove uses of `--full-dart-sdk` from the engine_v2 builders. (flutter/engine#39297)

* d13ad269f [Shell] Update stale comments after multi-view (flutter/engine#39298)

* 521b97544 Roll Fuchsia Mac SDK from IdMSzll1VeWJMV6v8... to Clk4li1185E2JoIkU... (flutter/engine#39300)
2023-02-01 01:53:26 +00:00
Hans Muller
198a51ace9 Migrate the Material Date pickers to M3 Reprise (#119033) 2023-01-31 15:31:06 -08:00
Tae Hyung Kim
3884381415 Make gen-l10n error handling independent of logger state (#119644)
* init

* lint

* lint again
2023-01-31 15:28:27 -08:00
engine-flutter-autoroll
8f90e2a7d5 Roll Flutter Engine from 2471f430ff4b to bb7b7006f4a3 (2 revisions) (#119655)
* 32c157e34 [web] Remove unused test helper: expectPageHtml (flutter/engine#39287)

* bb7b7006f Unblock Skia roll by including SkSurface header (flutter/engine#39295)
2023-01-31 22:59:08 +00:00
Jason Simmons
fbe9ff33e6 Disable an inaccurate test assertion that will be fixed by an engine roll (#119653)
https://skia-review.googlesource.com/c/skia/+/619838 fixes a bug in
SkParagraph.  One of the selectable region tests relies on the old
behavior.

After that Skia change rolls into the framework, the update to the test
in https://github.com/flutter/flutter/pull/118902 should be landed.
2023-01-31 22:17:43 +00:00
engine-flutter-autoroll
60c1f293dc 2471f430f Update buildroot to c02da5072d1bb2. (flutter/engine#39292) (#119645) 2023-01-31 20:47:40 +00:00
Ian Hickson
ff22813b77 separatorBuilder can't return null (#119566)
...so remove the assert
2023-01-31 20:23:02 +00:00
Tanay Neotia
0e22aca785 Add support for image insertion on Android (#110052)
* Add support for image insertion on Android

* Fix checks

* Use proper Dart syntax on snippet

* Specify type annotation on list

* Fix nits, add some asserts, and improve example code

* Add missing import

* Fix nullsafety error

* Fix nullsafety error

* Remove reference to contentCommitMimeTypes in docs

* Fix nits

* Fix warnings and import

* Add test for content commit in editable_text_test.dart

* Check that URIs are equal in test

* Fix nits and rename functions / classes to be more self-explanatory

* Fix failing debugFillProperties tests

* Add empty implementation to `insertContent` in TextInputClient

* Tweak documentation slightly

* Improve docs for contentInsertionMimeTypes and fix assert

* Rework contentInsertionMimeType asserts

* Add test for onContentInserted example

* Switch implementation to a configuration class for more granularity in setting mime types

* Fix nits

* Improve docs and fix doc tests

* Fix more nits (LongCatIsLooong)

* Fix failing tests

* Make parameters (guaranteed by platform to be non-nullable) non-nullable

* Fix analysis issues
2023-01-31 19:46:18 +00:00
engine-flutter-autoroll
7bf95f41e4 1aaf3db31 Roll Dart SDK from 4fdbc7c28141 to 9bcc1773ebf0 (1 revision) (flutter/engine#39290) (#119640) 2023-01-31 19:41:25 +00:00
Bruno Leroux
e2b3d89e7a Fix CupertinoNavigationBar should create a backward compatible Annota… (#119515)
* Fix CupertinoNavigationBar should create a backward compatible AnnotatedRegion

* Remove extra space
2023-01-31 19:36:38 +00:00
Michael Goderbauer
6a5405925d Make MultiChildRenderObjectWidget const (#119195) 2023-01-31 11:13:59 -08:00
engine-flutter-autoroll
9b3b9cf089 Roll Flutter Engine from aa00da3c1612 to cd2e8885e491 (6 revisions) (#119639)
* 707458b92 Roll Dart SDK from 52dc94238144 to c64a3f0c9fea (5 revisions) (flutter/engine#39281)

* 0aec06abd Roll Dart SDK from c64a3f0c9fea to 4fdbc7c28141 (1 revision) (flutter/engine#39282)

* 95a65fcbb Roll Fuchsia Mac SDK from CNkyuFjzxZhOxLNRS... to IdMSzll1VeWJMV6v8... (flutter/engine#39283)

* 957412921 Python compatibility fix (flutter/engine#39286)

* 3147334f2 Roll Skia from 3c6eb76a683a to c29211525dac (2 revisions) (flutter/engine#39289)

* cd2e8885e Roll Fuchsia Linux SDK from cTwkXiHcuqwrumaJ5... to 71lEeibIyrq0V8jId... (flutter/engine#39284)
2023-01-31 18:41:51 +00:00
Michael Goderbauer
2fccf4d471 Remove MediaQuery from WidgetsApp (#119377)
* Remove MediaQuery from WidgetsApp

* more

* fix test

* more deprecation notices.
2023-01-31 17:55:54 +00:00
Ian Hickson
d4c74858fd Make Decoration.padding non-nullable (#119581)
The default implementation returns EdgeInsets.zero, the ShapeDecoration subclass already makes it non-nullable, and there isn't any benefit to returning null as far as I can tell.
2023-01-31 17:51:49 +00:00
Victoria Ashworth
f6b0c6ddef Use first Dart VM Service found with mDNS if there are duplicates (#119545)
* fix when duplicate mdns results are found

* put mdns auth code in it's own function and update tests

* add comments, refactor auth code parsing, other small tweaks
2023-01-31 17:48:19 +00:00
engine-flutter-autoroll
a16d82cbad aa00da3c1 Roll Skia from fc31f43cc40a to 3c6eb76a683a (1 revision) (flutter/engine#39280) (#119605) 2023-01-31 17:38:56 +00:00