diff --git a/flutter/dev/integration_tests/android_engine_test/README.md b/flutter/dev/integration_tests/android_engine_test/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f2c8b09cd68e35c46b144dede971b983b42ba19c --- /dev/null +++ b/flutter/dev/integration_tests/android_engine_test/README.md @@ -0,0 +1,147 @@ +# android_engine_test + +This directory contains a sample app and tests that demonstrate how to use the +(experimental) _native_ Flutter Driver API to drive Flutter apps that run on +Android devices or emulators, interact with and capture screenshots of the app, +and compare the screenshots against golden images. + +> [!CAUTION] +> This test suite is a _very_ end-to-end suite that is testing a combination of +> the graphics backend, the Android embedder, the Flutter framework, and Flutter +> tools, and only useful when the documentation and naming stays up to date and +> is clearly actionable. +> +> Please take extra care when updating the test suite to also update the REAMDE. + +## How it runs on CI (LUCI) + +See [`dev/bots/suite_runners/run_android_engine_tests.dart`](../../bots/suite_runners/run_android_engine_tests.dart), but tl;dr: + +```sh +# TIP: If golden-files do not exist locally, this command will fail locally. +SHARD=android_engine_vulkan_tests bin/cache/dart-sdk/bin/dart dev/bots/test.dart +SHARD=android_engine_opengles_tests bin/cache/dart-sdk/bin/dart dev/bots/test.dart +``` + +## Running the apps and tests + +Each `lib/{prefix}_main.dart` file is a standalone Flutter app that you can run +on an Android device or emulator. + +- [`flutter_rendered_blue_rectangle`](#flutter_rendered_blue_rectangle) +- [`external_texture/surface_producer_smiley_face`](#external_texturesurface_producer_smiley_face) +- [`external_texture/surface_texture_smiley_face`](#external_texturesurface_texture_smiley_face) +- [`platform_view/hybrid_composition_platform_view`](#platform_viewhybrid_composition_platform_view) +- [`platform_view/texture_layer_hybrid_composition_platform_view`](#platform_viewtexture_layer_hybrid_composition_platform_view) +- [`platform_view/virtual_display_platform_view`](#platform_viewvirtual_display_platform_view) +- [`platform_view_tap_color_change`](#platform_view_tap_color_change) + +### `flutter_rendered_blue_rectangle` + +This app displays a full screen blue rectangle. It mostly serves as a test that +Flutter can run at all on the target device, and that the Flutter (native) +driver can take a screenshot and compare it to a golden image. If this app or +test fails, it's likely none of the other apps or tests will work either. + +```sh +# Run the app +$ flutter run lib/flutter_rendered_blue_rectangle_main.dart + +# Run the test +$ flutter drive lib/flutter_rendered_blue_rectangle_main.dart +``` + +### `external_texture/surface_producer_smiley_face` + +This app displays a full screen rectangular deformed smiley face with a yellow +background. It tests the [`SurfaceProducer`](https://api.flutter.dev/javadoc/io/flutter/view/TextureRegistry.SurfaceProducer.html) API end-to-end, including historic regression cases around +backgrounding the app, trimming memory, and resuming the app. + +```sh +# Run the app +$ flutter run lib/external_texture/surface_producer_smiley_face_main.dart + +# Run the test +$ flutter drive lib/external_texture/surface_producer_smiley_face_main.dart +``` + +### `external_texture/surface_texture_smiley_face` + +This app displays a full screen rectangular deformed smiley face with a yellow +background. It tests the [`SurfaceTexture`](https://api.flutter.dev/javadoc/io/flutter/view/TextureRegistry.SurfaceTexture.html) API end-to-end. + +```sh +# Run the app +$ flutter run lib/external_texture/surface_texture_smiley_face_main.dart + +# Run the test +$ flutter drive lib/external_texture/surface_texture_smiley_face_main.dart +``` + +### `platform_view/hybrid_composition_platform_view` + +This app displays a blue orange gradient, the app is backgrounded, and then +resumed. It tests the [Hybrid Composition](../../../docs/platforms/android/Android-Platform-Views.md#hybrid-composition) implementation. + +```sh +# Run the app +$ flutter run lib/platform_view/hybrid_composition_platform_view_main.dart + +# Run the test +$ flutter drive lib/platform_view/hybrid_composition_platform_view_main.dart +``` + +### `platform_view/texture_layer_hybrid_composition_platform_view` + +This app displays a blue orange gradient, the app is backgrounded, and then +resumed. It tests the [Texture Layer Hybrid Composition](../../../docs/platforms/android/Android-Platform-Views.md#texture-layer-hybrid-composition) implementation. + +```sh +# Run the app +$ flutter run lib/platform_view/texture_layer_hybrid_composition_platform_view_main.dart + +# Run the test +$ flutter drive lib/platform_view/texture_layer_hybrid_composition_platform_view_main.dart +``` + +### `platform_view/virtual_display_platform_view` + +This app displays a blue orange gradient, the app is backgrounded, and then +resumed. It tests the [Virtual Display](../../../docs/platforms/android/Android-Platform-Views.md#virtual-display) implementation. + +```sh +# Run the app +$ flutter run lib/platform_view/virtual_display_platform_view_main.dart + +# Run the test +$ flutter drive lib/platform_view/virtual_display_platform_view_main.dart +``` + +### `platform_view_tap_color_change` + +This app displays a blue rectangle, using platform views, which upon +being tapped (natively, not by Flutter), changes from blue to red. + +```sh +# Run the app +$ flutter run lib/platform_view_tap_color_change_main.dart + +# Run the test +$ flutter drive lib/platform_view_tap_color_change_main_test.dart +``` + +## Deflaking + +Use `tool/deflake.dart ` to, in 1-command: + +- Build an APK. +- Establish a baseline set of golden-files locally. +- Run N tests (by default, 10) in the same state, asserting the same output. + +For example: + +```sh +dart tool/deflake.dart lib/flutter_rendered_blue_rectangle_main.dart +``` + +For more options, see `dart tool/deflake.dart --help`. diff --git a/flutter/dev/integration_tests/android_engine_test/pubspec.yaml b/flutter/dev/integration_tests/android_engine_test/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..53ffa4e5d3b5c8ea4fd211d1b1daca7a605f0b19 --- /dev/null +++ b/flutter/dev/integration_tests/android_engine_test/pubspec.yaml @@ -0,0 +1,73 @@ +name: android_engine_test +publish_to: none + +environment: + sdk: ^3.7.0-0 + +dependencies: + android_driver_extensions: + path: ../../tools/android_driver_extensions + flutter: + sdk: flutter + flutter_driver: + sdk: flutter + + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + process: 5.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.25.15 + + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: f229 diff --git a/flutter/dev/integration_tests/android_semantics_testing/pubspec.yaml b/flutter/dev/integration_tests/android_semantics_testing/pubspec.yaml index fce975e17e0aadbd858e95a632f9e64776956860..85a68a59ccd1978b53991a2c2eedd711f0bfe1e2 100644 --- a/flutter/dev/integration_tests/android_semantics_testing/pubspec.yaml +++ b/flutter/dev/integration_tests/android_semantics_testing/pubspec.yaml @@ -1,7 +1,7 @@ name: android_semantics_testing description: Integration testing library for Android semantics environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -10,63 +10,64 @@ dependencies: sdk: flutter flutter_test: sdk: flutter - pub_semver: 2.1.4 - test: 1.24.9 + pub_semver: 2.2.0 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: f8d9 +# PUBSPEC CHECKSUM: 61a9 diff --git a/flutter/dev/integration_tests/android_views/pubspec.yaml b/flutter/dev/integration_tests/android_views/pubspec.yaml index 6ad66e727922ba89230fabd2a49726de3109167c..4f679742ab1e599dee477d280f971d287443d488 100644 --- a/flutter/dev/integration_tests/android_views/pubspec.yaml +++ b/flutter/dev/integration_tests/android_views/pubspec.yaml @@ -4,95 +4,95 @@ publish_to: none description: An integration test for embedded platform views version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter flutter_driver: sdk: flutter - path_provider: 2.1.1 + path_provider: 2.1.5 # This made non-transitive to allow exact pinning # https://github.com/flutter/flutter/issues/116376 - path_provider_android: 2.2.1 - collection: 1.18.0 + path_provider_android: 2.2.16 + collection: 1.19.1 assets_for_android_views: git: url: https://github.com/flutter/goldens.git ref: 64d0f6051b9b7b9933d3d16194170a38f544634a path: dev/integration_tests/assets_for_android_views - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - ffi: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_foundation: 2.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + ffi: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_foundation: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" path_provider_linux: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_platform_interface: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_windows: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_platform_interface: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_windows: 2.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" plugin_platform_interface: 2.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - win32: 5.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - xdg_directories: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + xdg_directories: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: 8a19 +# PUBSPEC CHECKSUM: 9423 diff --git a/flutter/dev/integration_tests/channels/pubspec.yaml b/flutter/dev/integration_tests/channels/pubspec.yaml index 398c05a9f318b52fecf5c19e212ff04bacbe1d19..f5685a9c1a5147737bc71b5d8fd25a9c57e1a313 100644 --- a/flutter/dev/integration_tests/channels/pubspec.yaml +++ b/flutter/dev/integration_tests/channels/pubspec.yaml @@ -2,16 +2,16 @@ name: channels description: Integration test for platform channels. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: @@ -22,27 +22,27 @@ dev_dependencies: flutter_test: sdk: flutter - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: 4059 +# PUBSPEC CHECKSUM: c058 diff --git a/flutter/dev/integration_tests/deferred_components_test/pubspec.yaml b/flutter/dev/integration_tests/deferred_components_test/pubspec.yaml index b2096a4ac60977af57cb53d977eee3c133d24331..c216dc2c47c98fb057e4ef0768329354d690ca29 100644 --- a/flutter/dev/integration_tests/deferred_components_test/pubspec.yaml +++ b/flutter/dev/integration_tests/deferred_components_test/pubspec.yaml @@ -3,7 +3,7 @@ description: Integration test application for basic deferred components function publish_to: 'none' version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -11,67 +11,68 @@ dependencies: flutter_driver: sdk: flutter - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true @@ -83,4 +84,4 @@ flutter: assets: - customassets/flutter_logo.png -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/dev/integration_tests/deferred_components_test/run_release_test.sh b/flutter/dev/integration_tests/deferred_components_test/run_release_test.sh index 2f2c7241f02911bc23cd1fcd100fc1a6d4197c0b..46bf30db917175cf348ca7781e760fb852af7664 100644 --- a/flutter/dev/integration_tests/deferred_components_test/run_release_test.sh +++ b/flutter/dev/integration_tests/deferred_components_test/run_release_test.sh @@ -9,7 +9,7 @@ # # In CI, this script currently depends on a modified version of bundletool because # ddmlib which bundletool depends on does not yet support detecting QEMU emulator device -# density system properties. See https://android.googlesource.com/platform/tools/base/+/refs/heads/master/ddmlib/src/main/java/com/android/ddmlib/IDevice.java#46 +# density system properties. See https://android.googlesource.com/platform/tools/base/+/refs/heads/main/ddmlib/src/main/java/com/android/ddmlib/IDevice.java#46 # # The modified bundletool which waives the density requirement is at: # https://chrome-infra-packages.appspot.com/p/flutter/android/bundletool/+/vFt1jA0cUeZLmUCVR5NG2JVB-SgJ18GH_pVYKMOlfUIC diff --git a/flutter/dev/integration_tests/display_cutout_rotation/README.md b/flutter/dev/integration_tests/display_cutout_rotation/README.md new file mode 100644 index 0000000000000000000000000000000000000000..934210c0764f65c7d761a73dab2e9e3382fc6962 --- /dev/null +++ b/flutter/dev/integration_tests/display_cutout_rotation/README.md @@ -0,0 +1,5 @@ +# display_cutout_rotation + +To run test locally use `flutter test integration_test/display_cutout_test.dart` from this folder. + +OR from `flutter/dev/devicelab` run `dart bin/test_runner.dart test -t android_display_cutout`. diff --git a/flutter/dev/integration_tests/display_cutout_rotation/analysis_options.yaml b/flutter/dev/integration_tests/display_cutout_rotation/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c4a47172d2b5142c1516e4225fcc1fbcd2e523dd --- /dev/null +++ b/flutter/dev/integration_tests/display_cutout_rotation/analysis_options.yaml @@ -0,0 +1,5 @@ +include: ../../analysis_options.yaml + +analyzer: + exclude: + - build/** diff --git a/flutter/dev/integration_tests/display_cutout_rotation/pubspec.yaml b/flutter/dev/integration_tests/display_cutout_rotation/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..55dd2929ff732965bd909998f50592e327da22c7 --- /dev/null +++ b/flutter/dev/integration_tests/display_cutout_rotation/pubspec.yaml @@ -0,0 +1,123 @@ +name: display_cutout_rotation +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ^3.7.0-0 + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: 1.0.8 + + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_driver: + sdk: flutter + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: 5.0.0 + integration_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. + + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + lints: 5.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/to/asset-from-package + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/to/font-from-package + +# PUBSPEC CHECKSUM: 695e diff --git a/flutter/dev/integration_tests/external_textures/pubspec.yaml b/flutter/dev/integration_tests/external_textures/pubspec.yaml index a99cc71d814eb8fe41b4f741785f3192ca90fae0..2ce35fecfefe431906fa508ec0eb06fbb163af2f 100644 --- a/flutter/dev/integration_tests/external_textures/pubspec.yaml +++ b/flutter/dev/integration_tests/external_textures/pubspec.yaml @@ -2,67 +2,68 @@ name: external_textures description: A test of Flutter integrating external textures. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter flutter_driver: sdk: flutter - test: 1.25.7 + test: 1.25.15 - _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.15.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: e59a +# PUBSPEC CHECKSUM: 9c1e diff --git a/flutter/dev/integration_tests/flavors/pubspec.yaml b/flutter/dev/integration_tests/flavors/pubspec.yaml index cc0f2389e16437b828a73de4543d972d7ab10107..33213b285b7dfae2c4265329ed6f8d25ac272057 100644 --- a/flutter/dev/integration_tests/flavors/pubspec.yaml +++ b/flutter/dev/integration_tests/flavors/pubspec.yaml @@ -2,7 +2,7 @@ name: flavors description: Integration test for build flavors. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -11,68 +11,69 @@ dependencies: sdk: flutter integration_test: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: sdk: flutter - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true @@ -85,4 +86,4 @@ flutter: flavors: - free -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/dev/integration_tests/flutter_gallery/README.md b/flutter/dev/integration_tests/flutter_gallery/README.md index e62265dacdb9b12376061c3354974a3d370c697e..57c6603fd8965db9d2dfcaa0fd27ec008780da1c 100644 --- a/flutter/dev/integration_tests/flutter_gallery/README.md +++ b/flutter/dev/integration_tests/flutter_gallery/README.md @@ -9,3 +9,7 @@ https://github.com/flutter/gallery Android launcher icons were generated using Android Asset Studio: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=1&foreground.space.pad=0.1&foreColor=607d8b%2C0&crop=0&backgroundShape=square&backColor=fafafa%2C100&effects=none + +## Video demo + +The video demo is not supported on iOS simulators. diff --git a/flutter/dev/integration_tests/flutter_gallery/android/build.gradle b/flutter/dev/integration_tests/flutter_gallery/android/build.gradle index a2a88669529869e1fd2debbc4b67f4f7415b93ae..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/build.gradle +++ b/flutter/dev/integration_tests/flutter_gallery/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.7.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile b/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile index eb605802d98f5f505e9112f6f1d9c85b5269553d..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile +++ b/flutter/dev/integration_tests/flutter_gallery/android/buildscript-gradle.lockfile @@ -1,64 +1,68 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.databinding:databinding-common:7.3.0=classpath -androidx.databinding:databinding-compiler-common:7.3.0=classpath -com.android.databinding:baseLibrary:7.3.0=classpath -com.android.tools.analytics-library:crash:30.3.0=classpath -com.android.tools.analytics-library:protos:30.3.0=classpath -com.android.tools.analytics-library:shared:30.3.0=classpath -com.android.tools.analytics-library:tracker:30.3.0=classpath +androidx.databinding:databinding-common:8.7.0=classpath +androidx.databinding:databinding-compiler-common:8.7.0=classpath +com.android.application:com.android.application.gradle.plugin:8.7.0=classpath +com.android.databinding:baseLibrary:8.7.0=classpath +com.android.tools.analytics-library:crash:31.7.0=classpath +com.android.tools.analytics-library:protos:31.7.0=classpath +com.android.tools.analytics-library:shared:31.7.0=classpath +com.android.tools.analytics-library:tracker:31.7.0=classpath com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath -com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath -com.android.tools.build:aaptcompiler:7.3.0=classpath -com.android.tools.build:apksig:7.3.0=classpath -com.android.tools.build:apkzlib:7.3.0=classpath -com.android.tools.build:builder-model:7.3.0=classpath -com.android.tools.build:builder-test-api:7.3.0=classpath -com.android.tools.build:builder:7.3.0=classpath -com.android.tools.build:bundletool:1.9.0=classpath -com.android.tools.build:gradle-api:7.3.0=classpath -com.android.tools.build:gradle:7.3.0=classpath -com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:aapt2-proto:8.7.0-12006047=classpath +com.android.tools.build:aaptcompiler:8.7.0=classpath +com.android.tools.build:apksig:8.7.0=classpath +com.android.tools.build:apkzlib:8.7.0=classpath +com.android.tools.build:builder-model:8.7.0=classpath +com.android.tools.build:builder-test-api:8.7.0=classpath +com.android.tools.build:builder:8.7.0=classpath +com.android.tools.build:bundletool:1.17.1=classpath +com.android.tools.build:gradle-api:8.7.0=classpath +com.android.tools.build:gradle-settings-api:8.7.0=classpath +com.android.tools.build:gradle:8.7.0=classpath +com.android.tools.build:manifest-merger:31.7.0=classpath com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath -com.android.tools.ddms:ddmlib:30.3.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath -com.android.tools.lint:lint-model:30.3.0=classpath -com.android.tools.lint:lint-typedef-remover:30.3.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath -com.android.tools:annotations:30.3.0=classpath -com.android.tools:common:30.3.0=classpath -com.android.tools:dvlib:30.3.0=classpath -com.android.tools:repository:30.3.0=classpath -com.android.tools:sdk-common:30.3.0=classpath -com.android.tools:sdklib:30.3.0=classpath -com.android:signflinger:7.3.0=classpath -com.android:zipflinger:7.3.0=classpath -com.github.gundy:semver4j:0.16.4=classpath +com.android.tools.ddms:ddmlib:31.7.0=classpath +com.android.tools.layoutlib:layoutlib-api:31.7.0=classpath +com.android.tools.lint:lint-model:31.7.0=classpath +com.android.tools.lint:lint-typedef-remover:31.7.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=classpath +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=classpath +com.android.tools:annotations:31.7.0=classpath +com.android.tools:common:31.7.0=classpath +com.android.tools:dvlib:31.7.0=classpath +com.android.tools:repository:31.7.0=classpath +com.android.tools:sdk-common:31.7.0=classpath +com.android.tools:sdklib:31.7.0=classpath +com.android:signflinger:8.7.0=classpath +com.android:zipflinger:8.7.0=classpath com.google.android:annotations:4.1.1.4=classpath -com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.api.grpc:proto-google-common-protos:2.17.0=classpath com.google.auto.value:auto-value-annotations:1.6.2=classpath com.google.code.findbugs:jsr305:3.0.2=classpath -com.google.code.gson:gson:2.8.9=classpath -com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.code.gson:gson:2.10.1=classpath +com.google.crypto.tink:tink:1.7.0=classpath com.google.dagger:dagger:2.28.3=classpath -com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.errorprone:error_prone_annotations:2.18.0=classpath com.google.flatbuffers:flatbuffers-java:1.12.0=classpath com.google.guava:failureaccess:1.0.1=classpath -com.google.guava:guava:30.1-jre=classpath +com.google.guava:guava:32.0.1-jre=classpath com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath -com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.17.2=classpath -com.google.protobuf:protobuf-java:3.17.2=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple:1.1=classpath +com.google.protobuf:protobuf-java-util:3.22.3=classpath +com.google.protobuf:protobuf-java:3.22.3=classpath +com.google.testing.platform:core-proto:0.0.9-alpha02=classpath com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath com.squareup:javapoet:1.10.0=classpath com.squareup:javawriter:2.5.0=classpath @@ -66,28 +70,27 @@ com.sun.activation:javax.activation:1.2.0=classpath com.sun.istack:istack-commons-runtime:3.0.8=classpath com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath commons-codec:commons-codec:1.11=classpath -commons-io:commons-io:2.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.39.0=classpath -io.grpc:grpc-context:1.39.0=classpath -io.grpc:grpc-core:1.39.0=classpath -io.grpc:grpc-netty:1.39.0=classpath -io.grpc:grpc-protobuf-lite:1.39.0=classpath -io.grpc:grpc-protobuf:1.39.0=classpath -io.grpc:grpc-stub:1.39.0=classpath -io.netty:netty-buffer:4.1.52.Final=classpath -io.netty:netty-codec-http2:4.1.52.Final=classpath -io.netty:netty-codec-http:4.1.52.Final=classpath -io.netty:netty-codec-socks:4.1.52.Final=classpath -io.netty:netty-codec:4.1.52.Final=classpath -io.netty:netty-common:4.1.52.Final=classpath -io.netty:netty-handler-proxy:4.1.52.Final=classpath -io.netty:netty-handler:4.1.52.Final=classpath -io.netty:netty-resolver:4.1.52.Final=classpath -io.netty:netty-transport:4.1.52.Final=classpath -io.perfmark:perfmark-api:0.23.0=classpath -it.unimi.dsi:fastutil:8.4.0=classpath +io.grpc:grpc-api:1.57.0=classpath +io.grpc:grpc-context:1.57.0=classpath +io.grpc:grpc-core:1.57.0=classpath +io.grpc:grpc-netty:1.57.0=classpath +io.grpc:grpc-protobuf-lite:1.57.0=classpath +io.grpc:grpc-protobuf:1.57.0=classpath +io.grpc:grpc-stub:1.57.0=classpath +io.netty:netty-buffer:4.1.93.Final=classpath +io.netty:netty-codec-http2:4.1.93.Final=classpath +io.netty:netty-codec-http:4.1.93.Final=classpath +io.netty:netty-codec-socks:4.1.93.Final=classpath +io.netty:netty-codec:4.1.93.Final=classpath +io.netty:netty-common:4.1.93.Final=classpath +io.netty:netty-handler-proxy:4.1.93.Final=classpath +io.netty:netty-handler:4.1.93.Final=classpath +io.netty:netty-resolver:4.1.93.Final=classpath +io.netty:netty-transport-native-unix-common:4.1.93.Final=classpath +io.netty:netty-transport:4.1.93.Final=classpath +io.perfmark:perfmark-api:0.26.0=classpath jakarta.activation:jakarta.activation-api:1.2.1=classpath jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath javax.annotation:javax.annotation-api:1.3.2=classpath @@ -96,57 +99,60 @@ net.java.dev.jna:jna-platform:5.6.0=classpath net.java.dev.jna:jna:5.6.0=classpath net.sf.jopt-simple:jopt-simple:4.9=classpath net.sf.kxml:kxml2:2.3.0=classpath -org.apache.commons:commons-compress:1.20=classpath -org.apache.httpcomponents:httpclient:4.5.13=classpath -org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.commons:commons-compress:1.21=classpath +org.apache.httpcomponents:httpclient:4.5.14=classpath +org.apache.httpcomponents:httpcore:4.4.16=classpath org.apache.httpcomponents:httpmime:4.5.6=classpath -org.bitbucket.b_c:jose4j:0.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.67=classpath -org.bouncycastle:bcprov-jdk15on:1.67=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.bitbucket.b_c:jose4j:0.9.5=classpath +org.bouncycastle:bcpkix-jdk18on:1.77=classpath +org.bouncycastle:bcprov-jdk18on:1.77=classpath +org.bouncycastle:bcutil-jdk18on:1.77=classpath +org.checkerframework:checker-qual:3.33.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.23=classpath org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath org.glassfish.jaxb:txw2:2.3.2=classpath org.jdom:jdom2:2.0.6=classpath org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath -org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath -org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath -org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.8.10=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.8.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.8.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.8.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.8.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.8.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.8.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.8.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.8.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.9.20=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.8.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.8.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.8.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.8.10=classpath org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.json:json:20180813=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.1=classpath +org.ow2.asm:asm-analysis:9.6=classpath +org.ow2.asm:asm-commons:9.6=classpath +org.ow2.asm:asm-tree:9.6=classpath +org.ow2.asm:asm-util:9.6=classpath +org.ow2.asm:asm:9.6=classpath org.slf4j:slf4j-api:1.7.30=classpath org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties b/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties +++ b/flutter/dev/integration_tests/flutter_gallery/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile b/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile index 7ba3afe22c3f01a57470cb0c0e08e9b9f610b817..f8c481c6cd6a9616b4600fd0d11d3c628552226b 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile +++ b/flutter/dev/integration_tests/flutter_gallery/android/project-app.lockfile @@ -1,95 +1,155 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath -androidx.annotation:annotation-experimental:1.3.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath -androidx.arch.core:core-runtime:2.1.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.browser:browser:1.5.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.concurrent:concurrent-futures:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.10.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.9.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.9.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.browser:browser:1.8.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath +androidx.collection:collection:1.2.0=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.exifinterface:exifinterface:1.3.6=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath -androidx.lifecycle:lifecycle-common:2.3.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath -androidx.lifecycle:lifecycle-runtime:2.3.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.multidex:multidex-instrumentation:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath -androidx.multidex:multidex:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-common:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-container:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-database:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-datasource:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-decoder:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-dash:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-hls:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-rtsp:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-smoothstreaming:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-extractor:1.4.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-common:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-common:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-core:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-core:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-dash:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-dash:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-database:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-datasource:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-decoder:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-extractor:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-extractor:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-hls:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-hls:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-smoothstreaming:2.14.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.android.exoplayer:exoplayer-smoothstreaming:2.18.7=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.errorprone:error_prone_annotations:2.3.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.errorprone:error_prone_annotations:2.7.1=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.guava:failureaccess:1.0.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.guava:guava:28.1-android=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.guava:guava:31.0.1-android=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.google.j2objc:j2objc-annotations:1.3=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.errorprone:error_prone_annotations:2.23.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:failureaccess:1.0.2=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:guava:33.0.0-android=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher +com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath junit:junit:4.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.checkerframework:checker-compat-qual:2.5.5=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -org.checkerframework:checker-qual:3.12.0=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -org.codehaus.mojo:animal-sniffer-annotations:1.18=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath -org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt -org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt -org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt -org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt -org.jetbrains.kotlin:kotlin-bom:1.8.22=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.ow2.asm:asm-analysis:9.1=androidJacocoAnt -org.ow2.asm:asm-commons:9.1=androidJacocoAnt -org.ow2.asm:asm-tree:9.1=androidJacocoAnt -org.ow2.asm:asm:9.1=androidJacocoAnt +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.checkerframework:checker-qual:3.41.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.24=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.9.24=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling diff --git a/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile b/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile index 1326b8773fd7688b1d35cfd54326255d95fcba2d..c8c0c921411115b556c22ff6b628ec27fcafdaae 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile +++ b/flutter/dev/integration_tests/flutter_gallery/android/project-integration_test.lockfile @@ -1,47 +1,125 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath @@ -49,16 +127,25 @@ org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.1.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.1.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt org.ow2.asm:asm-commons:9.1=androidJacocoAnt diff --git a/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile b/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile index 560088aae8203647a832b9ab7196d0436a9d49d7..2db9276cffe254dde20fce1f4ba644840c05f3e5 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile +++ b/flutter/dev/integration_tests/flutter_gallery/android/project-url_launcher_android.lockfile @@ -1,68 +1,149 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-jvm:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.browser:browser:1.5.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.9.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.9.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.browser:browser:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.concurrent:concurrent-futures:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.10.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.interpolator:interpolator:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.3.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.3.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test.espresso:espresso-idling-resource:3.5.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath androidx.test:annotation:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test:core:1.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test:monitor:1.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.almworks.sqlite4java:sqlite4java:1.0.392=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.auto.value:auto-value-annotations:1.10.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.errorprone:error_prone_annotations:2.18.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.guava:failureaccess:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.guava:guava:31.1-jre=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.guava:listenablefuture:1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.j2objc:j2objc-annotations:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.ibm.icu:icu4j:72.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -javax.annotation:javax.annotation-api:1.3.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib org.bouncycastle:bcprov-jdk18on:1.72=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.checkerframework:checker-qual:3.12.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.conscrypt:conscrypt-openjdk-uber:2.5.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt -org.jetbrains.kotlin:kotlin-bom:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.24=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.9.24=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.mockito:mockito-core:5.1.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile b/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile index 32dfc5d669ff6736335315945cb2ec33ff796613..35af484eef75caea4f91500106a65b1b5966dbc2 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile +++ b/flutter/dev/integration_tests/flutter_gallery/android/project-video_player_android.lockfile @@ -1,47 +1,197 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.activity:activity:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.annotation:annotation:1.3.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.arch.core:core-runtime:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.collection:collection:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.concurrent:concurrent-futures:1.0.0=debugRuntimeClasspath,profileRuntimeClasspath,releaseRuntimeClasspath -androidx.core:core:1.7.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.customview:customview:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.3.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.3.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.loader:loader:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.versionedparcelable:versionedparcelable:1.1.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.viewpager:viewpager:1.0.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-common:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-core:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-dash:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-database:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-datasource:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-decoder:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-extractor:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-hls:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.android.exoplayer:exoplayer-smoothstreaming:2.18.7=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.guava:failureaccess:1.0.1=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.guava:guava:31.0.1-android=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -org.jetbrains:annotations:13.0=debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath -empty=androidApis,debugAnnotationProcessorClasspath,lintPublish,profileAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.collection:collection:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.exifinterface:exifinterface:1.3.6=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-common:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-container:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-database:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-datasource:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-decoder:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-dash:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-hls:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-rtsp:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer-smoothstreaming:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-exoplayer:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-extractor:1.4.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.media3:media3-test-utils:1.4.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.espresso:espresso-idling-resource:3.5.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.test.ext:junit:1.1.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.ext:truth:1.5.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test.services:storage:1.4.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:annotation:1.0.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:core:1.5.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.test:monitor:1.6.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugAndroidTestRuntimeClasspath,debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.almworks.sqlite4java:sqlite4java:1.0.392=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.auto.value:auto-value-annotations:1.10.4=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.errorprone:error_prone_annotations:2.24.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:failureaccess:1.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:guava:33.0.0-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,profileUnitTestCompileClasspath,releaseUnitTestCompileClasspath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher +com.google.truth.extensions:truth-java8-extension:1.4.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.truth:truth:1.4.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.ibm.icu:icu4j:72.1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.squareup.okhttp3:mockwebserver:4.12.0=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup.okhttp3:okhttp:4.12.0=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup.okio:okio-jvm:3.6.0=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.squareup.okio:okio:3.6.0=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +javax.inject:javax.inject:1=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +junit:junit:4.13.2=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib +org.bouncycastle:bcprov-jdk18on:1.72=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.checkerframework:checker-qual:3.42.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.conscrypt:conscrypt-openjdk-uber:2.5.2=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.hamcrest:hamcrest-core:1.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt +org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.10=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.10=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.10=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.10=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-analysis:9.1=androidJacocoAnt +org.ow2.asm:asm-analysis:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-commons:9.1=androidJacocoAnt +org.ow2.asm:asm-commons:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-tree:9.1=androidJacocoAnt +org.ow2.asm:asm-tree:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm-util:9.5=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.ow2.asm:asm:9.1=androidJacocoAnt +org.ow2.asm:asm:9.6=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:annotations:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:junit:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime-dist-compat:1.0.1=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:nativeruntime:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:pluginapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:plugins-maven-dependency-resolver:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:resources:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:robolectric:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:sandbox:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadowapi:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:shadows-framework:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils-reflector:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.robolectric:utils:4.10.3=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath diff --git a/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle b/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle index eec0e0e6a7f3fa2c1780635724cf551743d3f9dc..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle +++ b/flutter/dev/integration_tests/flutter_gallery/android/settings.gradle @@ -18,11 +18,24 @@ pluginManagement { includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") - plugins { - id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + repositories { + google() + mavenCentral() + gradlePluginPortal() } } -include ":app" +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.7.0" apply false + id "org.jetbrains.kotlin.android" version "1.8.10" apply false +} + +include ":app" diff --git a/flutter/dev/integration_tests/flutter_gallery/macos/Podfile b/flutter/dev/integration_tests/flutter_gallery/macos/Podfile index 47c1b18fedaef2a21670842b6929ad36ba0431dc..dd603efb9895adcc5558b1102860e12008f3d006 100644 --- a/flutter/dev/integration_tests/flutter_gallery/macos/Podfile +++ b/flutter/dev/integration_tests/flutter_gallery/macos/Podfile @@ -28,7 +28,6 @@ flutter_macos_podfile_setup target 'Runner' do use_frameworks! - use_modular_headers! flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) diff --git a/flutter/dev/integration_tests/flutter_gallery/pubspec.yaml b/flutter/dev/integration_tests/flutter_gallery/pubspec.yaml index 2c1396f1671adee0df819d09ff46809ea7793b20..c4d001960895b40a48b09d74d86a4da18a7652cb 100644 --- a/flutter/dev/integration_tests/flutter_gallery/pubspec.yaml +++ b/flutter/dev/integration_tests/flutter_gallery/pubspec.yaml @@ -1,19 +1,17 @@ name: flutter_gallery environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - collection: 1.18.0 - device_info: 2.0.3 - intl: 0.18.1 - connectivity: 3.0.6 - string_scanner: 1.2.0 - url_launcher: 6.2.2 - cupertino_icons: 1.0.6 - video_player: 2.8.2 + collection: 1.19.1 + intl: 0.20.2 + string_scanner: 1.4.1 + url_launcher: 6.3.1 + cupertino_icons: 1.0.8 + video_player: 2.9.5 scoped_model: 2.0.0 shrine_images: 2.0.2 @@ -21,33 +19,29 @@ dependencies: # and dev/benchmarks/macrobenchmarks/pubspec.yaml flutter_gallery_assets: 1.0.2 - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - connectivity_for_web: 0.4.0+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - connectivity_macos: 0.2.1+2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - connectivity_platform_interface: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - csslib: 1.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - device_info_platform_interface: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - html: 0.15.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + csslib: 1.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + html: 0.15.5+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" plugin_platform_interface: 2.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_android: 6.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_ios: 6.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_linux: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_macos: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_platform_interface: 2.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_web: 2.2.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_windows: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_android: 6.3.15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_ios: 6.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_linux: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_macos: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_platform_interface: 2.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_web: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_windows: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - video_player_android: 2.4.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - video_player_avfoundation: 2.5.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - video_player_platform_interface: 6.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - video_player_web: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + video_player_android: 2.8.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + video_player_avfoundation: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + video_player_platform_interface: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + video_player_web: 2.3.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: @@ -56,56 +50,57 @@ dev_dependencies: sdk: flutter flutter_goldens: sdk: flutter - test: 1.24.9 + test: 1.25.15 integration_test: sdk: flutter - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - process: 5.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + process: 5.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true @@ -277,4 +272,4 @@ flutter: - asset: packages/flutter_gallery_assets/fonts/merriweather/Merriweather-Regular.ttf - asset: packages/flutter_gallery_assets/fonts/merriweather/Merriweather-Light.ttf -# PUBSPEC CHECKSUM: 4188 +# PUBSPEC CHECKSUM: 054a diff --git a/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart index c1d229acb40c53e7a8eddbf15391903f6d0f5181..4ad79aa4338d8a4ef96ab2c6605a7f38768f2114 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/accessibility_test.dart @@ -9,16 +9,13 @@ import 'package:flutter_gallery/gallery/themes.dart'; import 'package:flutter_test/flutter_test.dart'; class TestMaterialApp extends StatelessWidget { - const TestMaterialApp({ super.key, required this.home }); + const TestMaterialApp({super.key, required this.home}); final Widget home; @override Widget build(BuildContext context) { - return MaterialApp( - theme: ThemeData(useMaterial3: false), - home: home, - ); + return MaterialApp(theme: ThemeData(useMaterial3: false), home: home); } } @@ -299,12 +296,17 @@ void main() { handle.dispose(); }); - testWidgets('data_table_demo', (WidgetTester tester) async { - final SemanticsHandle handle = tester.ensureSemantics(); - await tester.pumpWidget(const TestMaterialApp(home: DataTableDemo())); - await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); - handle.dispose(); - }, skip: true); // DataTables are not accessible, https://github.com/flutter/flutter/issues/10830 + testWidgets( + 'data_table_demo', + (WidgetTester tester) async { + final SemanticsHandle handle = tester.ensureSemantics(); + await tester.pumpWidget(const TestMaterialApp(home: DataTableDemo())); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + handle.dispose(); + }, + // DataTables are not accessible, https://github.com/flutter/flutter/issues/10830 + skip: true, + ); testWidgets('date_and_time_picker_demo', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); @@ -490,15 +492,9 @@ void main() { }); group('All material demos meet text contrast guidelines', () { - final List themes = [ - kLightGalleryTheme, - kDarkGalleryTheme, - ]; + final List themes = [kLightGalleryTheme, kDarkGalleryTheme]; - const List themeNames = [ - 'kLightGalleryTheme', - 'kDarkGalleryTheme', - ]; + const List themeNames = ['kLightGalleryTheme', 'kDarkGalleryTheme']; for (int themeIndex = 0; themeIndex < themes.length; themeIndex += 1) { final ThemeData theme = themes[themeIndex]; @@ -625,9 +621,7 @@ void main() { testWidgets('modal_bottom_sheet_demo $themeName', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); - await tester.pumpWidget( - MaterialApp(theme: theme, home: const ModalBottomSheetDemo()) - ); + await tester.pumpWidget(MaterialApp(theme: theme, home: const ModalBottomSheetDemo())); await expectLater(tester, meetsGuideline(textContrastGuideline)); handle.dispose(); }); @@ -648,9 +642,7 @@ void main() { testWidgets('persistent_bottom_sheet_demo $themeName', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); - await tester.pumpWidget( - MaterialApp(theme: theme, home: const PersistentBottomSheetDemo()) - ); + await tester.pumpWidget(MaterialApp(theme: theme, home: const PersistentBottomSheetDemo())); await expectLater(tester, meetsGuideline(textContrastGuideline)); handle.dispose(); }); @@ -699,9 +691,7 @@ void main() { testWidgets('snack_bar_demo $themeName', (WidgetTester tester) async { final SemanticsHandle handle = tester.ensureSemantics(); - await tester.pumpWidget( - MaterialApp(theme: theme, home: const SnackBarDemo()) - ); + await tester.pumpWidget(MaterialApp(theme: theme, home: const SnackBarDemo())); await expectLater(tester, meetsGuideline(textContrastGuideline)); handle.dispose(); }); diff --git a/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart index 2341180fb64c3b23b687b1c9a9f1fac5a8f70af2..16404cb24784bcff3e47403947684de456318364 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/drawer_test.dart @@ -55,10 +55,14 @@ void main() { // Switch back to system theme setting: first menu button, choose 'System Default' await tester.tap(find.byIcon(Icons.arrow_drop_down).first); await tester.pumpAndSettle(); - await tester.tap(find.descendant( - of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), - matching: find.text('System Default') - )); + await tester.tap( + find.descendant( + of: find.byWidgetPredicate( + (Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem', + ), + matching: find.text('System Default'), + ), + ); await tester.pumpAndSettle(); app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; expect(app.themeMode, ThemeMode.system); @@ -76,10 +80,15 @@ void main() { await tester.tap(find.byIcon(Icons.arrow_drop_down).at(2)); await tester.pumpAndSettle(); - await tester.tap(find.descendant( - of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), - matching: find.text('System Default') - )); + await tester.tap( + find.descendant( + of: find.byWidgetPredicate( + (Widget widget) => + widget.runtimeType.toString() == 'PopupMenuItem', + ), + matching: find.text('System Default'), + ), + ); await tester.pumpAndSettle(); app = find.byType(MaterialApp).evaluate().first.widget as MaterialApp; expect(app.theme!.visualDensity, equals(VisualDensity.standard)); @@ -110,10 +119,15 @@ void main() { // Set font scale back to the default. await tester.tap(find.byIcon(Icons.arrow_drop_down).at(1)); await tester.pumpAndSettle(); - await tester.tap(find.descendant( - of: find.byWidgetPredicate((Widget widget) => widget.runtimeType.toString() == 'PopupMenuItem'), - matching: find.text('System Default') - )); + await tester.tap( + find.descendant( + of: find.byWidgetPredicate( + (Widget widget) => + widget.runtimeType.toString() == 'PopupMenuItem', + ), + matching: find.text('System Default'), + ), + ); await tester.pumpAndSettle(); textSize = tester.getSize(find.text('Text size')); expect(textSize, origTextSize); diff --git a/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart index 94276fb38e19a503546b370747e8f5060053bda1..0dc463d57a3cf4bc9b2ab8c9e4e4ba2dc772abd5 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/example_code_parser_test.dart @@ -44,7 +44,7 @@ class TestAssetBundle extends AssetBundle { } @override - Future loadString(String key, { bool cache = true }) async { + Future loadString(String key, {bool cache = true}) async { if (key == 'lib/gallery/example_code.dart') { return testCodeFile; } diff --git a/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart b/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart index cbc7fe9a60ef87989a62a44ba06cfcecc84d56ab..6bc16d90ce06107a659fd2d5cc53f73e8b569c2d 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/live_smoketest.dart @@ -50,7 +50,8 @@ Future main() async { try { // Verify that _kUnsynchronizedDemos and _kSkippedDemos identify // demos that actually exist. - final List allDemoTitles = kAllGalleryDemos.map((GalleryDemo demo) => demo.title).toList(); + final List allDemoTitles = + kAllGalleryDemos.map((GalleryDemo demo) => demo.title).toList(); if (!Set.from(allDemoTitles).containsAll(_kUnsynchronizedDemoTitles)) { fail('Unrecognized demo titles in _kUnsynchronizedDemosTitles: $_kUnsynchronizedDemoTitles'); } @@ -92,15 +93,10 @@ Future main() async { } final Finder backFinder = find.byElementPredicate( - (Element element) { - final Widget widget = element.widget; - if (widget is Tooltip) { - return widget.message == 'Back'; - } - if (widget is CupertinoNavigationBarBackButton) { - return true; - } - return false; + (Element element) => switch (element.widget) { + Tooltip(message: 'Back') => true, + CupertinoNavigationBarBackButton() => true, + _ => false, }, description: 'Material or Cupertino back button', ); @@ -139,16 +135,27 @@ class _LiveWidgetController extends LiveWidgetController { Future scrollIntoView(FinderBase finder, {required double alignment}) async { final FinderBase target = await _waitForElement(finder); - await Scrollable.ensureVisible(target.evaluate().single, duration: const Duration(milliseconds: 100), alignment: alignment); + await Scrollable.ensureVisible( + target.evaluate().single, + duration: const Duration(milliseconds: 100), + alignment: alignment, + ); } @override - Future tap(FinderBase finder, { + Future tap( + FinderBase finder, { int? pointer, int buttons = kPrimaryButton, bool warnIfMissed = true, PointerDeviceKind kind = PointerDeviceKind.touch, }) async { - await super.tap(await _waitForElement(finder), pointer: pointer, buttons: buttons, warnIfMissed: warnIfMissed, kind: kind); + await super.tap( + await _waitForElement(finder), + pointer: pointer, + buttons: buttons, + warnIfMissed: warnIfMissed, + kind: kind, + ); } } diff --git a/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart index de3886e4d1f6f0e13929911ea640cd619d61c4d8..d3c1351b9211da8f344eb7a6ef628ffd02d1a3db 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/pesto_test.dart @@ -16,13 +16,7 @@ void main() { testWidgets('Pesto appbar heroics', (WidgetTester tester) async { await tester.pumpWidget( // The bug only manifests itself when the screen's orientation is portrait - const Center( - child: SizedBox( - width: 450.0, - height: 800.0, - child: GalleryApp(testMode: true), - ), - ) + const Center(child: SizedBox(width: 450.0, height: 800.0, child: GalleryApp(testMode: true))), ); await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 await tester.pump(); // triggers a frame diff --git a/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart index 2744ea2e65600143240a0ba0063c9e5eec527d81..712dba2fc4a060ce902a74f57808e782701cae6e 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/simple_smoke_test.dart @@ -12,49 +12,58 @@ void main() { binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; } - testWidgets('Flutter Gallery app simple smoke test', (WidgetTester tester) async { - await tester.pumpWidget( - const GalleryApp(testMode: true) // builds the app and schedules a frame but doesn't trigger one - ); - await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 - await tester.pump(); // triggers a frame - - final Finder showOptionsPageButton = find.byTooltip('Toggle options page'); - - // Show the options page - await tester.tap(showOptionsPageButton); - await tester.pumpAndSettle(); - - // Switch to the dark theme: the first switch control - await tester.tap(find.byType(Switch).first); - await tester.pumpAndSettle(); - - // Close the options page - expect(showOptionsPageButton, findsOneWidget); - await tester.tap(showOptionsPageButton); - await tester.pumpAndSettle(); - - // Show the studies (aka "vignettes", aka "demos") - await tester.tap(find.text('Studies')); - await tester.pumpAndSettle(); - - // Show the Contact profile demo and scroll it upwards - await tester.tap(find.text('Contact profile')); - await tester.pumpAndSettle(); - - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); - await tester.pump(const Duration(milliseconds: 200)); - - await tester.pump(const Duration(hours: 100)); // for testing - }, variant: const TargetPlatformVariant({ TargetPlatform.android, TargetPlatform.macOS })); + testWidgets( + 'Flutter Gallery app simple smoke test', + (WidgetTester tester) async { + await tester.pumpWidget( + const GalleryApp( + testMode: true, + ), // builds the app and schedules a frame but doesn't trigger one + ); + await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 + await tester.pump(); // triggers a frame + + final Finder showOptionsPageButton = find.byTooltip('Toggle options page'); + + // Show the options page + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); + + // Switch to the dark theme: the first switch control + await tester.tap(find.byType(Switch).first); + await tester.pumpAndSettle(); + + // Close the options page + expect(showOptionsPageButton, findsOneWidget); + await tester.tap(showOptionsPageButton); + await tester.pumpAndSettle(); + + // Show the studies (aka "vignettes", aka "demos") + await tester.tap(find.text('Studies')); + await tester.pumpAndSettle(); + + // Show the Contact profile demo and scroll it upwards + await tester.tap(find.text('Contact profile')); + await tester.pumpAndSettle(); + + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + await tester.drag(find.text('(650) 555-1234'), const Offset(0.0, -50.0)); + await tester.pump(const Duration(milliseconds: 200)); + + await tester.pump(const Duration(hours: 100)); // for testing + }, + variant: const TargetPlatformVariant({ + TargetPlatform.android, + TargetPlatform.macOS, + }), + ); } diff --git a/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart index cd49804f804b9e4a66455a1640f258ed99ccf224..dc7b102a06815a2f51846f762813d7bf7790a236 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/smoke_test.dart @@ -26,14 +26,22 @@ int toStringErrors = 0; // If you change navigation behavior in the Gallery or in the framework, make // sure all 3 are covered. -void reportToStringError(String name, String route, int lineNumber, List lines, String message) { +void reportToStringError( + String name, + String route, + int lineNumber, + List lines, + String message, +) { // If you're on line 12, then it has index 11. // If you want 1 line before and 1 line after, then you want lines with index 10, 11, and 12. // That's (lineNumber-1)-margin .. (lineNumber-1)+margin, or lineNumber-(margin+1) .. lineNumber+(margin-1) const int margin = 5; final int firstLine = math.max(0, lineNumber - margin); final int lastLine = math.min(lines.length, lineNumber + margin); - print('$name : $route : line $lineNumber of ${lines.length} : $message; nearby lines were:\n ${lines.sublist(firstLine, lastLine).join("\n ")}'); + print( + '$name : $route : line $lineNumber of ${lines.length} : $message; nearby lines were:\n ${lines.sublist(firstLine, lastLine).join("\n ")}', + ); toStringErrors += 1; } @@ -48,7 +56,13 @@ void verifyToStringOutput(String name, String route, String testString) { if (line == '' && lineNumber != lines.length) { reportToStringError(name, route, lineNumber, lines, 'found empty line'); } else if (line.contains('Instance of ')) { - reportToStringError(name, route, lineNumber, lines, 'found a class that does not have its own toString'); + reportToStringError( + name, + route, + lineNumber, + lines, + 'found a class that does not have its own toString', + ); } else if (line.endsWith(' ')) { reportToStringError(name, route, lineNumber, lines, 'found a line with trailing whitespace'); } @@ -78,10 +92,26 @@ Future smokeDemo(WidgetTester tester, GalleryDemo demo) async { // Verify that the dumps are pretty. final String routeName = demo.routeName; - verifyToStringOutput('debugDumpApp', routeName, WidgetsBinding.instance.rootElement!.toStringDeep()); - verifyToStringOutput('debugDumpRenderTree', routeName, RendererBinding.instance.renderViews.single.toStringDeep()); - verifyToStringOutput('debugDumpLayerTree', routeName, RendererBinding.instance.renderViews.single.debugLayer?.toStringDeep() ?? ''); - verifyToStringOutput('debugDumpFocusTree', routeName, WidgetsBinding.instance.focusManager.toStringDeep()); + verifyToStringOutput( + 'debugDumpApp', + routeName, + WidgetsBinding.instance.rootElement!.toStringDeep(), + ); + verifyToStringOutput( + 'debugDumpRenderTree', + routeName, + RendererBinding.instance.renderViews.single.toStringDeep(), + ); + verifyToStringOutput( + 'debugDumpLayerTree', + routeName, + RendererBinding.instance.renderViews.single.debugLayer?.toStringDeep() ?? '', + ); + verifyToStringOutput( + 'debugDumpFocusTree', + routeName, + WidgetsBinding.instance.focusManager.toStringDeep(), + ); // Scroll the demo around a bit more. await tester.flingFrom(const Offset(400.0, 300.0), const Offset(0.0, 400.0), 1000.0); @@ -120,7 +150,10 @@ Future smokeOptionsPage(WidgetTester tester) async { // Switch back to system theme setting: first menu button, choose 'System Default' await tester.tap(find.byIcon(Icons.arrow_drop_down).first); await tester.pumpAndSettle(); - await tester.tap(find.text('System Default').at(1), warnIfMissed: false); // https://github.com/flutter/flutter/issues/82908 + await tester.tap( + find.text('System Default').at(1), + warnIfMissed: false, + ); // https://github.com/flutter/flutter/issues/82908 await tester.pumpAndSettle(); // Switch text direction: first switch @@ -166,7 +199,9 @@ Future smokeGallery(WidgetTester tester) async { for (final GalleryDemo demo in kGalleryCategoryToDemos[category]!) { await Scrollable.ensureVisible(tester.element(find.text(demo.title))); await smokeDemo(tester, demo); - tester.binding.debugAssertNoTransientCallbacks('A transient callback was still active after running $demo'); + tester.binding.debugAssertNoTransientCallbacks( + 'A transient callback was still active after running $demo', + ); } await tester.pageBack(); await tester.pumpAndSettle(); @@ -181,7 +216,10 @@ void main() { testWidgets( 'Flutter Gallery app smoke test', smokeGallery, - variant: const TargetPlatformVariant({ TargetPlatform.android, TargetPlatform.macOS }), + variant: const TargetPlatformVariant({ + TargetPlatform.android, + TargetPlatform.macOS, + }), ); testWidgets('Flutter Gallery app smoke test with semantics', (WidgetTester tester) async { diff --git a/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart b/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart index 82b8002d7dc274d9b3a3d53f8ca7b7de5ba6e90c..690290892cd602034b4affb8fb75d1caa9d10497 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test/update_test.dart @@ -19,10 +19,7 @@ void main() { // Regression test for https://github.com/flutter/flutter/pull/5168 testWidgets('update dialog', (WidgetTester tester) async { await tester.pumpWidget( - const GalleryApp( - testMode: true, - updateUrlFetcher: mockUpdateUrlFetcher, - ) + const GalleryApp(testMode: true, updateUrlFetcher: mockUpdateUrlFetcher), ); await tester.pump(); // see https://github.com/flutter/flutter/issues/1865 await tester.pump(); // triggers a frame diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart index 0ef7ae4614839d88f506790733b8a84113c2811b..08dd49f43acde1c2e5b1e1f1802a270dc3d01e75 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/page_transitions_perf_test.dart @@ -16,7 +16,7 @@ void main() { }); tearDownAll(() async { - driver.close(); + driver.close(); }); test('measure', () async { @@ -30,7 +30,7 @@ void main() { await driver.tap(find.byTooltip('Back')); await Future.delayed(const Duration(milliseconds: 500)); } - }); + }, retainPriorEvents: true); final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('page_transition_perf', pretty: true); diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart index 475e0eeb80dceb6021bd60de22266c0cbf7d5774..ca39b31ff1c0a453876eddc997ea43e89c2064b6 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/run_demos.dart @@ -73,8 +73,8 @@ Future runDemos(List demos, WidgetController controller) async { if (kUnsynchronizedDemos.contains(demo)) { // These tests have animation, pumpAndSettle cannot be used. - // This time is questionable. 400ms is the tested reasonable result. - await controller.pump(const Duration(milliseconds: 400)); + // This time is questionable. 600ms is the tested reasonable result. + await controller.pump(const Duration(milliseconds: 600)); await controller.pump(); await pageBack(); } else { diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart index 92401c8f9ded37375aa9c7bc975515c273befe6e..677a4e5bb21e7364d8e95716989f3f11033b5b5f 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_test.dart @@ -16,7 +16,7 @@ void main() { }); tearDownAll(() async { - driver.close(); + driver.close(); }); test('measure', () async { @@ -25,9 +25,6 @@ void main() { final SerializableFinder demoList = find.byValueKey('GalleryDemoList'); - // TODO(eseidel): These are very artificial scrolls, we should use better - // https://github.com/flutter/flutter/issues/3316 - // Scroll down for (int i = 0; i < 5; i++) { await driver.scroll(demoList, 0.0, -300.0, const Duration(milliseconds: 300)); await Future.delayed(const Duration(milliseconds: 500)); @@ -38,7 +35,7 @@ void main() { await driver.scroll(demoList, 0.0, 300.0, const Duration(milliseconds: 300)); await Future.delayed(const Duration(milliseconds: 500)); } - }); + }, retainPriorEvents: true); final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('home_scroll_perf', pretty: true); diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart index f30932d71b4cc6cc46b2921a647fdae847bd31a6..405d429c3aa694105fb8b824f138c8b2564e8946 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/scroll_perf_web_test.dart @@ -14,7 +14,7 @@ void main() { }); tearDownAll(() async { - driver.close(); + driver.close(); }); test('measure', () async { diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart index 04b783f88fb7789d1342c85273a654f1ced3ad5e..c7d80d922845fa5429a4e7f3b5e6558772317773 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf.dart @@ -17,9 +17,8 @@ import 'run_demos.dart'; // // These names are reported by the test app, see _handleMessages() // in transitions_perf.dart. -List _allDemos = kAllGalleryDemos.map( - (GalleryDemo demo) => '${demo.title}@${demo.category.name}', -).toList(); +List _allDemos = + kAllGalleryDemos.map((GalleryDemo demo) => '${demo.title}@${demo.category.name}').toList(); Set _unTestedDemos = Set.from(_allDemos); @@ -36,7 +35,7 @@ class _MessageHandler { return const JsonEncoder.withIndent(' ').convert(kProfiledDemos); case 'restDemos': controller ??= LiveWidgetController(WidgetsBinding.instance); - final List restDemos = _unTestedDemos.toList(); + final List restDemos = _unTestedDemos.toList(); await runDemos(restDemos, controller!); return const JsonEncoder.withIndent(' ').convert(restDemos); default: diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart index 11bc3cbe4a20a4e11a3e15de795423ea7b141ef7..565691791850f61e7ce8d6e263c80160c1a42d19 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e.dart @@ -16,13 +16,13 @@ import 'run_demos.dart'; // // These names are reported by the test app, see _handleMessages() // in transitions_perf.dart. -List _allDemos = kAllGalleryDemos.map( - (GalleryDemo demo) => '${demo.title}@${demo.category.name}', -).toList(); +List _allDemos = + kAllGalleryDemos.map((GalleryDemo demo) => '${demo.title}@${demo.category.name}').toList(); void main([List args = const []]) { final bool withSemantics = args.contains('--with_semantics'); - final IntegrationTestWidgetsFlutterBinding binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + final IntegrationTestWidgetsFlutterBinding binding = + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; group('flutter gallery transitions on e2e', () { testWidgets('find.bySemanticsLabel', (WidgetTester tester) async { @@ -32,22 +32,17 @@ void main([List args = const []]) { expect(id, greaterThan(-1)); }, skip: !withSemantics); - testWidgets( - 'all demos', - (WidgetTester tester) async { - runApp(const GalleryApp(testMode: true)); - await tester.pumpAndSettle(); - // Collect timeline data for just a limited set of demos to avoid OOMs. - await binding.watchPerformance(() async { - await runDemos(kProfiledDemos, tester); - }); + testWidgets('all demos', (WidgetTester tester) async { + runApp(const GalleryApp(testMode: true)); + await tester.pumpAndSettle(); + // Collect timeline data for just a limited set of demos to avoid OOMs. + await binding.watchPerformance(() async { + await runDemos(kProfiledDemos, tester); + }); - // Execute the remaining tests. - final Set unprofiledDemos = Set.from(_allDemos) - ..removeAll(kProfiledDemos); - await runDemos(unprofiledDemos.toList(), tester); - }, - semanticsEnabled: withSemantics, - ); + // Execute the remaining tests. + final Set unprofiledDemos = Set.from(_allDemos)..removeAll(kProfiledDemos); + await runDemos(unprofiledDemos.toList(), tester); + }, semanticsEnabled: withSemantics); }); } diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart index 6ea85114be3cfc023c75d88dfbaa6dc133ebb174..b3f250430f2c483ddf29045ef7602106c64c5db7 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_e2e_test.dart @@ -10,5 +10,5 @@ Future main() => driver.integrationDriver( data!['performance'] as Map, testOutputFilename: 'e2e_perf_summary', ); - } + }, ); diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart index dc5ab42f021cb35f3989da7856c9a7e2dd713182..073c0f6fc08f12545825d07a3492e70e26b64215 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_hybrid_test.dart @@ -4,6 +4,5 @@ import 'transitions_perf_test.dart' as transitions_perf_test; -void main([List args = const []]) => transitions_perf_test.main( - ['--hybrid', ...args], -); +void main([List args = const []]) => + transitions_perf_test.main(['--hybrid', ...args]); diff --git a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart index acea40463a7e22935b894069bf103a9b86abaf56..44f2e2ed9ea493e2ef0b965d691f7a95f96e762b 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_driver/transitions_perf_test.dart @@ -71,7 +71,9 @@ Future saveDurationsHistogram(List> events, String ou }); if (unexpectedValueCounts.isNotEmpty) { - final StringBuffer error = StringBuffer('Some routes recorded wrong number of values (expected 2 values/route):\n\n'); + final StringBuffer error = StringBuffer( + 'Some routes recorded wrong number of values (expected 2 values/route):\n\n', + ); // When run with --trace-startup, the VM stores trace events in an endless buffer instead of a ring buffer. error.write('You must add the --trace-startup parameter to run the test. \n\n'); unexpectedValueCounts.forEach((String routeName, int count) { @@ -88,9 +90,10 @@ Future saveDurationsHistogram(List> events, String ou continue; } - final String routeName = eventName == 'Start Transition' - ? (eventIter.current['args'] as Map)['to'] as String - : ''; + final String routeName = + eventName == 'Start Transition' + ? (eventIter.current['args'] as Map)['to'] as String + : ''; if (eventName == lastEventName && routeName == lastRouteName) { error.write('.'); @@ -138,10 +141,7 @@ Future runDemos(List demos, FlutterDriver driver) async { currentDemoCategory = demoCategory; final SerializableFinder demoItem = find.text(demoName); - await driver.scrollUntilVisible(demoList, demoItem, - dyScroll: -48.0, - alignment: 0.5, - ); + await driver.scrollUntilVisible(demoList, demoItem, dyScroll: -48.0, alignment: 0.5); for (int i = 0; i < 2; i += 1) { await driver.tap(demoItem); // Launch the demo @@ -178,23 +178,27 @@ void main([List args = const []]) { } // See _handleMessages() in transitions_perf.dart. - _allDemos = List.from(json.decode(await driver.requestData('demoNames')) as List); + _allDemos = List.from( + json.decode(await driver.requestData('demoNames')) as List, + ); if (_allDemos.isEmpty) { throw 'no demo names found'; } }); tearDownAll(() async { - await driver.close(); + await driver.close(); }); - test('find.bySemanticsLabel', () async { - // Assert that we can use semantics related finders in profile mode. - final int id = await driver.getSemanticsId(find.bySemanticsLabel('Material')); - expect(id, greaterThan(-1)); - }, - skip: !withSemantics, // [intended] test only makes sense when semantics are turned on. - timeout: Timeout.none, + test( + 'find.bySemanticsLabel', + () async { + // Assert that we can use semantics related finders in profile mode. + final int id = await driver.getSemanticsId(find.bySemanticsLabel('Material')); + expect(id, greaterThan(-1)); + }, + skip: !withSemantics, // [intended] test only makes sense when semantics are turned on. + timeout: Timeout.none, ); test('all demos', () async { @@ -212,6 +216,7 @@ void main([List args = const []]) { TimelineStream.embedder, TimelineStream.gc, ], + retainPriorEvents: true, ); // Save the duration (in microseconds) of the first timeline Frame event @@ -219,10 +224,14 @@ void main([List args = const []]) { // 'Start Transition' event when a demo is launched (see GalleryItem). final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('transitions', pretty: true); - final String histogramPath = path.join(testOutputsDirectory, 'transition_durations.timeline.json'); + final String histogramPath = path.join( + testOutputsDirectory, + 'transition_durations.timeline.json', + ); await saveDurationsHistogram( - List>.from(timeline.json['traceEvents'] as List), - histogramPath); + List>.from(timeline.json['traceEvents'] as List), + histogramPath, + ); // Execute the remaining tests. if (hybrid) { @@ -231,7 +240,6 @@ void main([List args = const []]) { final Set unprofiledDemos = Set.from(_allDemos)..removeAll(kProfiledDemos); await runDemos(unprofiledDemos.toList(), driver); } - }, timeout: Timeout.none); }); } diff --git a/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart b/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart index ccac85a2ce1baa7831b236103ea62f644c5fb051..5266b7fa911b0ae6d7601df8b85bf36d6aa02fe3 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_memory/image_cache_memory.dart @@ -14,29 +14,31 @@ import 'package:flutter_test/flutter_test.dart'; Future main() async { const int numItems = 10; - runApp(Directionality( - textDirection: TextDirection.ltr, - child: ListView.builder( - key: const Key('ImageList'), - itemCount: numItems, - itemBuilder: (BuildContext context, int position) { - return SizedBox( - width: 200, - height: 200, - child: Center( - child: Image.asset( - 'monochrome/red-square-1024x1024.png', - package: 'flutter_gallery_assets', - width: 100, - height: 100, - fit: BoxFit.contain, - key: Key('image_$position'), + runApp( + Directionality( + textDirection: TextDirection.ltr, + child: ListView.builder( + key: const Key('ImageList'), + itemCount: numItems, + itemBuilder: (BuildContext context, int position) { + return SizedBox( + width: 200, + height: 200, + child: Center( + child: Image.asset( + 'monochrome/red-square-1024x1024.png', + package: 'flutter_gallery_assets', + width: 100, + height: 100, + fit: BoxFit.contain, + key: Key('image_$position'), + ), ), - ), - ); - }, + ); + }, + ), ), - )); + ); await SchedulerBinding.instance.endOfFrame; @@ -47,8 +49,7 @@ Future main() async { await Future.delayed(const Duration(milliseconds: 50)); debugPrint('==== MEMORY BENCHMARK ==== READY ===='); - final WidgetController controller = - LiveWidgetController(WidgetsBinding.instance); + final WidgetController controller = LiveWidgetController(WidgetsBinding.instance); debugPrint('Scrolling...'); final Finder list = find.byKey(const Key('ImageList')); diff --git a/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart b/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart index 5992b64b1aa600bcd7aea842af26326b377ac9fe..e4a64053f8c129aeb5958996206e5612503f0439 100644 --- a/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart +++ b/flutter/dev/integration_tests/flutter_gallery/test_memory/memory_nav.dart @@ -24,30 +24,29 @@ Rect boundsFor(WidgetController controller, Finder item) { Future main() async { final Completer ready = Completer(); - runApp(GestureDetector( - onTap: () { - debugPrint('Received tap.'); - ready.complete(); - }, - behavior: HitTestBehavior.opaque, - child: const IgnorePointer( - child: GalleryApp(testMode: true), + runApp( + GestureDetector( + onTap: () { + debugPrint('==== MEMORY BENCHMARK ==== TAPPED ===='); + ready.complete(); + }, + behavior: HitTestBehavior.opaque, + child: const IgnorePointer(child: GalleryApp(testMode: true)), ), - )); + ); await SchedulerBinding.instance.endOfFrame; - await Future.delayed(const Duration(milliseconds: 50)); debugPrint('==== MEMORY BENCHMARK ==== READY ===='); await ready.future; debugPrint('Continuing...'); + // Wait out any errant taps due to synchronization + await Future.delayed(const Duration(milliseconds: 200)); + // remove onTap handler, enable pointer events for app - runApp(GestureDetector( - child: const IgnorePointer( - ignoring: false, - child: GalleryApp(testMode: true), - ), - )); + runApp( + GestureDetector(child: const IgnorePointer(ignoring: false, child: GalleryApp(testMode: true))), + ); await SchedulerBinding.instance.endOfFrame; final WidgetController controller = LiveWidgetController(WidgetsBinding.instance); @@ -67,7 +66,10 @@ Future main() async { final Rect demoItemBounds = boundsFor(controller, demoItem); final Rect demoListBounds = boundsFor(controller, demoList); if (!demoListBounds.contains(demoItemBounds.center)) { - await controller.drag(demoList, Offset(0.0, demoListBounds.center.dy - demoItemBounds.center.dy)); + await controller.drag( + demoList, + Offset(0.0, demoListBounds.center.dy - demoItemBounds.center.dy), + ); await endOfAnimation(); } diff --git a/flutter/dev/integration_tests/flutter_gallery/web/index.html b/flutter/dev/integration_tests/flutter_gallery/web/index.html index 89b85fdc1cd78e888d49f5b6ea7f8ee8c8beaeee..05278edd697aef4b2037b71fa5270670c7da0cc5 100644 --- a/flutter/dev/integration_tests/flutter_gallery/web/index.html +++ b/flutter/dev/integration_tests/flutter_gallery/web/index.html @@ -9,7 +9,7 @@ found in the LICENSE file. --> - + diff --git a/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest b/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest +++ b/flutter/dev/integration_tests/flutter_gallery/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp b/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp index f677d8d5f71412f9b1445a198b3a7685f5bfcb74..02f43627405c4a6bf01f3f2c7d4500b679570dc2 100644 --- a/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp +++ b/flutter/dev/integration_tests/flutter_gallery/windows/runner/utils.cpp @@ -49,13 +49,13 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character int input_length = (int)wcslen(utf16_string); std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart b/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart index d2dec8ee443c2287a986e743885226a3d992c17f..99e7b103ad7288f9b0b6f3cf75d79cd17d910c12 100644 --- a/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart +++ b/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/lib/main.dart @@ -42,9 +42,7 @@ class _LifeCycleSpyState extends State with WidgetsBindingObserver void initState() { super.initState(); WidgetsBinding.instance.addObserver(this); - _actualLifeCycleSequence = [ - ServicesBinding.instance.lifecycleState, - ]; + _actualLifeCycleSequence = [ServicesBinding.instance.lifecycleState]; } @override @@ -63,14 +61,14 @@ class _LifeCycleSpyState extends State with WidgetsBindingObserver @override Widget build(BuildContext context) { - if (const ListEquality().equals(_actualLifeCycleSequence, _expectedLifeCycleSequence)) { + if (const ListEquality().equals( + _actualLifeCycleSequence, + _expectedLifeCycleSequence, + )) { // Rewires the semantics harness if test passes. SwitchableSemanticsBinding.instance.semanticsEnabled = true; } - return const MaterialApp( - title: 'Flutter View', - home: Text('test'), - ); + return const MaterialApp(title: 'Flutter View', home: Text('test')); } } diff --git a/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml b/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml index 7baae96cfc9d01f452af06de1e7d7f4d8c20d0f2..1ad90958194bf906e3120958f4ff600c016cc6ae 100644 --- a/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml +++ b/flutter/dev/integration_tests/ios_add2app_life_cycle/flutterapp/pubspec.yaml @@ -14,7 +14,7 @@ description: A new flutter module project. version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -22,12 +22,12 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: 1.0.6 + cupertino_icons: 1.0.8 - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: @@ -37,22 +37,22 @@ dev_dependencies: # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: # The following line ensures that the Material Icons font is @@ -102,4 +102,4 @@ flutter: androidPackage: com.example.iosadd2appflutter iosBundleIdentifier: com.example.iosAdd2appFlutter -# PUBSPEC CHECKSUM: 58cb +# PUBSPEC CHECKSUM: 16cd diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile index 363dd2403825af73fa2168a2651af422f4ebd564..3bdee419ef517c63a2adcbbd5b804f9b88ef8932 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile +++ b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Podfile @@ -29,7 +29,6 @@ flutter_ios_podfile_setup target 'Runner' do use_frameworks! - use_modular_headers! flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) end @@ -37,7 +36,6 @@ end target 'watch Extension' do platform :watchos use_frameworks! - use_modular_headers! pod 'EFQRCode', '6.0' end diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 5e31d3d342f3c77134683eb04988a27e3c76fee3..c53e2b314e9bf5e8ae9951a3d7de8d5f9c6dea77 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift index d815fed684a8a58a302828d747941af4fcffaa9a..58f3ea9b92990af9235803ad5a7218c17d87a0ae 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift +++ b/flutter/dev/integration_tests/ios_app_with_extensions/ios/Runner/AppDelegate.swift @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import UIKit import Flutter +import UIKit -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift b/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift index aa3d624314831bc4bea031fbb5bfcd3685dfbac6..02e73381c98c71280ea3c4ed6aaa112d264c033a 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift +++ b/flutter/dev/integration_tests/ios_app_with_extensions/ios/watch Extension/HostingController.swift @@ -9,9 +9,9 @@ // Created by Georg Wechslberger on 08.04.20. // -import WatchKit import Foundation import SwiftUI +import WatchKit class HostingController: WKHostingController { override var body: ContentView { diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart b/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart index 319889e207d1bd4c62b8f812024894540212eda7..946b2b64ae95600daafec558dec6fba663413586 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart +++ b/flutter/dev/integration_tests/ios_app_with_extensions/lib/main.dart @@ -97,13 +97,8 @@ class _MyHomePageState extends State { // horizontal). mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), + const Text('You have pushed the button this many times:'), + Text('$_counter', style: Theme.of(context).textTheme.headlineMedium), ], ), ), diff --git a/flutter/dev/integration_tests/ios_app_with_extensions/pubspec.yaml b/flutter/dev/integration_tests/ios_app_with_extensions/pubspec.yaml index 04d194d89a2d8f3aaa106b9ac6735db5ad8c20b2..ebf7be8f366d5696b90f3116a4e47391cfd34652 100644 --- a/flutter/dev/integration_tests/ios_app_with_extensions/pubspec.yaml +++ b/flutter/dev/integration_tests/ios_app_with_extensions/pubspec.yaml @@ -13,7 +13,7 @@ name: ios_app_with_extensions version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -22,11 +22,11 @@ dependencies: # to prompt the tool to run pod install. device_info: 2.0.3 - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" device_info_platform_interface: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" plugin_platform_interface: 2.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" @@ -39,22 +39,22 @@ dev_dependencies: # The following section is specific to Flutter. - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: @@ -94,4 +94,4 @@ flutter: # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages -# PUBSPEC CHECKSUM: b154 +# PUBSPEC CHECKSUM: 2b54 diff --git a/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m b/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m index ef27427a59ad126071346bd61930e3b4beae9331..91f9cc890cdd9285012e7e76659a01334f1ac1a9 100644 --- a/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m +++ b/flutter/dev/integration_tests/ios_host_app/FlutterUITests/FlutterUITests.m @@ -73,7 +73,17 @@ static const CGFloat kStandardTimeOut = 60.0; XCTAssertTrue(newPageAppeared); [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; - XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]); + BOOL countIncremented = [app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]; + if (!countIncremented) { + // Sometimes, the element doesn't respond to the tap, it seems to be an iOS 17 Simulator issue where the + // simulator reboots. Try to tap the element again. + [self waitForAndTapElement:app.otherElements[@"Increment via Flutter"]]; + countIncremented = [app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:kStandardTimeOut]; + if (!countIncremented) { + os_log(OS_LOG_DEFAULT, "%@", app.debugDescription); + } + } + XCTAssertTrue(countIncremented); // Back navigation. [app.buttons[@"POP"] tap]; diff --git a/flutter/dev/integration_tests/ios_host_app/README.md b/flutter/dev/integration_tests/ios_host_app/README.md index 75843e8e20bdbae662fc9135bb6c88a8871bf4f2..6a8408d26e1da3e1a6e5411ce3583f9cb78a2189 100644 --- a/flutter/dev/integration_tests/ios_host_app/README.md +++ b/flutter/dev/integration_tests/ios_host_app/README.md @@ -3,7 +3,7 @@ Used by the `module_test_ios.dart` device lab test. iOS host app for a Flutter module created using -``` +```sh $ flutter create -t module hello ``` and placed in a sibling folder to (a clone of) the host app. diff --git a/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main b/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main index 78ea99b18b875bc969c3b91d267a49107a7f2780..ec78451126babd0d6876013bbdd9d177ccc08afd 100644 --- a/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main +++ b/flutter/dev/integration_tests/ios_host_app/flutterapp/lib/main @@ -36,12 +36,12 @@ void main() { // will be made to let us know when we should be changing the app state. _kReloadChannel.setMessageHandler(run); // Start off with whatever the initial route is supposed to be. - run(ui.window.defaultRouteName); + run(ui.PlatformDispatcher.instance.defaultRouteName); } Future run(String? name) async { // The platform-specific component will call [setInitialRoute] on the Flutter - // view (or view controller for iOS) to set [ui.window.defaultRouteName]. + // view (or view controller for iOS) to set [ui.PlatformDispatcher.defaultRouteName]. // We then dispatch based on the route names to show different Flutter // widgets. // Since we don't really care about Flutter-side navigation in this app, we're diff --git a/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift b/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift index 51ec64fcc2d229a8f243704f31e86b7c9c1da42f..e8cb4d2e958b02031c3ff919aa4b9fe8e10c7381 100644 --- a/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift +++ b/flutter/dev/integration_tests/ios_host_app_swift/Host/AppDelegate.swift @@ -4,7 +4,7 @@ import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) diff --git a/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart b/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart index 22025f261e863bbb56ef544246569137f72aa150..4d98418b9a64501ad0e39294ec043b4ec70c79f7 100644 --- a/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart +++ b/flutter/dev/integration_tests/ios_platform_view_tests/lib/main.dart @@ -24,9 +24,7 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', - theme: ThemeData( - primarySwatch: Colors.blue, - ), + theme: ThemeData(primarySwatch: Colors.blue), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } @@ -47,50 +45,53 @@ class _MyHomePageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: Text(widget.title ?? ''), + appBar: AppBar(title: Text(widget.title ?? '')), + body: Column( + children: [ + TextButton( + key: const ValueKey('platform_view_button'), + child: const Text('show platform view'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const MergeThreadTestPage(), + ), + ); + }, + ), + // Push this button to perform an animation, which ensure the threads are unmerged after the animation. + ElevatedButton( + key: const ValueKey('unmerge_button'), + child: const Text('Tap to unmerge threads'), + onPressed: () {}, + ), + TextButton( + key: const ValueKey('platform_view_focus_test'), + child: const Text('platform view focus test'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const FocusTestPage(), + ), + ); + }, + ), + TextButton( + key: const ValueKey('platform_view_z_order_test'), + child: const Text('platform view z order test'), + onPressed: () { + Navigator.push( + context, + MaterialPageRoute( + builder: (BuildContext context) => const ZOrderTestPage(), + ), + ); + }, + ), + ], ), - body: Column(children: [ - TextButton( - key: const ValueKey('platform_view_button'), - child: const Text('show platform view'), - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => const MergeThreadTestPage()), - ); - }, - ), - // Push this button to perform an animation, which ensure the threads are unmerged after the animation. - ElevatedButton( - key: const ValueKey('unmerge_button'), - child: const Text('Tap to unmerge threads'), - onPressed: () {}, - ), - TextButton( - key: const ValueKey('platform_view_focus_test'), - child: const Text('platform view focus test'), - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => const FocusTestPage()), - ); - }, - ), - TextButton( - key: const ValueKey('platform_view_z_order_test'), - child: const Text('platform view z order test'), - onPressed: () { - Navigator.push( - context, - MaterialPageRoute( - builder: (BuildContext context) => const ZOrderTestPage()), - ); - }, - ), - ]), ); } } @@ -104,22 +105,11 @@ class MergeThreadTestPage extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Platform View Thread Merge Tests'), - ), + appBar: AppBar(title: const Text('Platform View Thread Merge Tests')), body: Column( children: [ - const Expanded( - child: SizedBox( - width: 300, - child: UiKitView(viewType: 'platform_view'), - ), - ), - ElevatedButton( - key: button, - child: const Text('button'), - onPressed: (){}, - ), + const Expanded(child: SizedBox(width: 300, child: UiKitView(viewType: 'platform_view'))), + ElevatedButton(key: button, child: const Text('button'), onPressed: () {}), ], ), ); @@ -135,7 +125,6 @@ class FocusTestPage extends StatefulWidget { } class _FocusTestPageState extends State { - late TextEditingController _controller; @override @@ -148,19 +137,11 @@ class _FocusTestPageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Platform View Focus Tests'), - ), + appBar: AppBar(title: const Text('Platform View Focus Tests')), body: Column( children: [ - const SizedBox( - width: 300, - height: 50, - child: UiKitView(viewType: 'platform_text_field'), - ), - TextField( - controller: _controller, - ), + const SizedBox(width: 300, height: 50, child: UiKitView(viewType: 'platform_text_field')), + TextField(controller: _controller), ], ), ); @@ -182,49 +163,50 @@ class _ZOrderTestPageState extends State { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - title: const Text('Platform view z order test'), - ), + appBar: AppBar(title: const Text('Platform view z order test')), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Visibility( - visible: _showBackground, - child: const SizedBox( - width: 500, - height: 500, - child: UiKitView( - viewType: 'platform_view', - creationParamsCodec: StandardMessageCodec(), - ), - )), + visible: _showBackground, + child: const SizedBox( + width: 500, + height: 500, + child: UiKitView( + viewType: 'platform_view', + creationParamsCodec: StandardMessageCodec(), + ), + ), + ), TextButton( - onPressed: () { - showDialog( - context: context, - builder: (BuildContext context) { - return const SizedBox( - width: 250, - height: 250, - child: UiKitView( - viewType: 'platform_button', - creationParamsCodec: StandardMessageCodec(), - ), - ); - }); - - // XCUITest fails to query the background platform view, - // Since it is covered by the dialog prompt, which removes - // semantic nodes underneath. - // As a workaround, we show the background with a delay. - Future.delayed(const Duration(seconds: 1)).then((void value) { - setState(() { - _showBackground = true; - }); + onPressed: () { + showDialog( + context: context, + builder: (BuildContext context) { + return const SizedBox( + width: 250, + height: 250, + child: UiKitView( + viewType: 'platform_button', + creationParamsCodec: StandardMessageCodec(), + ), + ); + }, + ); + + // XCUITest fails to query the background platform view, + // Since it is covered by the dialog prompt, which removes + // semantic nodes underneath. + // As a workaround, we show the background with a delay. + Future.delayed(const Duration(seconds: 1)).then((void value) { + setState(() { + _showBackground = true; }); - }, - child: const Text('Show Alert')), + }); + }, + child: const Text('Show Alert'), + ), ], ), ), diff --git a/flutter/dev/integration_tests/ios_platform_view_tests/pubspec.yaml b/flutter/dev/integration_tests/ios_platform_view_tests/pubspec.yaml index 6ba46c4186ec6971577c9e9597a9a3c64fbb68f2..4d03fb2773bae7ba8e76bf987e549d43b7b911a5 100644 --- a/flutter/dev/integration_tests/ios_platform_view_tests/pubspec.yaml +++ b/flutter/dev/integration_tests/ios_platform_view_tests/pubspec.yaml @@ -3,7 +3,7 @@ name: ios_platform_view_tests version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -11,67 +11,68 @@ dependencies: flutter_driver: sdk: flutter - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: @@ -80,4 +81,4 @@ flutter: # the material Icons class. uses-material-design: true -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart b/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart index 4cd8fe302257a93b92bd5c8f54c1445c7dffabb0..816b40222bc5409c19d68580f26325a02e636b02 100644 --- a/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart +++ b/flutter/dev/integration_tests/ios_platform_view_tests/test_driver/main_test.dart @@ -16,11 +16,9 @@ void main() { tearDownAll(() => driver.close()); - test('Merge thread to create and remove platform views should not crash', - () async { + test('Merge thread to create and remove platform views should not crash', () async { // Start pushing in a page with platform view, merge threads. - final SerializableFinder platformViewButton = - find.byValueKey('platform_view_button'); + final SerializableFinder platformViewButton = find.byValueKey('platform_view_button'); await driver.waitFor(platformViewButton); await driver.tap(platformViewButton); @@ -42,11 +40,9 @@ void main() { expect(driverHealth.status, HealthStatus.ok); }, timeout: Timeout.none); - test('Merge thread to create and remove platform views should not crash', - () async { + test('Merge thread to create and remove platform views should not crash', () async { // Start pushing in a page with platform view, merge threads. - final SerializableFinder platformViewButton = - find.byValueKey('platform_view_button'); + final SerializableFinder platformViewButton = find.byValueKey('platform_view_button'); await driver.waitFor(platformViewButton); await driver.tap(platformViewButton); await driver.waitUntilNoTransientCallbacks(); @@ -57,8 +53,7 @@ void main() { await driver.waitUntilNoTransientCallbacks(); // The animation of tapping a `ElevatedButton` should pump enough frames to un-merge the thread. - final SerializableFinder unmergeButton = - find.byValueKey('unmerge_button'); + final SerializableFinder unmergeButton = find.byValueKey('unmerge_button'); await driver.waitFor(unmergeButton); await driver.tap(unmergeButton); await driver.waitUntilNoTransientCallbacks(); diff --git a/flutter/dev/integration_tests/link_hook/hook/build.dart b/flutter/dev/integration_tests/link_hook/hook/build.dart index 19fb66ccc25c54c851ad964ec94448ddb9656597..fe9590690ed3344e97201d4682df6bb61d27c51c 100644 --- a/flutter/dev/integration_tests/link_hook/hook/build.dart +++ b/flutter/dev/integration_tests/link_hook/hook/build.dart @@ -3,34 +3,50 @@ // found in the LICENSE file. import 'package:logging/logging.dart'; -import 'package:native_assets_cli/native_assets_cli.dart'; +import 'package:native_assets_cli/code_assets.dart'; +import 'package:native_assets_cli/code_assets_builder.dart'; import 'package:native_toolchain_c/native_toolchain_c.dart'; - void main(List args) async { - await build(args, (BuildConfig config, BuildOutput output) async { - final String packageName = config.packageName; + await build(args, (BuildInput input, BuildOutputBuilder output) async { + if (!input.config.buildCodeAssets) { + return; + } + + final String assetName; + if (input.config.linkingEnabled) { + // The link hook will be run. So emit an asset with a name that is + // not used, so that the link hook can rename it. + // This will ensure the test fails if the link-hooks are not run + // while being reported that linking is enabled. + assetName = 'some_asset_name_that_is_not_used'; + } else { + // The link hook will not be run, so immediately emit an asset for + // bundling. + assetName = '${input.packageName}_bindings_generated.dart'; + } + final String packageName = input.packageName; final CBuilder cbuilder = CBuilder.library( name: packageName, - assetName: 'some_asset_name_that_is_not_used', - sources: [ - 'src/$packageName.c', - ], + assetName: assetName, + sources: ['src/$packageName.c'], dartBuildFiles: ['hook/build.dart'], ); - final BuildOutput outputCatcher = BuildOutput(); + final BuildOutputBuilder outputCatcher = BuildOutputBuilder(); await cbuilder.run( - buildConfig: config, - buildOutput: outputCatcher, - logger: Logger('') - ..level = Level.ALL - ..onRecord.listen((LogRecord record) => print(record.message)), + input: input, + output: outputCatcher, + logger: + Logger('') + ..level = Level.ALL + ..onRecord.listen((LogRecord record) => print(record.message)), ); - output.addDependencies(outputCatcher.dependencies); - // Send the asset to hook/link.dart. - output.addAsset( - outputCatcher.assets.single, - linkInPackage: 'link_hook', + final BuildOutput caughtOutput = BuildOutput(outputCatcher.json); + output.addDependencies(caughtOutput.dependencies); + // Send the asset to hook/link.dart or immediately for bundling. + output.assets.code.add( + caughtOutput.assets.code.single, + linkInPackage: input.config.linkingEnabled ? 'link_hook' : null, ); }); } diff --git a/flutter/dev/integration_tests/link_hook/hook/link.dart b/flutter/dev/integration_tests/link_hook/hook/link.dart index 3c37155587f690d7c64d77ce0e200d0cdc714b5f..b94a02e22b4f236ab8ae966e6f7d1e3dafad0cfe 100644 --- a/flutter/dev/integration_tests/link_hook/hook/link.dart +++ b/flutter/dev/integration_tests/link_hook/hook/link.dart @@ -2,21 +2,25 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:native_assets_cli/native_assets_cli.dart'; +import 'package:native_assets_cli/code_assets.dart'; void main(List args) async { - await link(args, (LinkConfig config, LinkOutput output) async { - final NativeCodeAsset asset = config.assets.single as NativeCodeAsset; - final String packageName = config.packageName; - output.addAsset(NativeCodeAsset( - package: packageName, - // Change the asset id to something that is used. - name: '${packageName}_bindings_generated.dart', - linkMode: asset.linkMode, - os: asset.os, - architecture: asset.architecture, - file: asset.file, - )); - output.addDependency(config.packageRoot.resolve('hook/link.dart')); + await link(args, (LinkInput input, LinkOutputBuilder output) async { + if (!input.config.buildCodeAssets) { + return; + } + final CodeAsset asset = input.assets.code.single; + final String packageName = input.packageName; + output.assets.code.add( + CodeAsset( + package: packageName, + // Change the asset id to something that is used. + name: '${packageName}_bindings_generated.dart', + linkMode: asset.linkMode, + os: input.config.code.targetOS, + architecture: input.config.code.targetArchitecture, + file: asset.file, + ), + ); }); } diff --git a/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart b/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart index 02a533ca93f53f3b69b6878041f28e50b0533bcf..9a53b2b4038c4216e176f96d6e4f25938c3ebf4d 100644 --- a/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart +++ b/flutter/dev/integration_tests/link_hook/lib/link_hook_bindings_generated.dart @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// ignore_for_file: always_specify_types -// ignore_for_file: camel_case_types -// ignore_for_file: non_constant_identifier_names - // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. @@ -13,7 +9,4 @@ import 'dart:ffi' as ffi; /// A very short-lived native function. @ffi.Native() -external int difference( - int a, - int b, -); +external int difference(int a, int b); diff --git a/flutter/dev/integration_tests/link_hook/pubspec.yaml b/flutter/dev/integration_tests/link_hook/pubspec.yaml index a9a3906f53a99d5c415dad19488edc591d5c4ed7..290b0c80edd04c12e773d262f08391fdd88bd8a6 100644 --- a/flutter/dev/integration_tests/link_hook/pubspec.yaml +++ b/flutter/dev/integration_tests/link_hook/pubspec.yaml @@ -1,70 +1,71 @@ name: link_hook -description: "A new Dart FFI package project." +description: 'A new Dart FFI package project.' version: 0.0.1 environment: - sdk: '>=3.5.0-154.0.dev <4.0.0' + sdk: ^3.7.0-0 dependencies: - cli_config: 0.2.0 - logging: 1.2.0 - native_assets_cli: 0.6.0 - native_toolchain_c: 0.4.2 + logging: 1.3.0 + native_assets_cli: 0.13.0 + native_toolchain_c: 0.10.0 - args: 2.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.15.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: - ffi: 2.1.2 - ffigen: 12.0.0 - flutter_lints: 4.0.0 - test: 1.25.7 + ffi: 2.1.4 + ffigen: 18.1.0 + flutter_lints: 5.0.0 + test: 1.25.15 - _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - cli_util: 0.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + cli_util: 0.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + dart_style: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - lints: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + lints: 5.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - quiver: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + quiver: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml_edit: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml_edit: 2.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" -# PUBSPEC CHECKSUM: 0444 +# PUBSPEC CHECKSUM: bf62 diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md index 85b88745cdc0b9d13c424eb05fbffc04a7150f20..ae5ffc13f5f2fdbcbc1f5af4ef49d6484b9daaf4 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md @@ -1,7 +1,7 @@ # Android host app Android host app for a Flutter module created using -``` +```sh $ flutter create -t module hello ``` and placed in a sibling folder to (a clone of) the host app. diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle index 7a2741f374fc0e2edb960b5f4b86d0f9df9f4e2d..9e53b71abfc27248692ddb29b3f3fcf1e1723a19 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/build.gradle @@ -5,19 +5,29 @@ apply plugin: 'com.android.application' android { - compileSdk 34 + namespace = "io.flutter.addtoapp" + compileSdk = 35 + + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = "26.3.11579264" // This version must exactly match the version of the NDK that the recipe pulls from CIPD. + ndkPath = systemNdkPath + } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } defaultConfig { - applicationId "io.flutter.addtoapp" - minSdkVersion 19 - targetSdkVersion 33 - versionCode 1 - versionName "1.0" + applicationId = "io.flutter.addtoapp" + minSdk = 21 + targetSdk = 35 + versionCode = 1 + versionName = "1.0" } // Test build types. buildTypes { @@ -26,15 +36,15 @@ android { // This is required because the `:flutter` project doesn't define this custom build type. // Without the fallback, the Android plugin will make Gradle exit with the following error: // `Unable to find a matching variant of project :flutter` - matchingFallbacks = ['debug'] + matchingFallbacks += 'debug' } prod { initWith release - matchingFallbacks = ['release'] + matchingFallbacks += 'release' } } // Test flavors. - flavorDimensions "version" + flavorDimensions += "version" productFlavors { demo { dimension "version" diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml index dc7d78d0af753b797ec1e61b4c5a7bfd87322f0e..6a73e6c126020c1511e54741f8e610ee9e6e1f8d 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/app/src/main/AndroidManifest.xml @@ -3,8 +3,7 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> + xmlns:tools="http://schemas.android.com/tools"> diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle index 90455ea0ad5c9674dd6eb69a3ef1c266c49aaec9..d32a3eaf2751905c764ad4e131df02526ed260aa 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle @@ -8,7 +8,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' + classpath 'com.android.tools.build:gradle:8.8.1' } } @@ -20,5 +20,5 @@ allprojects { } tasks.register("clean", Delete) { - delete rootProject.buildDir + delete rootProject.layout.buildDirectory } diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..e18bc253b857cc9614e63c8975b677f496755957 100644 --- a/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/flutter/dev/integration_tests/new_gallery/lib/constants.dart b/flutter/dev/integration_tests/new_gallery/lib/constants.dart index f9d1e1cde236d7d3ae457ace8783879d2a5c2cd7..6d583b83f1bbefc2ca9a621b3a39fdd4764537e8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/constants.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/constants.dart @@ -25,12 +25,10 @@ const Duration splashPageAnimationDuration = Duration(milliseconds: 300); const Duration halfSplashPageAnimationDuration = Duration(milliseconds: 150); // Duration for settings panel to open on mobile. -const Duration settingsPanelMobileAnimationDuration = - Duration(milliseconds: 200); +const Duration settingsPanelMobileAnimationDuration = Duration(milliseconds: 200); // Duration for settings panel to open on desktop. -const Duration settingsPanelDesktopAnimationDuration = - Duration(milliseconds: 600); +const Duration settingsPanelDesktopAnimationDuration = Duration(milliseconds: 600); // Duration for home page elements to fade in. const Duration entranceAnimationDuration = Duration(milliseconds: 200); @@ -40,14 +38,130 @@ const double firstHeaderDesktopTopPadding = 5.0; // A transparent image used to avoid loading images when they are not needed. final Uint8List kTransparentImage = Uint8List.fromList([ - 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, - 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x08, 0x06, - 0x00, 0x00, 0x00, 0x1F, 0x15, 0xC4, 0x89, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4B, - 0x47, 0x44, 0x00, 0xFF, 0x00, 0xFF, 0x00, 0xFF, 0xA0, 0xBD, 0xA7, 0x93, 0x00, - 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0B, 0x13, 0x00, 0x00, - 0x0B, 0x13, 0x01, 0x00, 0x9A, 0x9C, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, - 0x4D, 0x45, 0x07, 0xE6, 0x03, 0x10, 0x17, 0x07, 0x1D, 0x2E, 0x5E, 0x30, 0x9B, - 0x00, 0x00, 0x00, 0x0B, 0x49, 0x44, 0x41, 0x54, 0x08, 0xD7, 0x63, 0x60, 0x00, - 0x02, 0x00, 0x00, 0x05, 0x00, 0x01, 0xE2, 0x26, 0x05, 0x9B, 0x00, 0x00, 0x00, - 0x00, 0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82, + 0x89, + 0x50, + 0x4E, + 0x47, + 0x0D, + 0x0A, + 0x1A, + 0x0A, + 0x00, + 0x00, + 0x00, + 0x0D, + 0x49, + 0x48, + 0x44, + 0x52, + 0x00, + 0x00, + 0x00, + 0x01, + 0x00, + 0x00, + 0x00, + 0x01, + 0x08, + 0x06, + 0x00, + 0x00, + 0x00, + 0x1F, + 0x15, + 0xC4, + 0x89, + 0x00, + 0x00, + 0x00, + 0x06, + 0x62, + 0x4B, + 0x47, + 0x44, + 0x00, + 0xFF, + 0x00, + 0xFF, + 0x00, + 0xFF, + 0xA0, + 0xBD, + 0xA7, + 0x93, + 0x00, + 0x00, + 0x00, + 0x09, + 0x70, + 0x48, + 0x59, + 0x73, + 0x00, + 0x00, + 0x0B, + 0x13, + 0x00, + 0x00, + 0x0B, + 0x13, + 0x01, + 0x00, + 0x9A, + 0x9C, + 0x18, + 0x00, + 0x00, + 0x00, + 0x07, + 0x74, + 0x49, + 0x4D, + 0x45, + 0x07, + 0xE6, + 0x03, + 0x10, + 0x17, + 0x07, + 0x1D, + 0x2E, + 0x5E, + 0x30, + 0x9B, + 0x00, + 0x00, + 0x00, + 0x0B, + 0x49, + 0x44, + 0x41, + 0x54, + 0x08, + 0xD7, + 0x63, + 0x60, + 0x00, + 0x02, + 0x00, + 0x00, + 0x05, + 0x00, + 0x01, + 0xE2, + 0x26, + 0x05, + 0x9B, + 0x00, + 0x00, + 0x00, + 0x00, + 0x49, + 0x45, + 0x4E, + 0x44, + 0xAE, + 0x42, + 0x60, + 0x82, ]); diff --git a/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart b/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart index c5fcabdbb08f8054a1d0fca34ec2a0fcce4fe88f..e15b43995af42c0e6395d43ffb707368ea3bbb14 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/data/demos.dart @@ -9,32 +9,25 @@ import 'package:flutter/material.dart'; import '../codeviewer/code_displayer.dart'; import '../deferred_widget.dart'; -import '../demos/cupertino/cupertino_demos.dart' - deferred as cupertino_demos; +import '../demos/cupertino/cupertino_demos.dart' deferred as cupertino_demos; import '../demos/cupertino/demo_types.dart'; import '../demos/material/material_demo_types.dart'; -import '../demos/material/material_demos.dart' - deferred as material_demos; -import '../demos/reference/colors_demo.dart' - deferred as colors_demo; -import '../demos/reference/motion_demo_container_transition.dart' - deferred as motion_demo_container; +import '../demos/material/material_demos.dart' deferred as material_demos; +import '../demos/reference/colors_demo.dart' deferred as colors_demo; +import '../demos/reference/motion_demo_container_transition.dart' deferred as motion_demo_container; import '../demos/reference/motion_demo_fade_scale_transition.dart'; import '../demos/reference/motion_demo_fade_through_transition.dart'; import '../demos/reference/motion_demo_shared_x_axis_transition.dart'; import '../demos/reference/motion_demo_shared_y_axis_transition.dart'; import '../demos/reference/motion_demo_shared_z_axis_transition.dart'; -import '../demos/reference/transformations_demo.dart' - deferred as transformations_demo; -import '../demos/reference/typography_demo.dart' - deferred as typography; +import '../demos/reference/transformations_demo.dart' deferred as transformations_demo; +import '../demos/reference/typography_demo.dart' deferred as typography; import '../gallery_localizations.dart'; import '../gallery_localizations_en.dart'; import 'icons.dart'; const String _docsBaseUrl = 'https://api.flutter.dev/flutter'; -const String _docsAnimationsUrl = - 'https://pub.dev/documentation/animations/latest/animations'; +const String _docsAnimationsUrl = 'https://pub.dev/documentation/animations/latest/animations'; enum GalleryDemoCategory { study, @@ -67,9 +60,8 @@ class GalleryDemo { this.slug, this.icon, this.configurations = const [], - }) : assert(category == GalleryDemoCategory.study || - (slug != null && icon != null)), - assert(slug != null || studyId != null); + }) : assert(category == GalleryDemoCategory.study || (slug != null && icon != null)), + assert(slug != null || studyId != null); final String title; final GalleryDemoCategory category; @@ -188,11 +180,9 @@ class Demos { title: localizations.demoAppBarTitle, description: localizations.demoAppBarDescription, documentationUrl: '$_docsBaseUrl/material/AppBar-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.AppBarDemo(), - ), - ), + buildRoute: + (_) => DeferredWidget(materialDemosLibrary, () => material_demos.AppBarDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -205,13 +195,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoBannerTitle, description: localizations.demoBannerDescription, - documentationUrl: - '$_docsBaseUrl/material/MaterialBanner-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BannerDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/material/MaterialBanner-class.html', + buildRoute: + (_) => DeferredWidget(materialDemosLibrary, () => material_demos.BannerDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -225,11 +212,10 @@ class Demos { title: localizations.demoBottomAppBarTitle, description: localizations.demoBottomAppBarDescription, documentationUrl: '$_docsBaseUrl/material/BottomAppBar-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BottomAppBarDemo(), - ), - ), + buildRoute: + (_) => + DeferredWidget(materialDemosLibrary, () => material_demos.BottomAppBarDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -242,27 +228,29 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoBottomNavigationPersistentLabels, description: localizations.demoBottomNavigationDescription, - documentationUrl: - '$_docsBaseUrl/material/BottomNavigationBar-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BottomNavigationDemo( - type: BottomNavigationDemoType.withLabels, - restorationId: 'bottom_navigation_labels_demo', - )), - ), + documentationUrl: '$_docsBaseUrl/material/BottomNavigationBar-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomNavigationDemo( + type: BottomNavigationDemoType.withLabels, + restorationId: 'bottom_navigation_labels_demo', + ), + ), + ), GalleryDemoConfiguration( title: localizations.demoBottomNavigationSelectedLabel, description: localizations.demoBottomNavigationDescription, - documentationUrl: - '$_docsBaseUrl/material/BottomNavigationBar-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BottomNavigationDemo( - type: BottomNavigationDemoType.withoutLabels, - restorationId: 'bottom_navigation_without_labels_demo', - )), - ), + documentationUrl: '$_docsBaseUrl/material/BottomNavigationBar-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomNavigationDemo( + type: BottomNavigationDemoType.withoutLabels, + restorationId: 'bottom_navigation_without_labels_demo', + ), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -276,22 +264,22 @@ class Demos { title: localizations.demoBottomSheetPersistentTitle, description: localizations.demoBottomSheetPersistentDescription, documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BottomSheetDemo( - type: BottomSheetDemoType.persistent, - )), - ), + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomSheetDemo(type: BottomSheetDemoType.persistent), + ), + ), GalleryDemoConfiguration( title: localizations.demoBottomSheetModalTitle, description: localizations.demoBottomSheetModalDescription, documentationUrl: '$_docsBaseUrl/material/BottomSheet-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.BottomSheetDemo( - type: BottomSheetDemoType.modal, - )), - ), + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.BottomSheetDemo(type: BottomSheetDemoType.modal), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -305,40 +293,52 @@ class Demos { title: localizations.demoTextButtonTitle, description: localizations.demoTextButtonDescription, documentationUrl: '$_docsBaseUrl/material/TextButton-class.html', - buildRoute: (_) => DeferredWidget(materialDemosLibrary, - () => material_demos.ButtonDemo(type: ButtonDemoType.text)), - ), + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.text), + ), + ), GalleryDemoConfiguration( title: localizations.demoElevatedButtonTitle, description: localizations.demoElevatedButtonDescription, - documentationUrl: - '$_docsBaseUrl/material/ElevatedButton-class.html', - buildRoute: (_) => DeferredWidget(materialDemosLibrary, - () => material_demos.ButtonDemo(type: ButtonDemoType.elevated)), - ), + documentationUrl: '$_docsBaseUrl/material/ElevatedButton-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.elevated), + ), + ), GalleryDemoConfiguration( title: localizations.demoOutlinedButtonTitle, description: localizations.demoOutlinedButtonDescription, - documentationUrl: - '$_docsBaseUrl/material/OutlinedButton-class.html', - buildRoute: (_) => DeferredWidget(materialDemosLibrary, - () => material_demos.ButtonDemo(type: ButtonDemoType.outlined)), - ), + documentationUrl: '$_docsBaseUrl/material/OutlinedButton-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.outlined), + ), + ), GalleryDemoConfiguration( title: localizations.demoToggleButtonTitle, description: localizations.demoToggleButtonDescription, documentationUrl: '$_docsBaseUrl/material/ToggleButtons-class.html', - buildRoute: (_) => DeferredWidget(materialDemosLibrary, - () => material_demos.ButtonDemo(type: ButtonDemoType.toggle)), - ), + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.toggle), + ), + ), GalleryDemoConfiguration( title: localizations.demoFloatingButtonTitle, description: localizations.demoFloatingButtonDescription, - documentationUrl: - '$_docsBaseUrl/material/FloatingActionButton-class.html', - buildRoute: (_) => DeferredWidget(materialDemosLibrary, - () => material_demos.ButtonDemo(type: ButtonDemoType.floating)), - ), + documentationUrl: '$_docsBaseUrl/material/FloatingActionButton-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ButtonDemo(type: ButtonDemoType.floating), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -352,11 +352,10 @@ class Demos { title: localizations.demoCardTitle, description: localizations.demoCardDescription, documentationUrl: '$_docsBaseUrl/material/Card-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.CardsDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.CardsDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -370,30 +369,42 @@ class Demos { title: localizations.demoActionChipTitle, description: localizations.demoActionChipDescription, documentationUrl: '$_docsBaseUrl/material/ActionChip-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ChipDemo(type: ChipDemoType.action)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.action), + ), + ), GalleryDemoConfiguration( title: localizations.demoChoiceChipTitle, description: localizations.demoChoiceChipDescription, documentationUrl: '$_docsBaseUrl/material/ChoiceChip-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ChipDemo(type: ChipDemoType.choice)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.choice), + ), + ), GalleryDemoConfiguration( title: localizations.demoFilterChipTitle, description: localizations.demoFilterChipDescription, documentationUrl: '$_docsBaseUrl/material/FilterChip-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ChipDemo(type: ChipDemoType.filter)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.filter), + ), + ), GalleryDemoConfiguration( title: localizations.demoInputChipTitle, description: localizations.demoInputChipDescription, documentationUrl: '$_docsBaseUrl/material/InputChip-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ChipDemo(type: ChipDemoType.input)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ChipDemo(type: ChipDemoType.input), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -407,11 +418,10 @@ class Demos { title: localizations.demoDataTableTitle, description: localizations.demoDataTableDescription, documentationUrl: '$_docsBaseUrl/material/DataTable-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.DataTableDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.DataTableDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -425,35 +435,42 @@ class Demos { title: localizations.demoAlertDialogTitle, description: localizations.demoAlertDialogDescription, documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.DialogDemo(type: DialogDemoType.alert)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.alert), + ), + ), GalleryDemoConfiguration( title: localizations.demoAlertTitleDialogTitle, description: localizations.demoAlertDialogDescription, documentationUrl: '$_docsBaseUrl/material/AlertDialog-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => - material_demos.DialogDemo(type: DialogDemoType.alertTitle)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.alertTitle), + ), + ), GalleryDemoConfiguration( title: localizations.demoSimpleDialogTitle, description: localizations.demoSimpleDialogDescription, documentationUrl: '$_docsBaseUrl/material/SimpleDialog-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.DialogDemo(type: DialogDemoType.simple)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.simple), + ), + ), GalleryDemoConfiguration( title: localizations.demoFullscreenDialogTitle, description: localizations.demoFullscreenDialogDescription, - documentationUrl: - '$_docsBaseUrl/widgets/PageRoute/fullscreenDialog.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => - material_demos.DialogDemo(type: DialogDemoType.fullscreen)), - ), + documentationUrl: '$_docsBaseUrl/widgets/PageRoute/fullscreenDialog.html', + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DialogDemo(type: DialogDemoType.fullscreen), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -467,21 +484,22 @@ class Demos { title: localizations.demoDividerTitle, description: localizations.demoDividerDescription, documentationUrl: '$_docsBaseUrl/material/Divider-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => material_demos.DividerDemo( - type: DividerDemoType.horizontal)), - ), + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DividerDemo(type: DividerDemoType.horizontal), + ), + ), GalleryDemoConfiguration( title: localizations.demoVerticalDividerTitle, description: localizations.demoDividerDescription, - documentationUrl: - '$_docsBaseUrl/material/VerticalDivider-class.html', - buildRoute: (_) => DeferredWidget( - materialDemosLibrary, - () => - material_demos.DividerDemo(type: DividerDemoType.vertical)), - ), + documentationUrl: '$_docsBaseUrl/material/VerticalDivider-class.html', + buildRoute: + (_) => DeferredWidget( + materialDemosLibrary, + () => material_demos.DividerDemo(type: DividerDemoType.vertical), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -495,29 +513,32 @@ class Demos { title: localizations.demoGridListsImageOnlyTitle, description: localizations.demoGridListsDescription, documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.GridListDemo( - type: GridListDemoType.imageOnly)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.GridListDemo(type: GridListDemoType.imageOnly), + ), + ), GalleryDemoConfiguration( title: localizations.demoGridListsHeaderTitle, description: localizations.demoGridListsDescription, documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => - material_demos.GridListDemo(type: GridListDemoType.header)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.GridListDemo(type: GridListDemoType.header), + ), + ), GalleryDemoConfiguration( title: localizations.demoGridListsFooterTitle, description: localizations.demoGridListsDescription, documentationUrl: '$_docsBaseUrl/widgets/GridView-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => - material_demos.GridListDemo(type: GridListDemoType.footer)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.GridListDemo(type: GridListDemoType.footer), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -531,16 +552,22 @@ class Demos { title: localizations.demoOneLineListsTitle, description: localizations.demoListsDescription, documentationUrl: '$_docsBaseUrl/material/ListTile-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ListDemo(type: ListDemoType.oneLine)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ListDemo(type: ListDemoType.oneLine), + ), + ), GalleryDemoConfiguration( title: localizations.demoTwoLineListsTitle, description: localizations.demoListsDescription, documentationUrl: '$_docsBaseUrl/material/ListTile-class.html', - buildRoute: (BuildContext context) => DeferredWidget(materialDemosLibrary, - () => material_demos.ListDemo(type: ListDemoType.twoLine)), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ListDemo(type: ListDemoType.twoLine), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -554,39 +581,42 @@ class Demos { title: localizations.demoContextMenuTitle, description: localizations.demoMenuDescription, documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.MenuDemo(type: MenuDemoType.contextMenu), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.contextMenu), + ), + ), GalleryDemoConfiguration( title: localizations.demoSectionedMenuTitle, description: localizations.demoMenuDescription, documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.MenuDemo(type: MenuDemoType.sectionedMenu), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.sectionedMenu), + ), + ), GalleryDemoConfiguration( title: localizations.demoChecklistMenuTitle, description: localizations.demoMenuDescription, - documentationUrl: - '$_docsBaseUrl/material/CheckedPopupMenuItem-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.MenuDemo(type: MenuDemoType.checklistMenu), - ), - ), + documentationUrl: '$_docsBaseUrl/material/CheckedPopupMenuItem-class.html', + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.checklistMenu), + ), + ), GalleryDemoConfiguration( title: localizations.demoSimpleMenuTitle, description: localizations.demoMenuDescription, documentationUrl: '$_docsBaseUrl/material/PopupMenuItem-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.MenuDemo(type: MenuDemoType.simpleMenu), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.MenuDemo(type: MenuDemoType.simpleMenu), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -600,11 +630,10 @@ class Demos { title: localizations.demoNavigationDrawerTitle, description: localizations.demoNavigationDrawerDescription, documentationUrl: '$_docsBaseUrl/material/Drawer-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.NavDrawerDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.NavDrawerDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -617,13 +646,11 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoNavigationRailTitle, description: localizations.demoNavigationRailDescription, - documentationUrl: - '$_docsBaseUrl/material/NavigationRail-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.NavRailDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/material/NavigationRail-class.html', + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.NavRailDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -637,29 +664,32 @@ class Demos { title: localizations.demoDatePickerTitle, description: localizations.demoDatePickerDescription, documentationUrl: '$_docsBaseUrl/material/showDatePicker.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.PickerDemo(type: PickerDemoType.date), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.date), + ), + ), GalleryDemoConfiguration( title: localizations.demoTimePickerTitle, description: localizations.demoTimePickerDescription, documentationUrl: '$_docsBaseUrl/material/showTimePicker.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.PickerDemo(type: PickerDemoType.time), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.time), + ), + ), GalleryDemoConfiguration( title: localizations.demoDateRangePickerTitle, description: localizations.demoDateRangePickerDescription, documentationUrl: '$_docsBaseUrl/material/showDateRangePicker.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.PickerDemo(type: PickerDemoType.range), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.PickerDemo(type: PickerDemoType.range), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -672,27 +702,26 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCircularProgressIndicatorTitle, description: localizations.demoCircularProgressIndicatorDescription, - documentationUrl: - '$_docsBaseUrl/material/CircularProgressIndicator-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.ProgressIndicatorDemo( - type: ProgressIndicatorDemoType.circular, - ), - ), - ), + documentationUrl: '$_docsBaseUrl/material/CircularProgressIndicator-class.html', + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.ProgressIndicatorDemo( + type: ProgressIndicatorDemoType.circular, + ), + ), + ), GalleryDemoConfiguration( title: localizations.demoLinearProgressIndicatorTitle, description: localizations.demoLinearProgressIndicatorDescription, - documentationUrl: - '$_docsBaseUrl/material/LinearProgressIndicator-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.ProgressIndicatorDemo( - type: ProgressIndicatorDemoType.linear, - ), - ), - ), + documentationUrl: '$_docsBaseUrl/material/LinearProgressIndicator-class.html', + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => + material_demos.ProgressIndicatorDemo(type: ProgressIndicatorDemoType.linear), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -706,35 +735,36 @@ class Demos { title: localizations.demoSelectionControlsCheckboxTitle, description: localizations.demoSelectionControlsCheckboxDescription, documentationUrl: '$_docsBaseUrl/material/Checkbox-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SelectionControlsDemo( - type: SelectionControlsDemoType.checkbox, - ), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo( + type: SelectionControlsDemoType.checkbox, + ), + ), + ), GalleryDemoConfiguration( title: localizations.demoSelectionControlsRadioTitle, description: localizations.demoSelectionControlsRadioDescription, documentationUrl: '$_docsBaseUrl/material/Radio-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SelectionControlsDemo( - type: SelectionControlsDemoType.radio, - ), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo(type: SelectionControlsDemoType.radio), + ), + ), GalleryDemoConfiguration( title: localizations.demoSelectionControlsSwitchTitle, description: localizations.demoSelectionControlsSwitchDescription, documentationUrl: '$_docsBaseUrl/material/Switch-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SelectionControlsDemo( - type: SelectionControlsDemoType.switches, - ), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SelectionControlsDemo( + type: SelectionControlsDemoType.switches, + ), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -748,31 +778,32 @@ class Demos { title: localizations.demoSlidersTitle, description: localizations.demoSlidersDescription, documentationUrl: '$_docsBaseUrl/material/Slider-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SlidersDemo(type: SlidersDemoType.sliders), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo(type: SlidersDemoType.sliders), + ), + ), GalleryDemoConfiguration( title: localizations.demoRangeSlidersTitle, description: localizations.demoRangeSlidersDescription, documentationUrl: '$_docsBaseUrl/material/RangeSlider-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SlidersDemo( - type: SlidersDemoType.rangeSliders), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo(type: SlidersDemoType.rangeSliders), + ), + ), GalleryDemoConfiguration( title: localizations.demoCustomSlidersTitle, description: localizations.demoCustomSlidersDescription, documentationUrl: '$_docsBaseUrl/material/SliderTheme-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SlidersDemo( - type: SlidersDemoType.customSliders), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.SlidersDemo(type: SlidersDemoType.customSliders), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -786,11 +817,10 @@ class Demos { title: localizations.demoSnackbarsTitle, description: localizations.demoSnackbarsDescription, documentationUrl: '$_docsBaseUrl/material/SnackBar-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.SnackbarsDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.SnackbarsDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -804,20 +834,22 @@ class Demos { title: localizations.demoTabsScrollingTitle, description: localizations.demoTabsDescription, documentationUrl: '$_docsBaseUrl/material/TabBar-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.TabsDemo(type: TabsDemoType.scrollable), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TabsDemo(type: TabsDemoType.scrollable), + ), + ), GalleryDemoConfiguration( title: localizations.demoTabsNonScrollingTitle, description: localizations.demoTabsDescription, documentationUrl: '$_docsBaseUrl/material/TabBar-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.TabsDemo(type: TabsDemoType.nonScrollable), - ), - ), + buildRoute: + (BuildContext context) => DeferredWidget( + materialDemosLibrary, + () => material_demos.TabsDemo(type: TabsDemoType.nonScrollable), + ), + ), ], category: GalleryDemoCategory.material, ), @@ -831,11 +863,10 @@ class Demos { title: localizations.demoTextFieldTitle, description: localizations.demoTextFieldDescription, documentationUrl: '$_docsBaseUrl/material/TextField-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.TextFieldDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.TextFieldDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -849,11 +880,10 @@ class Demos { title: localizations.demoTooltipTitle, description: localizations.demoTooltipDescription, documentationUrl: '$_docsBaseUrl/material/Tooltip-class.html', - buildRoute: (BuildContext context) => DeferredWidget( - materialDemosLibrary, - () => material_demos.TooltipDemo(), - ), - ), + buildRoute: + (BuildContext context) => + DeferredWidget(materialDemosLibrary, () => material_demos.TooltipDemo()), + ), ], category: GalleryDemoCategory.material, ), @@ -871,15 +901,14 @@ class Demos { configurations: [ GalleryDemoConfiguration( title: localizations.demoCupertinoActivityIndicatorTitle, - description: - localizations.demoCupertinoActivityIndicatorDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoActivityIndicator-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoProgressIndicatorDemo(), - ), - ), + description: localizations.demoCupertinoActivityIndicatorDescription, + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoActivityIndicator-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoProgressIndicatorDemo(), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -892,53 +921,53 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoAlertTitle, description: localizations.demoCupertinoAlertDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoAlertDemo( - type: AlertDemoType.alert)), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo(type: AlertDemoType.alert), + ), + ), GalleryDemoConfiguration( title: localizations.demoCupertinoAlertWithTitleTitle, description: localizations.demoCupertinoAlertDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoAlertDemo( - type: AlertDemoType.alertTitle)), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo(type: AlertDemoType.alertTitle), + ), + ), GalleryDemoConfiguration( title: localizations.demoCupertinoAlertButtonsTitle, description: localizations.demoCupertinoAlertDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoAlertDemo( - type: AlertDemoType.alertButtons)), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo(type: AlertDemoType.alertButtons), + ), + ), GalleryDemoConfiguration( title: localizations.demoCupertinoAlertButtonsOnlyTitle, description: localizations.demoCupertinoAlertDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoAlertDemo( - type: AlertDemoType.alertButtonsOnly)), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoAlertDialog-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo(type: AlertDemoType.alertButtonsOnly), + ), + ), GalleryDemoConfiguration( title: localizations.demoCupertinoActionSheetTitle, description: localizations.demoCupertinoActionSheetDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoActionSheet-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoAlertDemo( - type: AlertDemoType.actionSheet)), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoActionSheet-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoAlertDemo(type: AlertDemoType.actionSheet), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -951,13 +980,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoButtonsTitle, description: localizations.demoCupertinoButtonsDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoButton-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoButtonDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoButton-class.html', + buildRoute: + (_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoButtonDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -970,13 +996,13 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoContextMenuTitle, description: localizations.demoCupertinoContextMenuDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoContextMenu-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoContextMenuDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoContextMenu-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoContextMenuDemo(), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -989,13 +1015,13 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoNavigationBarTitle, description: localizations.demoCupertinoNavigationBarDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoNavigationBar-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoNavigationBarDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoNavigationBar-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoNavigationBarDemo(), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1008,13 +1034,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoPickerTitle, description: localizations.demoCupertinoPickerDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoDatePicker-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - // ignore: prefer_const_constructors - () => cupertino_demos.CupertinoPickerDemo()), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoDatePicker-class.html', + buildRoute: + (_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoPickerDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1027,13 +1050,11 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoScrollbarTitle, description: localizations.demoCupertinoScrollbarDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoScrollbar-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - // ignore: prefer_const_constructors - () => cupertino_demos.CupertinoScrollbarDemo()), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoScrollbar-class.html', + buildRoute: + (_) => + DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoScrollbarDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1046,13 +1067,13 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoSegmentedControlTitle, description: localizations.demoCupertinoSegmentedControlDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoSegmentedControl-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoSegmentedControlDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoSegmentedControl-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSegmentedControlDemo(), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1065,13 +1086,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoSliderTitle, description: localizations.demoCupertinoSliderDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoSlider-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoSliderDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoSlider-class.html', + buildRoute: + (_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoSliderDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1084,13 +1102,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoSelectionControlsSwitchTitle, description: localizations.demoCupertinoSwitchDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoSwitch-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoSwitchDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoSwitch-class.html', + buildRoute: + (_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoSwitchDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1103,13 +1118,10 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoTabBarTitle, description: localizations.demoCupertinoTabBarDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoTabBar-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoTabBarDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoTabBar-class.html', + buildRoute: + (_) => DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoTabBarDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1122,13 +1134,11 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoTextFieldTitle, description: localizations.demoCupertinoTextFieldDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoTextField-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoTextFieldDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoTextField-class.html', + buildRoute: + (_) => + DeferredWidget(cupertinoLoader, () => cupertino_demos.CupertinoTextFieldDemo()), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1141,13 +1151,13 @@ class Demos { GalleryDemoConfiguration( title: localizations.demoCupertinoSearchTextFieldTitle, description: localizations.demoCupertinoSearchTextFieldDescription, - documentationUrl: - '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', - buildRoute: (_) => DeferredWidget( - cupertinoLoader, - () => cupertino_demos.CupertinoSearchTextFieldDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/cupertino/CupertinoSearchTextField-class.html', + buildRoute: + (_) => DeferredWidget( + cupertinoLoader, + () => cupertino_demos.CupertinoSearchTextFieldDemo(), + ), + ), ], category: GalleryDemoCategory.cupertino, ), @@ -1166,46 +1176,42 @@ class Demos { title: localizations.demoContainerTransformTitle, description: localizations.demoContainerTransformDescription, documentationUrl: '$_docsAnimationsUrl/OpenContainer-class.html', - buildRoute: (_) => DeferredWidget( - motion_demo_container.loadLibrary, - () => motion_demo_container.OpenContainerTransformDemo(), - ), - ), + buildRoute: + (_) => DeferredWidget( + motion_demo_container.loadLibrary, + () => motion_demo_container.OpenContainerTransformDemo(), + ), + ), GalleryDemoConfiguration( title: localizations.demoSharedXAxisTitle, description: localizations.demoSharedAxisDescription, - documentationUrl: - '$_docsAnimationsUrl/SharedAxisTransition-class.html', + documentationUrl: '$_docsAnimationsUrl/SharedAxisTransition-class.html', buildRoute: (_) => const SharedXAxisTransitionDemo(), - ), + ), GalleryDemoConfiguration( title: localizations.demoSharedYAxisTitle, description: localizations.demoSharedAxisDescription, - documentationUrl: - '$_docsAnimationsUrl/SharedAxisTransition-class.html', + documentationUrl: '$_docsAnimationsUrl/SharedAxisTransition-class.html', buildRoute: (_) => const SharedYAxisTransitionDemo(), - ), + ), GalleryDemoConfiguration( title: localizations.demoSharedZAxisTitle, description: localizations.demoSharedAxisDescription, - documentationUrl: - '$_docsAnimationsUrl/SharedAxisTransition-class.html', + documentationUrl: '$_docsAnimationsUrl/SharedAxisTransition-class.html', buildRoute: (_) => const SharedZAxisTransitionDemo(), - ), + ), GalleryDemoConfiguration( title: localizations.demoFadeThroughTitle, description: localizations.demoFadeThroughDescription, - documentationUrl: - '$_docsAnimationsUrl/FadeThroughTransition-class.html', + documentationUrl: '$_docsAnimationsUrl/FadeThroughTransition-class.html', buildRoute: (_) => const FadeThroughTransitionDemo(), - ), + ), GalleryDemoConfiguration( title: localizations.demoFadeScaleTitle, description: localizations.demoFadeScaleDescription, - documentationUrl: - '$_docsAnimationsUrl/FadeScaleTransition-class.html', + documentationUrl: '$_docsAnimationsUrl/FadeScaleTransition-class.html', buildRoute: (_) => const FadeScaleTransitionDemo(), - ), + ), ], category: GalleryDemoCategory.other, ), @@ -1219,11 +1225,9 @@ class Demos { title: localizations.demoColorsTitle, description: localizations.demoColorsDescription, documentationUrl: '$_docsBaseUrl/material/MaterialColor-class.html', - buildRoute: (_) => DeferredWidget( - colors_demo.loadLibrary, - () => colors_demo.ColorsDemo(), - ), - ), + buildRoute: + (_) => DeferredWidget(colors_demo.loadLibrary, () => colors_demo.ColorsDemo()), + ), ], category: GalleryDemoCategory.other, ), @@ -1237,11 +1241,9 @@ class Demos { title: localizations.demoTypographyTitle, description: localizations.demoTypographyDescription, documentationUrl: '$_docsBaseUrl/material/TextTheme-class.html', - buildRoute: (_) => DeferredWidget( - typography.loadLibrary, - () => typography.TypographyDemo(), - ), - ), + buildRoute: + (_) => DeferredWidget(typography.loadLibrary, () => typography.TypographyDemo()), + ), ], category: GalleryDemoCategory.other, ), @@ -1254,13 +1256,13 @@ class Demos { GalleryDemoConfiguration( title: localizations.demo2dTransformationsTitle, description: localizations.demo2dTransformationsDescription, - documentationUrl: - '$_docsBaseUrl/widgets/GestureDetector-class.html', - buildRoute: (_) => DeferredWidget( - transformations_demo.loadLibrary, - () => transformations_demo.TransformationsDemo(), - ), - ), + documentationUrl: '$_docsBaseUrl/widgets/GestureDetector-class.html', + buildRoute: + (_) => DeferredWidget( + transformations_demo.loadLibrary, + () => transformations_demo.TransformationsDemo(), + ), + ), ], category: GalleryDemoCategory.other, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart b/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart index 46ddf22af8dd4d5e16d2c38dc45ddd289708b354..26a8d9061f916972a74de39ce57f60373d5f8a50 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/data/gallery_options.dart @@ -9,11 +9,7 @@ import 'package:flutter/scheduler.dart' show timeDilation; import 'package:flutter/services.dart' show SystemUiOverlayStyle; import '../constants.dart'; -enum CustomTextDirection { - localeBased, - ltr, - rtl, -} +enum CustomTextDirection { localeBased, ltr, rtl } // See http://en.wikipedia.org/wiki/Right-to-left const List rtlLanguages = [ @@ -45,8 +41,8 @@ class GalleryOptions { required this.timeDilation, required this.platform, required this.isTestMode, - }) : _textScaleFactor = textScaleFactor ?? 1.0, - _locale = locale; + }) : _textScaleFactor = textScaleFactor ?? 1.0, + _locale = locale; final ThemeMode themeMode; final double _textScaleFactor; @@ -82,9 +78,7 @@ class GalleryOptions { if (language == null) { return null; } - return rtlLanguages.contains(language) - ? TextDirection.rtl - : TextDirection.ltr; + return rtlLanguages.contains(language) ? TextDirection.rtl : TextDirection.ltr; case CustomTextDirection.rtl: return TextDirection.rtl; case CustomTextDirection.ltr: @@ -97,13 +91,13 @@ class GalleryOptions { /// light, returns dark. SystemUiOverlayStyle resolvedSystemUiOverlayStyle() { final Brightness brightness = switch (themeMode) { - ThemeMode.light => Brightness.light, - ThemeMode.dark => Brightness.dark, + ThemeMode.light => Brightness.light, + ThemeMode.dark => Brightness.dark, ThemeMode.system => WidgetsBinding.instance.platformDispatcher.platformBrightness, }; return switch (brightness) { Brightness.light => SystemUiOverlayStyle.dark, - Brightness.dark => SystemUiOverlayStyle.light, + Brightness.dark => SystemUiOverlayStyle.light, }; } @@ -140,14 +134,14 @@ class GalleryOptions { @override int get hashCode => Object.hash( - themeMode, - _textScaleFactor, - customTextDirection, - locale, - timeDilation, - platform, - isTestMode, - ); + themeMode, + _textScaleFactor, + customTextDirection, + locale, + timeDilation, + platform, + isTestMode, + ); static GalleryOptions of(BuildContext context) { final _ModelBindingScope scope = @@ -164,10 +158,7 @@ class GalleryOptions { // Applies text GalleryOptions to a widget class ApplyTextOptions extends StatelessWidget { - const ApplyTextOptions({ - super.key, - required this.child, - }); + const ApplyTextOptions({super.key, required this.child}); final Widget child; @@ -186,10 +177,7 @@ class ApplyTextOptions extends StatelessWidget { ); return textDirection == null ? widget - : Directionality( - textDirection: textDirection, - child: widget, - ); + : Directionality(textDirection: textDirection, child: widget); } } @@ -197,10 +185,7 @@ class ApplyTextOptions extends StatelessWidget { // See https://medium.com/flutter/managing-flutter-application-state-with-inheritedwidgets-1140452befe1 class _ModelBindingScope extends InheritedWidget { - const _ModelBindingScope({ - required this.modelBindingState, - required super.child, - }); + const _ModelBindingScope({required this.modelBindingState, required super.child}); final _ModelBindingState modelBindingState; @@ -209,11 +194,7 @@ class _ModelBindingScope extends InheritedWidget { } class ModelBinding extends StatefulWidget { - const ModelBinding({ - super.key, - required this.initialModel, - required this.child, - }); + const ModelBinding({super.key, required this.initialModel, required this.child}); final GalleryOptions initialModel; final Widget child; @@ -267,9 +248,6 @@ class _ModelBindingState extends State { @override Widget build(BuildContext context) { - return _ModelBindingScope( - modelBindingState: this, - child: widget.child, - ); + return _ModelBindingScope(modelBindingState: this, child: widget.child); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart b/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart index 970501f496f1be62f2eca19d609b2792fe0f7357..d6d3c0a91ac627f27d933e76321fda8c65a25b59 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/data/icons.dart @@ -7,166 +7,46 @@ import 'package:flutter/material.dart'; class GalleryIcons { GalleryIcons._(); - static const IconData tooltip = IconData( - 0xe900, - fontFamily: 'GalleryIcons', - ); - static const IconData textFieldsAlt = IconData( - 0xe901, - fontFamily: 'GalleryIcons', - ); - static const IconData tabs = IconData( - 0xe902, - fontFamily: 'GalleryIcons', - ); - static const IconData switches = IconData( - 0xe903, - fontFamily: 'GalleryIcons', - ); - static const IconData sliders = IconData( - 0xe904, - fontFamily: 'GalleryIcons', - ); - static const IconData shrine = IconData( - 0xe905, - fontFamily: 'GalleryIcons', - ); - static const IconData sentimentVerySatisfied = IconData( - 0xe906, - fontFamily: 'GalleryIcons', - ); - static const IconData refresh = IconData( - 0xe907, - fontFamily: 'GalleryIcons', - ); - static const IconData progressActivity = IconData( - 0xe908, - fontFamily: 'GalleryIcons', - ); - static const IconData phoneIphone = IconData( - 0xe909, - fontFamily: 'GalleryIcons', - ); - static const IconData pageControl = IconData( - 0xe90a, - fontFamily: 'GalleryIcons', - ); - static const IconData moreVert = IconData( - 0xe90b, - fontFamily: 'GalleryIcons', - ); - static const IconData menu = IconData( - 0xe90c, - fontFamily: 'GalleryIcons', - ); - static const IconData listAlt = IconData( - 0xe90d, - fontFamily: 'GalleryIcons', - ); - static const IconData gridOn = IconData( - 0xe90e, - fontFamily: 'GalleryIcons', - ); - static const IconData expandAll = IconData( - 0xe90f, - fontFamily: 'GalleryIcons', - ); - static const IconData event = IconData( - 0xe910, - fontFamily: 'GalleryIcons', - ); - static const IconData driveVideo = IconData( - 0xe911, - fontFamily: 'GalleryIcons', - ); - static const IconData dialogs = IconData( - 0xe912, - fontFamily: 'GalleryIcons', - ); - static const IconData dataTable = IconData( - 0xe913, - fontFamily: 'GalleryIcons', - ); - static const IconData customTypography = IconData( - 0xe914, - fontFamily: 'GalleryIcons', - ); - static const IconData colors = IconData( - 0xe915, - fontFamily: 'GalleryIcons', - ); - static const IconData chips = IconData( - 0xe916, - fontFamily: 'GalleryIcons', - ); - static const IconData checkBox = IconData( - 0xe917, - fontFamily: 'GalleryIcons', - ); - static const IconData cards = IconData( - 0xe918, - fontFamily: 'GalleryIcons', - ); - static const IconData buttons = IconData( - 0xe919, - fontFamily: 'GalleryIcons', - ); - static const IconData bottomSheets = IconData( - 0xe91a, - fontFamily: 'GalleryIcons', - ); - static const IconData bottomNavigation = IconData( - 0xe91b, - fontFamily: 'GalleryIcons', - ); - static const IconData animation = IconData( - 0xe91c, - fontFamily: 'GalleryIcons', - ); - static const IconData accountBox = IconData( - 0xe91d, - fontFamily: 'GalleryIcons', - ); - static const IconData snackbar = IconData( - 0xe91e, - fontFamily: 'GalleryIcons', - ); - static const IconData categoryMdc = IconData( - 0xe91f, - fontFamily: 'GalleryIcons', - ); - static const IconData cupertinoProgress = IconData( - 0xe920, - fontFamily: 'GalleryIcons', - ); - static const IconData cupertinoPullToRefresh = IconData( - 0xe921, - fontFamily: 'GalleryIcons', - ); - static const IconData cupertinoSwitch = IconData( - 0xe922, - fontFamily: 'GalleryIcons', - ); - static const IconData genericButtons = IconData( - 0xe923, - fontFamily: 'GalleryIcons', - ); - static const IconData backdrop = IconData( - 0xe924, - fontFamily: 'GalleryIcons', - ); - static const IconData bottomAppBar = IconData( - 0xe925, - fontFamily: 'GalleryIcons', - ); - static const IconData bottomSheetPersistent = IconData( - 0xe926, - fontFamily: 'GalleryIcons', - ); - static const IconData listsLeaveBehind = IconData( - 0xe927, - fontFamily: 'GalleryIcons', - ); + static const IconData tooltip = IconData(0xe900, fontFamily: 'GalleryIcons'); + static const IconData textFieldsAlt = IconData(0xe901, fontFamily: 'GalleryIcons'); + static const IconData tabs = IconData(0xe902, fontFamily: 'GalleryIcons'); + static const IconData switches = IconData(0xe903, fontFamily: 'GalleryIcons'); + static const IconData sliders = IconData(0xe904, fontFamily: 'GalleryIcons'); + static const IconData shrine = IconData(0xe905, fontFamily: 'GalleryIcons'); + static const IconData sentimentVerySatisfied = IconData(0xe906, fontFamily: 'GalleryIcons'); + static const IconData refresh = IconData(0xe907, fontFamily: 'GalleryIcons'); + static const IconData progressActivity = IconData(0xe908, fontFamily: 'GalleryIcons'); + static const IconData phoneIphone = IconData(0xe909, fontFamily: 'GalleryIcons'); + static const IconData pageControl = IconData(0xe90a, fontFamily: 'GalleryIcons'); + static const IconData moreVert = IconData(0xe90b, fontFamily: 'GalleryIcons'); + static const IconData menu = IconData(0xe90c, fontFamily: 'GalleryIcons'); + static const IconData listAlt = IconData(0xe90d, fontFamily: 'GalleryIcons'); + static const IconData gridOn = IconData(0xe90e, fontFamily: 'GalleryIcons'); + static const IconData expandAll = IconData(0xe90f, fontFamily: 'GalleryIcons'); + static const IconData event = IconData(0xe910, fontFamily: 'GalleryIcons'); + static const IconData driveVideo = IconData(0xe911, fontFamily: 'GalleryIcons'); + static const IconData dialogs = IconData(0xe912, fontFamily: 'GalleryIcons'); + static const IconData dataTable = IconData(0xe913, fontFamily: 'GalleryIcons'); + static const IconData customTypography = IconData(0xe914, fontFamily: 'GalleryIcons'); + static const IconData colors = IconData(0xe915, fontFamily: 'GalleryIcons'); + static const IconData chips = IconData(0xe916, fontFamily: 'GalleryIcons'); + static const IconData checkBox = IconData(0xe917, fontFamily: 'GalleryIcons'); + static const IconData cards = IconData(0xe918, fontFamily: 'GalleryIcons'); + static const IconData buttons = IconData(0xe919, fontFamily: 'GalleryIcons'); + static const IconData bottomSheets = IconData(0xe91a, fontFamily: 'GalleryIcons'); + static const IconData bottomNavigation = IconData(0xe91b, fontFamily: 'GalleryIcons'); + static const IconData animation = IconData(0xe91c, fontFamily: 'GalleryIcons'); + static const IconData accountBox = IconData(0xe91d, fontFamily: 'GalleryIcons'); + static const IconData snackbar = IconData(0xe91e, fontFamily: 'GalleryIcons'); + static const IconData categoryMdc = IconData(0xe91f, fontFamily: 'GalleryIcons'); + static const IconData cupertinoProgress = IconData(0xe920, fontFamily: 'GalleryIcons'); + static const IconData cupertinoPullToRefresh = IconData(0xe921, fontFamily: 'GalleryIcons'); + static const IconData cupertinoSwitch = IconData(0xe922, fontFamily: 'GalleryIcons'); + static const IconData genericButtons = IconData(0xe923, fontFamily: 'GalleryIcons'); + static const IconData backdrop = IconData(0xe924, fontFamily: 'GalleryIcons'); + static const IconData bottomAppBar = IconData(0xe925, fontFamily: 'GalleryIcons'); + static const IconData bottomSheetPersistent = IconData(0xe926, fontFamily: 'GalleryIcons'); + static const IconData listsLeaveBehind = IconData(0xe927, fontFamily: 'GalleryIcons'); static const IconData navigationRail = Icons.vertical_split; static const IconData appbar = Icons.web_asset; static const IconData divider = Icons.credit_card; diff --git a/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart b/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart index bcbff0eaa08c1741bd7611acd420466e8cf96135..b1ca0191f1b9d764c28bb919c4b336c6f24eaf23 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/deferred_widget.dart @@ -14,12 +14,8 @@ typedef DeferredWidgetBuilder = Widget Function(); /// state as long as closure to create widget stays the same. /// class DeferredWidget extends StatefulWidget { - DeferredWidget( - this.libraryLoader, - this.createWidget, { - super.key, - Widget? placeholder, - }) : placeholder = placeholder ?? Container(); + DeferredWidget(this.libraryLoader, this.createWidget, {super.key, Widget? placeholder}) + : placeholder = placeholder ?? Container(); final LibraryLoader libraryLoader; final DeferredWidgetBuilder createWidget; @@ -53,8 +49,7 @@ class _DeferredWidgetState extends State { if (DeferredWidget._loadedModules.contains(widget.libraryLoader)) { _onLibraryLoaded(); } else { - DeferredWidget.preload(widget.libraryLoader) - .then((dynamic _) => _onLibraryLoaded()); + DeferredWidget.preload(widget.libraryLoader).then((dynamic _) => _onLibraryLoaded()); } super.initState(); } @@ -81,10 +76,7 @@ class _DeferredWidgetState extends State { /// Displays a progress indicator and text description explaining that /// the widget is a deferred component and is currently being installed. class DeferredLoadingPlaceholder extends StatelessWidget { - const DeferredLoadingPlaceholder({ - super.key, - this.name = 'This widget', - }); + const DeferredLoadingPlaceholder({super.key, this.name = 'This widget'}); final String name; @@ -93,23 +85,21 @@ class DeferredLoadingPlaceholder extends StatelessWidget { return Center( child: Container( decoration: BoxDecoration( - color: Colors.grey[700], - border: Border.all( - width: 20, - color: Colors.grey[700]!, - ), - borderRadius: const BorderRadius.all(Radius.circular(10))), + color: Colors.grey[700], + border: Border.all(width: 20, color: Colors.grey[700]!), + borderRadius: const BorderRadius.all(Radius.circular(10)), + ), width: 250, child: Column( mainAxisSize: MainAxisSize.min, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('$name is installing.', - style: Theme.of(context).textTheme.headlineMedium), + Text('$name is installing.', style: Theme.of(context).textTheme.headlineMedium), Container(height: 10), Text( - '$name is a deferred component which are downloaded and installed at runtime.', - style: Theme.of(context).textTheme.bodyLarge), + '$name is a deferred component which are downloaded and installed at runtime.', + style: Theme.of(context).textTheme.bodyLarge, + ), Container(height: 20), const Center(child: CircularProgressIndicator()), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart index db8bdd9912070fac244c869c098848a888cb463b..c45e3c76557f236090d221036c0dca6b13f171cc 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_activity_indicator_demo.dart @@ -15,13 +15,9 @@ class CupertinoProgressIndicatorDemo extends StatelessWidget { return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, - middle: Text( - GalleryLocalizations.of(context)!.demoCupertinoActivityIndicatorTitle, - ), - ), - child: const Center( - child: CupertinoActivityIndicator(), + middle: Text(GalleryLocalizations.of(context)!.demoCupertinoActivityIndicatorTitle), ), + child: const Center(child: CupertinoActivityIndicator()), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart index 76ef67faf74954eb86dcec74e960a51053b08d80..13fb84dcc99d425224c236ff38c4ca149008365c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_alert_demo.dart @@ -11,10 +11,7 @@ import 'demo_types.dart'; // BEGIN cupertinoAlertDemo class CupertinoAlertDemo extends StatefulWidget { - const CupertinoAlertDemo({ - super.key, - required this.type, - }); + const CupertinoAlertDemo({super.key, required this.type}); final AlertDemoType type; @@ -22,8 +19,7 @@ class CupertinoAlertDemo extends StatefulWidget { State createState() => _CupertinoAlertDemoState(); } -class _CupertinoAlertDemoState extends State - with RestorationMixin { +class _CupertinoAlertDemoState extends State with RestorationMixin { RestorableStringN lastSelectedValue = RestorableStringN(null); late RestorableRouteFuture _alertDialogRoute; late RestorableRouteFuture _alertWithTitleDialogRoute; @@ -36,18 +32,9 @@ class _CupertinoAlertDemoState extends State @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { - registerForRestoration( - lastSelectedValue, - 'last_selected_value', - ); - registerForRestoration( - _alertDialogRoute, - 'alert_demo_dialog_route', - ); - registerForRestoration( - _alertWithTitleDialogRoute, - 'alert_with_title_press_demo_dialog_route', - ); + registerForRestoration(lastSelectedValue, 'last_selected_value'); + registerForRestoration(_alertDialogRoute, 'alert_demo_dialog_route'); + registerForRestoration(_alertWithTitleDialogRoute, 'alert_with_title_press_demo_dialog_route'); registerForRestoration( _alertWithButtonsDialogRoute, 'alert_with_title_press_demo_dialog_route', @@ -56,10 +43,7 @@ class _CupertinoAlertDemoState extends State _alertWithButtonsOnlyDialogRoute, 'alert_with_title_press_demo_dialog_route', ); - registerForRestoration( - _modalPopupRoute, - 'modal_popup_route', - ); + registerForRestoration(_modalPopupRoute, 'modal_popup_route'); } void _setSelectedValue(String value) { @@ -106,186 +90,116 @@ class _CupertinoAlertDemoState extends State String _title(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return switch (widget.type) { - AlertDemoType.alert => localizations.demoCupertinoAlertTitle, - AlertDemoType.alertTitle => localizations.demoCupertinoAlertWithTitleTitle, - AlertDemoType.alertButtons => localizations.demoCupertinoAlertButtonsTitle, + AlertDemoType.alert => localizations.demoCupertinoAlertTitle, + AlertDemoType.alertTitle => localizations.demoCupertinoAlertWithTitleTitle, + AlertDemoType.alertButtons => localizations.demoCupertinoAlertButtonsTitle, AlertDemoType.alertButtonsOnly => localizations.demoCupertinoAlertButtonsOnlyTitle, - AlertDemoType.actionSheet => localizations.demoCupertinoActionSheetTitle, + AlertDemoType.actionSheet => localizations.demoCupertinoActionSheetTitle, }; } - static Route _alertDemoDialog( - BuildContext context, - Object? arguments, - ) { + static Route _alertDemoDialog(BuildContext context, Object? arguments) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return CupertinoDialogRoute( context: context, - builder: (BuildContext context) => ApplyTextOptions( - child: CupertinoAlertDialog( - title: Text(localizations.dialogDiscardTitle), - actions: [ - CupertinoDialogAction( - isDestructiveAction: true, - onPressed: () { - Navigator.of( - context, - ).pop(localizations.cupertinoAlertDiscard); - }, - child: Text( - localizations.cupertinoAlertDiscard, - ), - ), - CupertinoDialogAction( - isDefaultAction: true, - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertCancel, - ), - child: Text( - localizations.cupertinoAlertCancel, - ), + builder: + (BuildContext context) => ApplyTextOptions( + child: CupertinoAlertDialog( + title: Text(localizations.dialogDiscardTitle), + actions: [ + CupertinoDialogAction( + isDestructiveAction: true, + onPressed: () { + Navigator.of(context).pop(localizations.cupertinoAlertDiscard); + }, + child: Text(localizations.cupertinoAlertDiscard), + ), + CupertinoDialogAction( + isDefaultAction: true, + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertCancel), + child: Text(localizations.cupertinoAlertCancel), + ), + ], ), - ], - ), - ), + ), ); } - static Route _alertWithTitleDialog( - BuildContext context, - Object? arguments, - ) { + static Route _alertWithTitleDialog(BuildContext context, Object? arguments) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return CupertinoDialogRoute( context: context, - builder: (BuildContext context) => ApplyTextOptions( - child: CupertinoAlertDialog( - title: Text( - localizations.cupertinoAlertLocationTitle, - ), - content: Text( - localizations.cupertinoAlertLocationDescription, - ), - actions: [ - CupertinoDialogAction( - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertDontAllow, - ), - child: Text( - localizations.cupertinoAlertDontAllow, - ), - ), - CupertinoDialogAction( - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertAllow, - ), - child: Text( - localizations.cupertinoAlertAllow, - ), + builder: + (BuildContext context) => ApplyTextOptions( + child: CupertinoAlertDialog( + title: Text(localizations.cupertinoAlertLocationTitle), + content: Text(localizations.cupertinoAlertLocationDescription), + actions: [ + CupertinoDialogAction( + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertDontAllow), + child: Text(localizations.cupertinoAlertDontAllow), + ), + CupertinoDialogAction( + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertAllow), + child: Text(localizations.cupertinoAlertAllow), + ), + ], ), - ], - ), - ), + ), ); } - static Route _alertWithButtonsDialog( - BuildContext context, - Object? arguments, - ) { + static Route _alertWithButtonsDialog(BuildContext context, Object? arguments) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return CupertinoDialogRoute( context: context, - builder: (BuildContext context) => ApplyTextOptions( - child: CupertinoDessertDialog( - title: Text( - localizations.cupertinoAlertFavoriteDessert, - ), - content: Text( - localizations.cupertinoAlertDessertDescription, + builder: + (BuildContext context) => ApplyTextOptions( + child: CupertinoDessertDialog( + title: Text(localizations.cupertinoAlertFavoriteDessert), + content: Text(localizations.cupertinoAlertDessertDescription), + ), ), - ), - ), ); } - static Route _alertWithButtonsOnlyDialog( - BuildContext context, - Object? arguments, - ) { + static Route _alertWithButtonsOnlyDialog(BuildContext context, Object? arguments) { return CupertinoDialogRoute( context: context, - builder: (BuildContext context) => const ApplyTextOptions( - child: CupertinoDessertDialog(), - ), + builder: (BuildContext context) => const ApplyTextOptions(child: CupertinoDessertDialog()), ); } - static Route _modalRoute( - BuildContext context, - Object? arguments, - ) { + static Route _modalRoute(BuildContext context, Object? arguments) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return CupertinoModalPopupRoute( - builder: (BuildContext context) => ApplyTextOptions( - child: CupertinoActionSheet( - title: Text( - localizations.cupertinoAlertFavoriteDessert, - ), - message: Text( - localizations.cupertinoAlertDessertDescription, - ), - actions: [ - CupertinoActionSheetAction( - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertCheesecake, - ), - child: Text( - localizations.cupertinoAlertCheesecake, - ), - ), - CupertinoActionSheetAction( - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertTiramisu, - ), - child: Text( - localizations.cupertinoAlertTiramisu, - ), - ), - CupertinoActionSheetAction( - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertApplePie, - ), - child: Text( - localizations.cupertinoAlertApplePie, + builder: + (BuildContext context) => ApplyTextOptions( + child: CupertinoActionSheet( + title: Text(localizations.cupertinoAlertFavoriteDessert), + message: Text(localizations.cupertinoAlertDessertDescription), + actions: [ + CupertinoActionSheetAction( + onPressed: + () => Navigator.of(context).pop(localizations.cupertinoAlertCheesecake), + child: Text(localizations.cupertinoAlertCheesecake), + ), + CupertinoActionSheetAction( + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertTiramisu), + child: Text(localizations.cupertinoAlertTiramisu), + ), + CupertinoActionSheetAction( + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertApplePie), + child: Text(localizations.cupertinoAlertApplePie), + ), + ], + cancelButton: CupertinoActionSheetAction( + isDefaultAction: true, + onPressed: () => Navigator.of(context).pop(localizations.cupertinoAlertCancel), + child: Text(localizations.cupertinoAlertCancel), ), ), - ], - cancelButton: CupertinoActionSheetAction( - isDefaultAction: true, - onPressed: () => Navigator.of( - context, - ).pop( - localizations.cupertinoAlertCancel, - ), - child: Text( - localizations.cupertinoAlertCancel, - ), ), - ), - ), ); } @@ -300,13 +214,15 @@ class _CupertinoAlertDemoState extends State builder: (BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final Widget showAlertButton = CupertinoButton.filled( - onPressed: () => switch (widget.type) { - AlertDemoType.alert => _alertDialogRoute, - AlertDemoType.alertTitle => _alertWithTitleDialogRoute, - AlertDemoType.alertButtons => _alertWithButtonsDialogRoute, - AlertDemoType.alertButtonsOnly => _alertWithButtonsOnlyDialogRoute, - AlertDemoType.actionSheet => _modalPopupRoute, - }.present(), + onPressed: + () => + switch (widget.type) { + AlertDemoType.alert => _alertDialogRoute, + AlertDemoType.alertTitle => _alertWithTitleDialogRoute, + AlertDemoType.alertButtons => _alertWithButtonsDialogRoute, + AlertDemoType.alertButtonsOnly => _alertWithButtonsOnlyDialogRoute, + AlertDemoType.actionSheet => _modalPopupRoute, + }.present(), child: Text(localizations.cupertinoShowAlert), ); @@ -331,11 +247,7 @@ class _CupertinoAlertDemoState extends State } class CupertinoDessertDialog extends StatelessWidget { - const CupertinoDessertDialog({ - super.key, - this.title, - this.content, - }); + const CupertinoDessertDialog({super.key, this.title, this.content}); final Widget? title; final Widget? content; @@ -349,64 +261,34 @@ class CupertinoDessertDialog extends StatelessWidget { actions: [ CupertinoDialogAction( onPressed: () { - Navigator.of( - context, - ).pop( - localizations.cupertinoAlertCheesecake, - ); + Navigator.of(context).pop(localizations.cupertinoAlertCheesecake); }, - child: Text( - localizations.cupertinoAlertCheesecake, - ), + child: Text(localizations.cupertinoAlertCheesecake), ), CupertinoDialogAction( onPressed: () { - Navigator.of( - context, - ).pop( - localizations.cupertinoAlertTiramisu, - ); + Navigator.of(context).pop(localizations.cupertinoAlertTiramisu); }, - child: Text( - localizations.cupertinoAlertTiramisu, - ), + child: Text(localizations.cupertinoAlertTiramisu), ), CupertinoDialogAction( onPressed: () { - Navigator.of( - context, - ).pop( - localizations.cupertinoAlertApplePie, - ); + Navigator.of(context).pop(localizations.cupertinoAlertApplePie); }, - child: Text( - localizations.cupertinoAlertApplePie, - ), + child: Text(localizations.cupertinoAlertApplePie), ), CupertinoDialogAction( onPressed: () { - Navigator.of( - context, - ).pop( - localizations.cupertinoAlertChocolateBrownie, - ); + Navigator.of(context).pop(localizations.cupertinoAlertChocolateBrownie); }, - child: Text( - localizations.cupertinoAlertChocolateBrownie, - ), + child: Text(localizations.cupertinoAlertChocolateBrownie), ), CupertinoDialogAction( isDestructiveAction: true, onPressed: () { - Navigator.of( - context, - ).pop( - localizations.cupertinoAlertCancel, - ); + Navigator.of(context).pop(localizations.cupertinoAlertCancel); }, - child: Text( - localizations.cupertinoAlertCancel, - ), + child: Text(localizations.cupertinoAlertCancel), ), ], ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart index 971f3bc6aab4bc280a355a7d1ce50fe210e14856..5e1c5d8564eb72a5a5dfc58a848534488ef5ae96 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_button_demo.dart @@ -22,33 +22,19 @@ class CupertinoButtonDemo extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - CupertinoButton( - onPressed: () {}, - child: Text( - localizations.cupertinoButton, - ), - ), + CupertinoButton(onPressed: () {}, child: Text(localizations.cupertinoButton)), const SizedBox(height: 16), CupertinoButton.filled( onPressed: () {}, - child: Text( - localizations.cupertinoButtonWithBackground, - ), + child: Text(localizations.cupertinoButtonWithBackground), ), const SizedBox(height: 30), // Disabled buttons - CupertinoButton( - onPressed: null, - child: Text( - localizations.cupertinoButton, - ), - ), + CupertinoButton(onPressed: null, child: Text(localizations.cupertinoButton)), const SizedBox(height: 16), CupertinoButton.filled( onPressed: null, - child: Text( - localizations.cupertinoButtonWithBackground, - ), + child: Text(localizations.cupertinoButtonWithBackground), ), ], ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart index 34a70f65699c9ac1569563cd7483806b3c2c9f64..d18ae5af8d7e549a21df65b7b77569b5224ddf14 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_context_menu_demo.dart @@ -17,9 +17,7 @@ class CupertinoContextMenuDemo extends StatelessWidget { return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, - middle: Text( - galleryLocalizations.demoCupertinoContextMenuTitle, - ), + middle: Text(galleryLocalizations.demoCupertinoContextMenuTitle), ), child: Column( mainAxisAlignment: MainAxisAlignment.center, @@ -34,17 +32,13 @@ class CupertinoContextMenuDemo extends StatelessWidget { onPressed: () { Navigator.pop(context); }, - child: Text( - galleryLocalizations.demoCupertinoContextMenuActionOne, - ), + child: Text(galleryLocalizations.demoCupertinoContextMenuActionOne), ), CupertinoContextMenuAction( onPressed: () { Navigator.pop(context); }, - child: Text( - galleryLocalizations.demoCupertinoContextMenuActionTwo, - ), + child: Text(galleryLocalizations.demoCupertinoContextMenuActionTwo), ), ], child: const FlutterLogo(size: 250), @@ -57,9 +51,7 @@ class CupertinoContextMenuDemo extends StatelessWidget { child: Text( galleryLocalizations.demoCupertinoContextMenuActionText, textAlign: TextAlign.center, - style: const TextStyle( - color: Colors.black, - ), + style: const TextStyle(color: Colors.black), ), ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart index 073c1f5d876a7a1d190e60417cb40ba5966f302b..d624a59f99132275ce2fbd2536af42cbf29e2d4d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_navigation_bar_demo.dart @@ -23,8 +23,7 @@ class CupertinoNavigationBarDemo extends StatelessWidget { switch (settings.name) { case CupertinoNavigationBarDemo.homeRoute: return _NoAnimationCupertinoPageRoute( - title: GalleryLocalizations.of(context)! - .demoCupertinoNavigationBarTitle, + title: GalleryLocalizations.of(context)!.demoCupertinoNavigationBarTitle, settings: settings, builder: (BuildContext context) => _FirstPage(), ); @@ -49,29 +48,24 @@ class _FirstPage extends StatelessWidget { return CupertinoPageScaffold( child: CustomScrollView( slivers: [ - const CupertinoSliverNavigationBar( - automaticallyImplyLeading: false, - ), + const CupertinoSliverNavigationBar(automaticallyImplyLeading: false), SliverPadding( - padding: - MediaQuery.of(context).removePadding(removeTop: true).padding, + padding: MediaQuery.of(context).removePadding(removeTop: true).padding, sliver: SliverList( - delegate: SliverChildBuilderDelegate( - (BuildContext context, int index) { - final String title = GalleryLocalizations.of(context)! - .starterAppDrawerItem(index + 1); - return ListTile( - onTap: () { - Navigator.of(context).restorablePushNamed( - CupertinoNavigationBarDemo.secondPageRoute, - arguments: {'pageTitle': title}, - ); - }, - title: Text(title), - ); - }, - childCount: 20, - ), + delegate: SliverChildBuilderDelegate((BuildContext context, int index) { + final String title = GalleryLocalizations.of( + context, + )!.starterAppDrawerItem(index + 1); + return ListTile( + onTap: () { + Navigator.of(context).restorablePushNamed( + CupertinoNavigationBarDemo.secondPageRoute, + arguments: {'pageTitle': title}, + ); + }, + title: Text(title), + ); + }, childCount: 20), ), ), ], @@ -83,20 +77,13 @@ class _FirstPage extends StatelessWidget { class _SecondPage extends StatelessWidget { @override Widget build(BuildContext context) { - return CupertinoPageScaffold( - navigationBar: const CupertinoNavigationBar(), - child: Container(), - ); + return CupertinoPageScaffold(navigationBar: const CupertinoNavigationBar(), child: Container()); } } /// A CupertinoPageRoute without any transition animations. class _NoAnimationCupertinoPageRoute extends CupertinoPageRoute { - _NoAnimationCupertinoPageRoute({ - required super.builder, - super.settings, - super.title, - }); + _NoAnimationCupertinoPageRoute({required super.builder, super.settings, super.title}); @override Widget buildTransitions( diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart index d71c539b228f178d66af42225204f8137c57f8de..96c1ab167d809d1b7660bc4e0817de0aaeded1e2 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_picker_demo.dart @@ -34,25 +34,20 @@ class _CupertinoPickerDemoState extends State { final DateTime now = DateTime.now(); final DateTime firstDayOfWeek = now.subtract(Duration(days: now.weekday - 1)); return List.generate(7, (int index) => index) - .map((int value) => DateFormat(DateFormat.WEEKDAY, locale) - .format(firstDayOfWeek.add(Duration(days: value)))) + .map( + (int value) => DateFormat( + DateFormat.WEEKDAY, + locale, + ).format(firstDayOfWeek.add(Duration(days: value))), + ) .toList(); } - void _showDemoPicker({ - required BuildContext context, - required Widget child, - }) { + void _showDemoPicker({required BuildContext context, required Widget child}) { final CupertinoThemeData themeData = CupertinoTheme.of(context); - final CupertinoTheme dialogBody = CupertinoTheme( - data: themeData, - child: child, - ); + final CupertinoTheme dialogBody = CupertinoTheme(data: themeData, child: child); - showCupertinoModalPopup( - context: context, - builder: (BuildContext context) => dialogBody, - ); + showCupertinoModalPopup(context: context, builder: (BuildContext context) => dialogBody); } Widget _buildDatePicker(BuildContext context) { @@ -64,8 +59,7 @@ class _CupertinoPickerDemoState extends State { context: context, child: _BottomPicker( child: CupertinoDatePicker( - backgroundColor: - CupertinoColors.systemBackground.resolveFrom(context), + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), mode: CupertinoDatePickerMode.date, initialDateTime: date, onDateTimeChanged: (DateTime newDateTime) { @@ -97,8 +91,7 @@ class _CupertinoPickerDemoState extends State { context: context, child: _BottomPicker( child: CupertinoDatePicker( - backgroundColor: - CupertinoColors.systemBackground.resolveFrom(context), + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), mode: CupertinoDatePickerMode.time, initialDateTime: time, onDateTimeChanged: (DateTime newDateTime) { @@ -130,8 +123,7 @@ class _CupertinoPickerDemoState extends State { context: context, child: _BottomPicker( child: CupertinoDatePicker( - backgroundColor: - CupertinoColors.systemBackground.resolveFrom(context), + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), initialDateTime: dateTime, onDateTimeChanged: (DateTime newDateTime) { setState(() => dateTime = newDateTime); @@ -164,8 +156,7 @@ class _CupertinoPickerDemoState extends State { context: context, child: _BottomPicker( child: CupertinoTimerPicker( - backgroundColor: - CupertinoColors.systemBackground.resolveFrom(context), + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), initialTimerDuration: timer, onTimerDurationChanged: (Duration newTimer) { setState(() => timer = newTimer); @@ -200,8 +191,7 @@ class _CupertinoPickerDemoState extends State { context: context, child: _BottomPicker( child: CupertinoPicker( - backgroundColor: - CupertinoColors.systemBackground.resolveFrom(context), + backgroundColor: CupertinoColors.systemBackground.resolveFrom(context), itemExtent: 32.0, magnification: 1.22, squeeze: 1.2, @@ -213,11 +203,7 @@ class _CupertinoPickerDemoState extends State { }); }, children: List.generate(daysOfWeek.length, (int index) { - return Center( - child: Text( - daysOfWeek[index], - ), - ); + return Center(child: Text(daysOfWeek[index])); }), ), ), @@ -241,8 +227,7 @@ class _CupertinoPickerDemoState extends State { return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, - middle: - Text(GalleryLocalizations.of(context)!.demoCupertinoPickerTitle), + middle: Text(GalleryLocalizations.of(context)!.demoCupertinoPickerTitle), ), child: DefaultTextStyle( style: CupertinoTheme.of(context).textTheme.textStyle, @@ -271,22 +256,14 @@ class _BottomPicker extends StatelessWidget { return Container( height: 216, padding: const EdgeInsets.only(top: 6), - margin: EdgeInsets.only( - bottom: MediaQuery.of(context).viewInsets.bottom, - ), + margin: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), color: CupertinoColors.systemBackground.resolveFrom(context), child: DefaultTextStyle( - style: TextStyle( - color: CupertinoColors.label.resolveFrom(context), - fontSize: 22, - ), + style: TextStyle(color: CupertinoColors.label.resolveFrom(context), fontSize: 22), child: GestureDetector( // Blocks taps from propagating to the modal sheet and popping. onTap: () {}, - child: SafeArea( - top: false, - child: child, - ), + child: SafeArea(top: false, child: child), ), ), ); @@ -310,10 +287,7 @@ class _Menu extends StatelessWidget { height: 44, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: children, - ), + child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: children), ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart index 53f0e4318148f1d9159ffd8e01f9b2564d3b1bcd..29d9d713e2f53cdf2855a2862fd472a883ac6c23 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_scrollbar_demo.dart @@ -27,8 +27,7 @@ class CupertinoScrollbarDemo extends StatelessWidget { itemCount: 120, itemBuilder: (BuildContext context, int index) { return Center( - child: Text('item $index', - style: CupertinoTheme.of(context).textTheme.textStyle), + child: Text('item $index', style: CupertinoTheme.of(context).textTheme.textStyle), ); }, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart index 800af1668d5bb02fa563371eb5006349e56de34b..6737c6e0d2e08a9849ec4d9d4a3d14c20778f5e9 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_search_text_field_demo.dart @@ -12,20 +12,11 @@ class CupertinoSearchTextFieldDemo extends StatefulWidget { const CupertinoSearchTextFieldDemo({super.key}); @override - State createState() => - _CupertinoSearchTextFieldDemoState(); + State createState() => _CupertinoSearchTextFieldDemoState(); } -class _CupertinoSearchTextFieldDemoState - extends State { - final List platforms = [ - 'Android', - 'iOS', - 'Windows', - 'Linux', - 'MacOS', - 'Web' - ]; +class _CupertinoSearchTextFieldDemoState extends State { + final List platforms = ['Android', 'iOS', 'Windows', 'Linux', 'MacOS', 'Web']; final TextEditingController _queryTextController = TextEditingController(); String _searchPlatform = ''; @@ -65,15 +56,9 @@ class _CupertinoSearchTextFieldDemoState restorationId: 'search_text_field', padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 12), decoration: const BoxDecoration( - border: Border( - bottom: BorderSide( - width: 0, - color: CupertinoColors.inactiveGray, - ), - ), + border: Border(bottom: BorderSide(width: 0, color: CupertinoColors.inactiveGray)), ), - placeholder: - localizations.demoCupertinoSearchTextFieldPlaceholder, + placeholder: localizations.demoCupertinoSearchTextFieldPlaceholder, ), _buildPlatformList(), ], @@ -87,7 +72,7 @@ class _CupertinoSearchTextFieldDemoState final String search = _searchPlatform.toLowerCase(); filteredPlatforms = [ for (final String platform in filteredPlatforms) - if (platform.toLowerCase().contains(search)) platform + if (platform.toLowerCase().contains(search)) platform, ]; } return ListView.builder( diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart index 51ad30db4a8eefe4ee7298f3d401cdb5cff7c678..846799d6ea0a55d52ddc807c8277012998ff4a0d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_segmented_control_demo.dart @@ -12,12 +12,11 @@ class CupertinoSegmentedControlDemo extends StatefulWidget { const CupertinoSegmentedControlDemo({super.key}); @override - State createState() => - _CupertinoSegmentedControlDemoState(); + State createState() => _CupertinoSegmentedControlDemoState(); } -class _CupertinoSegmentedControlDemoState - extends State with RestorationMixin { +class _CupertinoSegmentedControlDemoState extends State + with RestorationMixin { RestorableInt currentSegment = RestorableInt(0); @override @@ -47,15 +46,10 @@ class _CupertinoSegmentedControlDemoState return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, - middle: Text( - localizations.demoCupertinoSegmentedControlTitle, - ), + middle: Text(localizations.demoCupertinoSegmentedControlTitle), ), child: DefaultTextStyle( - style: CupertinoTheme.of(context) - .textTheme - .textStyle - .copyWith(fontSize: 13), + style: CupertinoTheme.of(context).textTheme.textStyle.copyWith(fontSize: 13), child: SafeArea( child: ListView( children: [ diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart index dff7312aded9ddf5534bf35644d7e02d31ef6cf7..0b5b39a03f79c525ff00e3e39f646e08f8ba8bda 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_slider_demo.dart @@ -14,8 +14,7 @@ class CupertinoSliderDemo extends StatefulWidget { State createState() => _CupertinoSliderDemoState(); } -class _CupertinoSliderDemoState extends State - with RestorationMixin { +class _CupertinoSliderDemoState extends State with RestorationMixin { final RestorableDouble _value = RestorableDouble(25.0); final RestorableDouble _discreteValue = RestorableDouble(20.0); @@ -54,16 +53,10 @@ class _CupertinoSliderDemoState extends State }); }, ), - CupertinoSlider( - value: _value.value, - max: 100.0, - onChanged: null, - ), + CupertinoSlider(value: _value.value, max: 100.0, onChanged: null), MergeSemantics( child: Text( - localizations.demoCupertinoSliderContinuous( - _value.value.toStringAsFixed(1), - ), + localizations.demoCupertinoSliderContinuous(_value.value.toStringAsFixed(1)), ), ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart index 1ed3b250035cba791fa53bab8597179be1eabc8c..5a4dcf2990d373c05f09e6fde172c674f041dad9 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_switch_demo.dart @@ -14,8 +14,7 @@ class CupertinoSwitchDemo extends StatefulWidget { State createState() => _CupertinoSwitchDemoState(); } -class _CupertinoSwitchDemoState extends State - with RestorationMixin { +class _CupertinoSwitchDemoState extends State with RestorationMixin { final RestorableBool _switchValueA = RestorableBool(false); final RestorableBool _switchValueB = RestorableBool(true); @@ -34,9 +33,7 @@ class _CupertinoSwitchDemoState extends State return CupertinoPageScaffold( navigationBar: CupertinoNavigationBar( automaticallyImplyLeading: false, - middle: Text( - localizations.demoSelectionControlsSwitchTitle, - ), + middle: Text(localizations.demoSelectionControlsSwitchTitle), ), child: Center( child: Semantics( @@ -70,14 +67,8 @@ class _CupertinoSwitchDemoState extends State Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - CupertinoSwitch( - value: _switchValueA.value, - onChanged: null, - ), - CupertinoSwitch( - value: _switchValueB.value, - onChanged: null, - ), + CupertinoSwitch(value: _switchValueA.value, onChanged: null), + CupertinoSwitch(value: _switchValueB.value, onChanged: null), ], ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart index 3aa4b709828772c3d6ee89723049e9addecd8013..1b8a9bbcc8e7bc1239e1e3ecf281e5e6ce185aca 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_tab_bar_demo.dart @@ -22,18 +22,9 @@ class CupertinoTabBarDemo extends StatelessWidget { Widget build(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final List<_TabInfo> tabInfo = <_TabInfo>[ - _TabInfo( - localizations.cupertinoTabBarHomeTab, - CupertinoIcons.home, - ), - _TabInfo( - localizations.cupertinoTabBarChatTab, - CupertinoIcons.conversation_bubble, - ), - _TabInfo( - localizations.cupertinoTabBarProfileTab, - CupertinoIcons.profile_circled, - ), + _TabInfo(localizations.cupertinoTabBarHomeTab, CupertinoIcons.home), + _TabInfo(localizations.cupertinoTabBarChatTab, CupertinoIcons.conversation_bubble), + _TabInfo(localizations.cupertinoTabBarProfileTab, CupertinoIcons.profile_circled), ]; return DefaultTextStyle( @@ -43,19 +34,15 @@ class CupertinoTabBarDemo extends StatelessWidget { tabBar: CupertinoTabBar( items: [ for (final _TabInfo tabInfo in tabInfo) - BottomNavigationBarItem( - label: tabInfo.title, - icon: Icon(tabInfo.icon), - ), + BottomNavigationBarItem(label: tabInfo.title, icon: Icon(tabInfo.icon)), ], ), tabBuilder: (BuildContext context, int index) { return CupertinoTabView( restorationScopeId: 'cupertino_tab_view_$index', - builder: (BuildContext context) => _CupertinoDemoTab( - title: tabInfo[index].title, - icon: tabInfo[index].icon, - ), + builder: + (BuildContext context) => + _CupertinoDemoTab(title: tabInfo[index].title, icon: tabInfo[index].icon), defaultTitle: tabInfo[index].title, ); }, @@ -65,10 +52,7 @@ class CupertinoTabBarDemo extends StatelessWidget { } class _CupertinoDemoTab extends StatelessWidget { - const _CupertinoDemoTab({ - required this.title, - required this.icon, - }); + const _CupertinoDemoTab({required this.title, required this.icon}); final String title; final IconData icon; @@ -78,13 +62,7 @@ class _CupertinoDemoTab extends StatelessWidget { return CupertinoPageScaffold( navigationBar: const CupertinoNavigationBar(), backgroundColor: CupertinoColors.systemBackground, - child: Center( - child: Icon( - icon, - semanticLabel: title, - size: 100, - ), - ), + child: Center(child: Icon(icon, semanticLabel: title, size: 100)), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart index 7cf19ce337fc2adb725a5f5aa9e29cb77a6cbc72..14b20c01f5b8553630b8a61dc4aa5e7def794630 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/cupertino_text_field_demo.dart @@ -61,20 +61,12 @@ class CupertinoTextFieldDemo extends StatelessWidget { CupertinoTextField( textInputAction: TextInputAction.done, restorationId: 'pin_number_text_field', - prefix: const Icon( - CupertinoIcons.padlock_solid, - size: 28, - ), + prefix: const Icon(CupertinoIcons.padlock_solid, size: 28), padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 12), clearButtonMode: OverlayVisibilityMode.editing, keyboardType: TextInputType.number, decoration: const BoxDecoration( - border: Border( - bottom: BorderSide( - width: 0, - color: CupertinoColors.inactiveGray, - ), - ), + border: Border(bottom: BorderSide(width: 0, color: CupertinoColors.inactiveGray)), ), placeholder: localizations.demoCupertinoTextFieldPIN, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart index 04e345e2c9daa8f30c0853bc205985001a6de2f8..25a3e76c8ccfe65f03192e5d4376ac9b7c5d696b 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/cupertino/demo_types.dart @@ -2,10 +2,4 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -enum AlertDemoType { - alert, - alertTitle, - alertButtons, - alertButtonsOnly, - actionSheet, -} +enum AlertDemoType { alert, alertTitle, alertButtons, alertButtonsOnly, actionSheet } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart index 8d83f7f83c330a0265a81a1eb4f59f83da0640b1..fbc82ea9a543edd1cfff24c071cf345222f1baff 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/app_bar_demo.dart @@ -20,52 +20,30 @@ class AppBarDemo extends StatelessWidget { icon: const Icon(Icons.menu), onPressed: () {}, ), - title: Text( - localization.demoAppBarTitle, - ), + title: Text(localization.demoAppBarTitle), actions: [ IconButton( tooltip: localization.starterAppTooltipFavorite, - icon: const Icon( - Icons.favorite, - ), + icon: const Icon(Icons.favorite), onPressed: () {}, ), IconButton( tooltip: localization.starterAppTooltipSearch, - icon: const Icon( - Icons.search, - ), + icon: const Icon(Icons.search), onPressed: () {}, ), PopupMenuButton( itemBuilder: (BuildContext context) { return >[ - PopupMenuItem( - child: Text( - localization.demoNavigationRailFirst, - ), - ), - PopupMenuItem( - child: Text( - localization.demoNavigationRailSecond, - ), - ), - PopupMenuItem( - child: Text( - localization.demoNavigationRailThird, - ), - ), + PopupMenuItem(child: Text(localization.demoNavigationRailFirst)), + PopupMenuItem(child: Text(localization.demoNavigationRailSecond)), + PopupMenuItem(child: Text(localization.demoNavigationRailThird)), ]; }, - ) + ), ], ), - body: Center( - child: Text( - localization.cupertinoTabBarHomeTab, - ), - ), + body: Center(child: Text(localization.cupertinoTabBarHomeTab)), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart index fb614ba18768d4354c30607f8aa05489a20c0c26..7cad7e7108a7475ea5eb2f4dfe8a465278e2264d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/banner_demo.dart @@ -7,11 +7,7 @@ import '../../gallery_localizations.dart'; // BEGIN bannerDemo -enum BannerDemoAction { - reset, - showMultipleActions, - showLeading, -} +enum BannerDemoAction { reset, showMultipleActions, showLeading } class BannerDemo extends StatefulWidget { const BannerDemo({super.key}); @@ -66,12 +62,13 @@ class _BannerDemoState extends State with RestorationMixin { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final MaterialBanner banner = MaterialBanner( content: Text(localizations.bannerDemoText), - leading: _showLeading.value - ? CircleAvatar( - backgroundColor: colorScheme.primary, - child: Icon(Icons.access_alarm, color: colorScheme.onPrimary), - ) - : null, + leading: + _showLeading.value + ? CircleAvatar( + backgroundColor: colorScheme.primary, + child: Icon(Icons.access_alarm, color: colorScheme.onPrimary), + ) + : null, actions: [ TextButton( onPressed: () { @@ -101,23 +98,24 @@ class _BannerDemoState extends State with RestorationMixin { actions: [ PopupMenuButton( onSelected: handleDemoAction, - itemBuilder: (BuildContext context) => >[ - PopupMenuItem( - value: BannerDemoAction.reset, - child: Text(localizations.bannerDemoResetText), - ), - const PopupMenuDivider(), - CheckedPopupMenuItem( - value: BannerDemoAction.showMultipleActions, - checked: _showMultipleActions.value, - child: Text(localizations.bannerDemoMultipleText), - ), - CheckedPopupMenuItem( - value: BannerDemoAction.showLeading, - checked: _showLeading.value, - child: Text(localizations.bannerDemoLeadingText), - ), - ], + itemBuilder: + (BuildContext context) => >[ + PopupMenuItem( + value: BannerDemoAction.reset, + child: Text(localizations.bannerDemoResetText), + ), + const PopupMenuDivider(), + CheckedPopupMenuItem( + value: BannerDemoAction.showMultipleActions, + checked: _showMultipleActions.value, + child: Text(localizations.bannerDemoMultipleText), + ), + CheckedPopupMenuItem( + value: BannerDemoAction.showLeading, + checked: _showLeading.value, + child: Text(localizations.bannerDemoLeadingText), + ), + ], ), ], ), @@ -130,8 +128,7 @@ class _BannerDemoState extends State with RestorationMixin { } return ListTile( title: Text( - localizations.starterAppDrawerItem( - _displayBanner.value ? index : index + 1), + localizations.starterAppDrawerItem(_displayBanner.value ? index : index + 1), ), ); }, diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart index e6ec26e7a5844cda7abc3fd03afe7ee78720ebdc..0e1ea340ce0c4edf2364a6cc2b27f2727a23509d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_app_bar_demo.dart @@ -15,8 +15,7 @@ class BottomAppBarDemo extends StatefulWidget { State createState() => _BottomAppBarDemoState(); } -class _BottomAppBarDemoState extends State - with RestorationMixin { +class _BottomAppBarDemoState extends State with RestorationMixin { final RestorableBool _showFab = RestorableBool(true); final RestorableBool _showNotch = RestorableBool(true); final RestorableInt _currentFabLocation = RestorableInt(0); @@ -78,9 +77,7 @@ class _BottomAppBarDemoState extends State padding: const EdgeInsets.only(bottom: 88), children: [ SwitchListTile( - title: Text( - localizations.demoFloatingButtonTitle, - ), + title: Text(localizations.demoFloatingButtonTitle), value: _showFab.value, onChanged: _onShowFabChanged, ), @@ -94,50 +91,43 @@ class _BottomAppBarDemoState extends State child: Text(localizations.bottomAppBarPosition), ), RadioListTile( - title: Text( - localizations.bottomAppBarPositionDockedEnd, - ), + title: Text(localizations.bottomAppBarPositionDockedEnd), value: 0, groupValue: _currentFabLocation.value, onChanged: _onFabLocationChanged, ), RadioListTile( - title: Text( - localizations.bottomAppBarPositionDockedCenter, - ), + title: Text(localizations.bottomAppBarPositionDockedCenter), value: 1, groupValue: _currentFabLocation.value, onChanged: _onFabLocationChanged, ), RadioListTile( - title: Text( - localizations.bottomAppBarPositionFloatingEnd, - ), + title: Text(localizations.bottomAppBarPositionFloatingEnd), value: 2, groupValue: _currentFabLocation.value, onChanged: _onFabLocationChanged, ), RadioListTile( - title: Text( - localizations.bottomAppBarPositionFloatingCenter, - ), + title: Text(localizations.bottomAppBarPositionFloatingCenter), value: 3, groupValue: _currentFabLocation.value, onChanged: _onFabLocationChanged, ), ], ), - floatingActionButton: _showFab.value - ? Semantics( - container: true, - sortKey: const OrdinalSortKey(0), - child: FloatingActionButton( - onPressed: () {}, - tooltip: localizations.buttonTextCreate, - child: const Icon(Icons.add), - ), - ) - : null, + floatingActionButton: + _showFab.value + ? Semantics( + container: true, + sortKey: const OrdinalSortKey(0), + child: FloatingActionButton( + onPressed: () {}, + tooltip: localizations.buttonTextCreate, + child: const Icon(Icons.add), + ), + ) + : null, floatingActionButtonLocation: _fabLocations[_currentFabLocation.value], bottomNavigationBar: _DemoBottomAppBar( fabLocation: _fabLocations[_currentFabLocation.value], @@ -148,10 +138,7 @@ class _BottomAppBarDemoState extends State } class _DemoBottomAppBar extends StatelessWidget { - const _DemoBottomAppBar({ - required this.fabLocation, - this.shape, - }); + const _DemoBottomAppBar({required this.fabLocation, this.shape}); final FloatingActionButtonLocation fabLocation; final NotchedShape? shape; @@ -189,7 +176,7 @@ class _DemoBottomAppBar extends StatelessWidget { tooltip: localizations.starterAppTooltipFavorite, icon: const Icon(Icons.favorite), onPressed: () {}, - ) + ), ], ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart index 3f272d4e71b93e3cf66f022fb6821329f4142122..3a97a70fca923fd7d97b6b4694642c38ad02b05c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_navigation_demo.dart @@ -10,11 +10,7 @@ import 'material_demo_types.dart'; // BEGIN bottomNavigationDemo class BottomNavigationDemo extends StatefulWidget { - const BottomNavigationDemo({ - super.key, - required this.restorationId, - required this.type, - }); + const BottomNavigationDemo({super.key, required this.restorationId, required this.type}); final String restorationId; final BottomNavigationDemoType type; @@ -23,8 +19,7 @@ class BottomNavigationDemo extends StatefulWidget { State createState() => _BottomNavigationDemoState(); } -class _BottomNavigationDemoState extends State - with RestorationMixin { +class _BottomNavigationDemoState extends State with RestorationMixin { final RestorableInt _currentIndex = RestorableInt(0); @override @@ -82,20 +77,21 @@ class _BottomNavigationDemoState extends State if (widget.type == BottomNavigationDemoType.withLabels) { bottomNavigationBarItems = bottomNavigationBarItems.sublist( - 0, bottomNavigationBarItems.length - 2); - _currentIndex.value = _currentIndex.value - .clamp(0, bottomNavigationBarItems.length - 1) - ; + 0, + bottomNavigationBarItems.length - 2, + ); + _currentIndex.value = _currentIndex.value.clamp(0, bottomNavigationBarItems.length - 1); } return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), body: Center( child: PageTransitionSwitcher( - transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { return FadeThroughTransition( animation: animation, secondaryAnimation: secondaryAnimation, @@ -110,8 +106,7 @@ class _BottomNavigationDemoState extends State ), ), bottomNavigationBar: BottomNavigationBar( - showUnselectedLabels: - widget.type == BottomNavigationDemoType.withLabels, + showUnselectedLabels: widget.type == BottomNavigationDemoType.withLabels, items: bottomNavigationBarItems, currentIndex: _currentIndex.value, type: BottomNavigationBarType.fixed, @@ -131,10 +126,7 @@ class _BottomNavigationDemoState extends State } class _NavigationDestinationView extends StatelessWidget { - const _NavigationDestinationView({ - super.key, - required this.item, - }); + const _NavigationDestinationView({super.key, required this.item}); final BottomNavigationBarItem item; @@ -158,15 +150,11 @@ class _NavigationDestinationView extends StatelessWidget { ), Center( child: IconTheme( - data: const IconThemeData( - color: Colors.white, - size: 80, - ), + data: const IconThemeData(color: Colors.white, size: 80), child: Semantics( - label: GalleryLocalizations.of(context)! - .bottomNavigationContentPlaceholder( - item.label!, - ), + label: GalleryLocalizations.of( + context, + )!.bottomNavigationContentPlaceholder(item.label!), child: item.icon, ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart index 723cd0ee9c5715f3bed1eac893f1f88a2d77664b..acef5609396a5ebde364b0e2ae9aa5c189a47aa4 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/bottom_sheet_demo.dart @@ -8,10 +8,7 @@ import '../../gallery_localizations.dart'; import 'material_demo_types.dart'; class BottomSheetDemo extends StatelessWidget { - const BottomSheetDemo({ - super.key, - required this.type, - }); + const BottomSheetDemo({super.key, required this.type}); final BottomSheetDemoType type; @@ -19,14 +16,14 @@ class BottomSheetDemo extends StatelessWidget { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return switch (type) { BottomSheetDemoType.persistent => localizations.demoBottomSheetPersistentTitle, - BottomSheetDemoType.modal => localizations.demoBottomSheetModalTitle, + BottomSheetDemoType.modal => localizations.demoBottomSheetModalTitle, }; } Widget _bottomSheetDemo(BuildContext context) { return switch (type) { BottomSheetDemoType.persistent => _PersistentBottomSheetDemo(), - BottomSheetDemoType.modal => _ModalBottomSheetDemo(), + BottomSheetDemoType.modal => _ModalBottomSheetDemo(), }; } @@ -40,22 +37,19 @@ class BottomSheetDemo extends StatelessWidget { key: ValueKey(type), onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute( - builder: (BuildContext context) => Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), - floatingActionButton: FloatingActionButton( - onPressed: () {}, - backgroundColor: Theme.of(context).colorScheme.secondary, - child: Icon( - Icons.add, - semanticLabel: - GalleryLocalizations.of(context)!.demoBottomSheetAddLabel, + builder: + (BuildContext context) => Scaffold( + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), + floatingActionButton: FloatingActionButton( + onPressed: () {}, + backgroundColor: Theme.of(context).colorScheme.secondary, + child: Icon( + Icons.add, + semanticLabel: GalleryLocalizations.of(context)!.demoBottomSheetAddLabel, + ), + ), + body: _bottomSheetDemo(context), ), - ), - body: _bottomSheetDemo(context), - ), ); }, ); @@ -75,10 +69,7 @@ class _BottomSheetContent extends StatelessWidget { SizedBox( height: 70, child: Center( - child: Text( - localizations.demoBottomSheetHeader, - textAlign: TextAlign.center, - ), + child: Text(localizations.demoBottomSheetHeader, textAlign: TextAlign.center), ), ), const Divider(thickness: 1), @@ -86,9 +77,7 @@ class _BottomSheetContent extends StatelessWidget { child: ListView.builder( itemCount: 21, itemBuilder: (BuildContext context, int index) { - return ListTile( - title: Text(localizations.demoBottomSheetItem(index)), - ); + return ListTile(title: Text(localizations.demoBottomSheetItem(index))); }, ), ), @@ -119,8 +108,7 @@ class _ModalBottomSheetDemo extends StatelessWidget { onPressed: () { _showModalBottomSheet(context); }, - child: - Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), + child: Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), ), ); } @@ -132,12 +120,10 @@ class _ModalBottomSheetDemo extends StatelessWidget { class _PersistentBottomSheetDemo extends StatefulWidget { @override - _PersistentBottomSheetDemoState createState() => - _PersistentBottomSheetDemoState(); + _PersistentBottomSheetDemoState createState() => _PersistentBottomSheetDemoState(); } -class _PersistentBottomSheetDemoState - extends State<_PersistentBottomSheetDemo> { +class _PersistentBottomSheetDemoState extends State<_PersistentBottomSheetDemo> { VoidCallback? _showBottomSheetCallback; @override @@ -153,12 +139,9 @@ class _PersistentBottomSheetDemoState }); Scaffold.of(context) - .showBottomSheet( - (BuildContext context) { - return _BottomSheetContent(); - }, - elevation: 25, - ) + .showBottomSheet((BuildContext context) { + return _BottomSheetContent(); + }, elevation: 25) .closed .whenComplete(() { if (mounted) { @@ -175,8 +158,7 @@ class _PersistentBottomSheetDemoState return Center( child: ElevatedButton( onPressed: _showBottomSheetCallback, - child: - Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), + child: Text(GalleryLocalizations.of(context)!.demoBottomSheetButtonText), ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart index af05b1bc61071b95212c1491013f1c79a672c26a..048d6bf521d7975ce2385ae0b1c4f38a616dfdf3 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/button_demo.dart @@ -14,10 +14,10 @@ class ButtonDemo extends StatelessWidget { String _title(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return switch (type) { - ButtonDemoType.text => localizations.demoTextButtonTitle, + ButtonDemoType.text => localizations.demoTextButtonTitle, ButtonDemoType.elevated => localizations.demoElevatedButtonTitle, ButtonDemoType.outlined => localizations.demoOutlinedButtonTitle, - ButtonDemoType.toggle => localizations.demoToggleButtonTitle, + ButtonDemoType.toggle => localizations.demoToggleButtonTitle, ButtonDemoType.floating => localizations.demoFloatingButtonTitle, }; } @@ -25,15 +25,12 @@ class ButtonDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), body: switch (type) { - ButtonDemoType.text => _TextButtonDemo(), + ButtonDemoType.text => _TextButtonDemo(), ButtonDemoType.elevated => _ElevatedButtonDemo(), ButtonDemoType.outlined => _OutlinedButtonDemo(), - ButtonDemoType.toggle => _ToggleButtonsDemo(), + ButtonDemoType.toggle => _ToggleButtonsDemo(), ButtonDemoType.floating => _FloatingActionButtonDemo(), }, ); @@ -52,10 +49,7 @@ class _TextButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - TextButton( - onPressed: () {}, - child: Text(localizations.buttonText), - ), + TextButton(onPressed: () {}, child: Text(localizations.buttonText)), const SizedBox(width: 12), TextButton.icon( icon: const Icon(Icons.add, size: 18), @@ -69,10 +63,7 @@ class _TextButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - TextButton( - onPressed: null, - child: Text(localizations.buttonText), - ), + TextButton(onPressed: null, child: Text(localizations.buttonText)), const SizedBox(width: 12), TextButton.icon( icon: const Icon(Icons.add, size: 18), @@ -100,10 +91,7 @@ class _ElevatedButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - ElevatedButton( - onPressed: () {}, - child: Text(localizations.buttonText), - ), + ElevatedButton(onPressed: () {}, child: Text(localizations.buttonText)), const SizedBox(width: 12), ElevatedButton.icon( icon: const Icon(Icons.add, size: 18), @@ -117,10 +105,7 @@ class _ElevatedButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - ElevatedButton( - onPressed: null, - child: Text(localizations.buttonText), - ), + ElevatedButton(onPressed: null, child: Text(localizations.buttonText)), const SizedBox(width: 12), ElevatedButton.icon( icon: const Icon(Icons.add, size: 18), @@ -148,10 +133,7 @@ class _OutlinedButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - OutlinedButton( - onPressed: () {}, - child: Text(localizations.buttonText), - ), + OutlinedButton(onPressed: () {}, child: Text(localizations.buttonText)), const SizedBox(width: 12), OutlinedButton.icon( icon: const Icon(Icons.add, size: 18), @@ -165,10 +147,7 @@ class _OutlinedButtonDemo extends StatelessWidget { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - OutlinedButton( - onPressed: null, - child: Text(localizations.buttonText), - ), + OutlinedButton(onPressed: null, child: Text(localizations.buttonText)), const SizedBox(width: 12), OutlinedButton.icon( icon: const Icon(Icons.add, size: 18), @@ -191,8 +170,7 @@ class _ToggleButtonsDemo extends StatefulWidget { _ToggleButtonsDemoState createState() => _ToggleButtonsDemoState(); } -class _ToggleButtonsDemoState extends State<_ToggleButtonsDemo> - with RestorationMixin { +class _ToggleButtonsDemoState extends State<_ToggleButtonsDemo> with RestorationMixin { final List isSelected = [ RestorableBool(false), RestorableBool(true), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart index 49714bbfb2565ead01e72b5e3aabdeed199c93d6..f7a35f107c09c204385f510d2329432a052de5d2 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/cards_demo.dart @@ -9,11 +9,7 @@ const String _kGalleryAssetsPackage = 'flutter_gallery_assets'; // BEGIN cardsDemo -enum CardType { - standard, - tappable, - selectable, -} +enum CardType { standard, tappable, selectable } class TravelDestination { const TravelDestination({ @@ -69,8 +65,7 @@ List destinations(BuildContext context) { } class TravelDestinationItem extends StatelessWidget { - const TravelDestinationItem( - {super.key, required this.destination, this.shape}); + const TravelDestinationItem({super.key, required this.destination, this.shape}); // This height will allow for all the Card's content to fit comfortably within the card. static const double height = 360.0; @@ -86,9 +81,7 @@ class TravelDestinationItem extends StatelessWidget { padding: const EdgeInsets.all(8), child: Column( children: [ - SectionTitle( - title: GalleryLocalizations.of(context)! - .settingsTextScalingNormal), + SectionTitle(title: GalleryLocalizations.of(context)!.settingsTextScalingNormal), SizedBox( height: height, child: Card( @@ -109,11 +102,7 @@ class TravelDestinationItem extends StatelessWidget { } class TappableTravelDestinationItem extends StatelessWidget { - const TappableTravelDestinationItem({ - super.key, - required this.destination, - this.shape, - }); + const TappableTravelDestinationItem({super.key, required this.destination, this.shape}); // This height will allow for all the Card's content to fit comfortably within the card. static const double height = 298.0; @@ -129,8 +118,7 @@ class TappableTravelDestinationItem extends StatelessWidget { padding: const EdgeInsets.all(8), child: Column( children: [ - SectionTitle( - title: GalleryLocalizations.of(context)!.cardsDemoTappable), + SectionTitle(title: GalleryLocalizations.of(context)!.cardsDemoTappable), SizedBox( height: height, child: Card( @@ -140,8 +128,7 @@ class TappableTravelDestinationItem extends StatelessWidget { child: InkWell( onTap: () {}, // Generally, material cards use onSurface with 12% opacity for the pressed state. - splashColor: - Theme.of(context).colorScheme.onSurface.withOpacity(0.12), + splashColor: Theme.of(context).colorScheme.onSurface.withOpacity(0.12), // Generally, material cards do not have a highlight overlay. highlightColor: Colors.transparent, child: Semantics( @@ -178,9 +165,10 @@ class SelectableTravelDestinationItem extends StatelessWidget { @override Widget build(BuildContext context) { final ColorScheme colorScheme = Theme.of(context).colorScheme; - final String selectedStatus = isSelected - ? GalleryLocalizations.of(context)!.selected - : GalleryLocalizations.of(context)!.notSelected; + final String selectedStatus = + isSelected + ? GalleryLocalizations.of(context)!.selected + : GalleryLocalizations.of(context)!.notSelected; return SafeArea( top: false, @@ -207,19 +195,20 @@ class SelectableTravelDestinationItem extends StatelessWidget { child: Stack( children: [ Container( - color: isSelected - // Generally, material cards use primary with 8% opacity for the selected state. - // See: https://material.io/design/interaction/states.html#anatomy - ? colorScheme.primary.withOpacity(0.08) - : Colors.transparent, + color: + isSelected + // Generally, material cards use primary with 8% opacity for the selected state. + // See: https://material.io/design/interaction/states.html#anatomy + ? colorScheme.primary.withOpacity(0.08) + : Colors.transparent, ), Semantics( label: '${destination.title}, $selectedStatus', - onLongPressHint: isSelected - ? GalleryLocalizations.of(context)!.deselect - : GalleryLocalizations.of(context)!.select, - child: - TravelDestinationContent(destination: destination), + onLongPressHint: + isSelected + ? GalleryLocalizations.of(context)!.deselect + : GalleryLocalizations.of(context)!.select, + child: TravelDestinationContent(destination: destination), ), Align( alignment: Alignment.topRight, @@ -227,9 +216,7 @@ class SelectableTravelDestinationItem extends StatelessWidget { padding: const EdgeInsets.all(8), child: Icon( Icons.check_circle, - color: isSelected - ? colorScheme.primary - : Colors.transparent, + color: isSelected ? colorScheme.primary : Colors.transparent, ), ), ), @@ -247,10 +234,7 @@ class SelectableTravelDestinationItem extends StatelessWidget { } class SectionTitle extends StatelessWidget { - const SectionTitle({ - super.key, - required this.title, - }); + const SectionTitle({super.key, required this.title}); final String title; @@ -274,9 +258,7 @@ class TravelDestinationContent extends StatelessWidget { @override Widget build(BuildContext context) { final ThemeData theme = Theme.of(context); - final TextStyle titleStyle = theme.textTheme.headlineSmall!.copyWith( - color: Colors.white, - ); + final TextStyle titleStyle = theme.textTheme.headlineSmall!.copyWith(color: Colors.white); final TextStyle descriptionStyle = theme.textTheme.titleMedium!; final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; @@ -293,10 +275,7 @@ class TravelDestinationContent extends StatelessWidget { // part of the Material and display ink effects above it. Using // a standard Image will obscure the ink splash. child: Ink.image( - image: AssetImage( - destination.assetName, - package: destination.assetPackage, - ), + image: AssetImage(destination.assetName, package: destination.assetPackage), fit: BoxFit.cover, child: Container(), ), @@ -311,10 +290,7 @@ class TravelDestinationContent extends StatelessWidget { child: Semantics( container: true, header: true, - child: Text( - destination.title, - style: titleStyle, - ), + child: Text(destination.title, style: titleStyle), ), ), ), @@ -359,15 +335,17 @@ class TravelDestinationContent extends StatelessWidget { children: [ TextButton( onPressed: () {}, - child: Text(localizations.demoMenuShare, - semanticsLabel: localizations - .cardsDemoShareSemantics(destination.title)), + child: Text( + localizations.demoMenuShare, + semanticsLabel: localizations.cardsDemoShareSemantics(destination.title), + ), ), TextButton( onPressed: () {}, - child: Text(localizations.cardsDemoExplore, - semanticsLabel: localizations - .cardsDemoExploreSemantics(destination.title)), + child: Text( + localizations.cardsDemoExplore, + semanticsLabel: localizations.cardsDemoExploreSemantics(destination.title), + ), ), ], ), @@ -422,7 +400,10 @@ class _CardsDemoState extends State with RestorationMixin { CardType.selectable => SelectableTravelDestinationItem( destination: destination, isSelected: _isSelected.value, - onSelected: () => setState(() { _isSelected.value = !_isSelected.value; }), + onSelected: + () => setState(() { + _isSelected.value = !_isSelected.value; + }), ), }, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart index 86a277a452ef0b251f00d273f34e95c4c39d2076..ed99ce4592a92c07b0a6db285defde6d891ee14e 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/chip_demo.dart @@ -7,10 +7,7 @@ import '../../gallery_localizations.dart'; import 'material_demo_types.dart'; class ChipDemo extends StatelessWidget { - const ChipDemo({ - super.key, - required this.type, - }); + const ChipDemo({super.key, required this.type}); final ChipDemoType type; @@ -20,22 +17,19 @@ class ChipDemo extends StatelessWidget { ChipDemoType.action => localizations.demoActionChipTitle, ChipDemoType.choice => localizations.demoChoiceChipTitle, ChipDemoType.filter => localizations.demoFilterChipTitle, - ChipDemoType.input => localizations.demoInputChipTitle, + ChipDemoType.input => localizations.demoInputChipTitle, }; } @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), body: switch (type) { ChipDemoType.action => _ActionChipDemo(), ChipDemoType.choice => _ChoiceChipDemo(), ChipDemoType.filter => _FilterChipDemo(), - ChipDemoType.input => _InputChipDemo(), + ChipDemoType.input => _InputChipDemo(), }, ); } @@ -49,10 +43,7 @@ class _ActionChipDemo extends StatelessWidget { return Center( child: ActionChip( onPressed: () {}, - avatar: const Icon( - Icons.brightness_5, - color: Colors.black54, - ), + avatar: const Icon(Icons.brightness_5, color: Colors.black54), label: Text(GalleryLocalizations.of(context)!.chipTurnOnLights), ), ); @@ -68,8 +59,7 @@ class _ChoiceChipDemo extends StatefulWidget { _ChoiceChipDemoState createState() => _ChoiceChipDemoState(); } -class _ChoiceChipDemoState extends State<_ChoiceChipDemo> - with RestorationMixin { +class _ChoiceChipDemoState extends State<_ChoiceChipDemo> with RestorationMixin { final RestorableIntN _indexSelected = RestorableIntN(null); @override @@ -130,20 +120,14 @@ class _ChoiceChipDemoState extends State<_ChoiceChipDemo> // Disabled chips Wrap( children: [ - ChoiceChip( - label: Text(localizations.chipSmall), - selected: _indexSelected.value == 0, - ), + ChoiceChip(label: Text(localizations.chipSmall), selected: _indexSelected.value == 0), const SizedBox(width: 8), ChoiceChip( label: Text(localizations.chipMedium), selected: _indexSelected.value == 1, ), const SizedBox(width: 8), - ChoiceChip( - label: Text(localizations.chipLarge), - selected: _indexSelected.value == 2, - ), + ChoiceChip(label: Text(localizations.chipLarge), selected: _indexSelected.value == 2), ], ), ], @@ -161,8 +145,7 @@ class _FilterChipDemo extends StatefulWidget { _FilterChipDemoState createState() => _FilterChipDemoState(); } -class _FilterChipDemoState extends State<_FilterChipDemo> - with RestorationMixin { +class _FilterChipDemoState extends State<_FilterChipDemo> with RestorationMixin { final RestorableBool isSelectedElevator = RestorableBool(false); final RestorableBool isSelectedWasher = RestorableBool(false); final RestorableBool isSelectedFireplace = RestorableBool(false); @@ -267,22 +250,14 @@ class _InputChipDemo extends StatelessWidget { InputChip( onPressed: () {}, onDeleted: () {}, - avatar: const Icon( - Icons.directions_bike, - size: 20, - color: Colors.black54, - ), + avatar: const Icon(Icons.directions_bike, size: 20, color: Colors.black54), deleteIconColor: Colors.black54, label: Text(GalleryLocalizations.of(context)!.chipBiking), ), const SizedBox(height: 12), // Disabled chip InputChip( - avatar: const Icon( - Icons.directions_bike, - size: 20, - color: Colors.black54, - ), + avatar: const Icon(Icons.directions_bike, size: 20, color: Colors.black54), deleteIconColor: Colors.black54, label: Text(GalleryLocalizations.of(context)!.chipBiking), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart index ad4c46e6de30e4bcd0ac3f32097ea761aea3384e..90c920a27a719ea6770263e936327f724e07462c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/data_table_demo.dart @@ -39,9 +39,7 @@ class _RestorableDessertSelections extends RestorableProperty> { @override Set fromPrimitives(Object? data) { final List selectedItemIndices = data! as List; - _dessertSelections = { - ...selectedItemIndices.map((dynamic id) => id as int), - }; + _dessertSelections = {...selectedItemIndices.map((dynamic id) => id as int)}; return _dessertSelections; } @@ -55,11 +53,9 @@ class _RestorableDessertSelections extends RestorableProperty> { } class _DataTableDemoState extends State with RestorationMixin { - final _RestorableDessertSelections _dessertSelections = - _RestorableDessertSelections(); + final _RestorableDessertSelections _dessertSelections = _RestorableDessertSelections(); final RestorableInt _rowIndex = RestorableInt(0); - final RestorableInt _rowsPerPage = - RestorableInt(PaginatedDataTable.defaultRowsPerPage); + final RestorableInt _rowsPerPage = RestorableInt(PaginatedDataTable.defaultRowsPerPage); final RestorableBool _sortAscending = RestorableBool(true); final RestorableIntN _sortColumnIndex = RestorableIntN(null); _DessertDataSource? _dessertsDataSource; @@ -80,8 +76,7 @@ class _DataTableDemoState extends State with RestorationMixin { case 0: _dessertsDataSource!._sort((_Dessert d) => d.name, _sortAscending.value); case 1: - _dessertsDataSource! - ._sort((_Dessert d) => d.calories, _sortAscending.value); + _dessertsDataSource!._sort((_Dessert d) => d.calories, _sortAscending.value); case 2: _dessertsDataSource!._sort((_Dessert d) => d.fat, _sortAscending.value); case 3: @@ -110,11 +105,7 @@ class _DataTableDemoState extends State with RestorationMixin { _dessertSelections.setDessertSelections(_dessertsDataSource!._desserts); } - void _sort( - Comparable Function(_Dessert d) getField, - int columnIndex, - bool ascending, - ) { + void _sort(Comparable Function(_Dessert d) getField, int columnIndex, bool ascending) { _dessertsDataSource!._sort(getField, ascending); setState(() { _sortColumnIndex.value = columnIndex; @@ -165,50 +156,58 @@ class _DataTableDemoState extends State with RestorationMixin { columns: [ DataColumn( label: Text(localizations.dataTableColumnDessert), - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.name, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.name, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnCalories), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.calories, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.calories, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnFat), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.fat, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.fat, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnCarbs), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.carbs, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.carbs, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnProtein), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.protein, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.protein, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnSodium), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.sodium, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.sodium, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnCalcium), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.calcium, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.calcium, columnIndex, ascending), ), DataColumn( label: Text(localizations.dataTableColumnIron), numeric: true, - onSort: (int columnIndex, bool ascending) => - _sort((_Dessert d) => d.iron, columnIndex, ascending), + onSort: + (int columnIndex, bool ascending) => + _sort((_Dessert d) => d.iron, columnIndex, ascending), ), ], source: _dessertsDataSource!, @@ -247,110 +246,18 @@ class _DessertDataSource extends DataTableSource { _DessertDataSource(this.context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; _desserts = <_Dessert>[ + _Dessert(localizations.dataTableRowFrozenYogurt, 159, 6.0, 24, 4.0, 87, 14, 1), + _Dessert(localizations.dataTableRowIceCreamSandwich, 237, 9.0, 37, 4.3, 129, 8, 1), + _Dessert(localizations.dataTableRowEclair, 262, 16.0, 24, 6.0, 337, 6, 7), + _Dessert(localizations.dataTableRowCupcake, 305, 3.7, 67, 4.3, 413, 3, 8), + _Dessert(localizations.dataTableRowGingerbread, 356, 16.0, 49, 3.9, 327, 7, 16), + _Dessert(localizations.dataTableRowJellyBean, 375, 0.0, 94, 0.0, 50, 0, 0), + _Dessert(localizations.dataTableRowLollipop, 392, 0.2, 98, 0.0, 38, 0, 2), + _Dessert(localizations.dataTableRowHoneycomb, 408, 3.2, 87, 6.5, 562, 0, 45), + _Dessert(localizations.dataTableRowDonut, 452, 25.0, 51, 4.9, 326, 2, 22), + _Dessert(localizations.dataTableRowApplePie, 518, 26.0, 65, 7.0, 54, 12, 6), _Dessert( - localizations.dataTableRowFrozenYogurt, - 159, - 6.0, - 24, - 4.0, - 87, - 14, - 1, - ), - _Dessert( - localizations.dataTableRowIceCreamSandwich, - 237, - 9.0, - 37, - 4.3, - 129, - 8, - 1, - ), - _Dessert( - localizations.dataTableRowEclair, - 262, - 16.0, - 24, - 6.0, - 337, - 6, - 7, - ), - _Dessert( - localizations.dataTableRowCupcake, - 305, - 3.7, - 67, - 4.3, - 413, - 3, - 8, - ), - _Dessert( - localizations.dataTableRowGingerbread, - 356, - 16.0, - 49, - 3.9, - 327, - 7, - 16, - ), - _Dessert( - localizations.dataTableRowJellyBean, - 375, - 0.0, - 94, - 0.0, - 50, - 0, - 0, - ), - _Dessert( - localizations.dataTableRowLollipop, - 392, - 0.2, - 98, - 0.0, - 38, - 0, - 2, - ), - _Dessert( - localizations.dataTableRowHoneycomb, - 408, - 3.2, - 87, - 6.5, - 562, - 0, - 45, - ), - _Dessert( - localizations.dataTableRowDonut, - 452, - 25.0, - 51, - 4.9, - 326, - 2, - 22, - ), - _Dessert( - localizations.dataTableRowApplePie, - 518, - 26.0, - 65, - 7.0, - 54, - 12, - 6, - ), - _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowFrozenYogurt, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowFrozenYogurt), 168, 6.0, 26, @@ -360,9 +267,7 @@ class _DessertDataSource extends DataTableSource { 1, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowIceCreamSandwich, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowIceCreamSandwich), 246, 9.0, 39, @@ -372,9 +277,7 @@ class _DessertDataSource extends DataTableSource { 1, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowEclair, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowEclair), 271, 16.0, 26, @@ -384,9 +287,7 @@ class _DessertDataSource extends DataTableSource { 7, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowCupcake, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowCupcake), 314, 3.7, 69, @@ -396,9 +297,7 @@ class _DessertDataSource extends DataTableSource { 8, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowGingerbread, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowGingerbread), 345, 16.0, 51, @@ -408,9 +307,7 @@ class _DessertDataSource extends DataTableSource { 16, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowJellyBean, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowJellyBean), 364, 0.0, 96, @@ -420,9 +317,7 @@ class _DessertDataSource extends DataTableSource { 0, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowLollipop, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowLollipop), 401, 0.2, 100, @@ -432,9 +327,7 @@ class _DessertDataSource extends DataTableSource { 2, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowHoneycomb, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowHoneycomb), 417, 3.2, 89, @@ -444,9 +337,7 @@ class _DessertDataSource extends DataTableSource { 45, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowDonut, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowDonut), 461, 25.0, 53, @@ -456,9 +347,7 @@ class _DessertDataSource extends DataTableSource { 22, ), _Dessert( - localizations.dataTableRowWithSugar( - localizations.dataTableRowApplePie, - ), + localizations.dataTableRowWithSugar(localizations.dataTableRowApplePie), 527, 26.0, 67, @@ -468,9 +357,7 @@ class _DessertDataSource extends DataTableSource { 6, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowFrozenYogurt, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowFrozenYogurt), 223, 6.0, 36, @@ -480,9 +367,7 @@ class _DessertDataSource extends DataTableSource { 1, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowIceCreamSandwich, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowIceCreamSandwich), 301, 9.0, 49, @@ -492,9 +377,7 @@ class _DessertDataSource extends DataTableSource { 1, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowEclair, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowEclair), 326, 16.0, 36, @@ -504,9 +387,7 @@ class _DessertDataSource extends DataTableSource { 7, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowCupcake, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowCupcake), 369, 3.7, 79, @@ -516,9 +397,7 @@ class _DessertDataSource extends DataTableSource { 8, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowGingerbread, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowGingerbread), 420, 16.0, 61, @@ -528,9 +407,7 @@ class _DessertDataSource extends DataTableSource { 16, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowJellyBean, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowJellyBean), 439, 0.0, 106, @@ -540,9 +417,7 @@ class _DessertDataSource extends DataTableSource { 0, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowLollipop, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowLollipop), 456, 0.2, 110, @@ -552,9 +427,7 @@ class _DessertDataSource extends DataTableSource { 2, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowHoneycomb, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowHoneycomb), 472, 3.2, 99, @@ -564,9 +437,7 @@ class _DessertDataSource extends DataTableSource { 45, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowDonut, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowDonut), 516, 25.0, 63, @@ -576,9 +447,7 @@ class _DessertDataSource extends DataTableSource { 22, ), _Dessert( - localizations.dataTableRowWithHoney( - localizations.dataTableRowApplePie, - ), + localizations.dataTableRowWithHoney(localizations.dataTableRowApplePie), 582, 26.0, 77, @@ -597,9 +466,7 @@ class _DessertDataSource extends DataTableSource { _desserts.sort((_Dessert a, _Dessert b) { final Comparable aValue = getField(a); final Comparable bValue = getField(b); - return ascending - ? Comparable.compare(aValue, bValue) - : Comparable.compare(bValue, aValue); + return ascending ? Comparable.compare(aValue, bValue) : Comparable.compare(bValue, aValue); }); notifyListeners(); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart index 19a3cdc17aea88784e55076c9a873fd224e18051..4a003d0d068b5d6ad8d32fb54fc9b2601dbfac21 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/dialog_demo.dart @@ -29,18 +29,9 @@ class _DialogDemoState extends State with RestorationMixin { @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { - registerForRestoration( - _alertDialogRoute, - 'alert_demo_dialog_route', - ); - registerForRestoration( - _alertDialogWithTitleRoute, - 'alert_demo_with_title_dialog_route', - ); - registerForRestoration( - _simpleDialogRoute, - 'simple_dialog_route', - ); + registerForRestoration(_alertDialogRoute, 'alert_demo_dialog_route'); + registerForRestoration(_alertDialogWithTitleRoute, 'alert_demo_with_title_dialog_route'); + registerForRestoration(_simpleDialogRoute, 'simple_dialog_route'); } // Displays the popped String value in a SnackBar. @@ -48,11 +39,7 @@ class _DialogDemoState extends State with RestorationMixin { // The value passed to Navigator.pop() or null. ScaffoldMessenger.of(context).hideCurrentSnackBar(); ScaffoldMessenger.of(context).showSnackBar( - SnackBar( - content: Text( - GalleryLocalizations.of(context)!.dialogSelectedOption(value), - ), - ), + SnackBar(content: Text(GalleryLocalizations.of(context)!.dialogSelectedOption(value))), ); } @@ -82,47 +69,41 @@ class _DialogDemoState extends State with RestorationMixin { String _title(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return switch (widget.type) { - DialogDemoType.alert => localizations.demoAlertDialogTitle, + DialogDemoType.alert => localizations.demoAlertDialogTitle, DialogDemoType.alertTitle => localizations.demoAlertTitleDialogTitle, - DialogDemoType.simple => localizations.demoSimpleDialogTitle, + DialogDemoType.simple => localizations.demoSimpleDialogTitle, DialogDemoType.fullscreen => localizations.demoFullscreenDialogTitle, }; } - static Route _alertDialogDemoRoute( - BuildContext context, - Object? arguments, - ) { + static Route _alertDialogDemoRoute(BuildContext context, Object? arguments) { final ThemeData theme = Theme.of(context); - final TextStyle dialogTextStyle = theme.textTheme.titleMedium! - .copyWith(color: theme.textTheme.bodySmall!.color); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium!.copyWith( + color: theme.textTheme.bodySmall!.color, + ); return DialogRoute( context: context, builder: (BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return ApplyTextOptions( - child: AlertDialog( - content: Text( - localizations.dialogDiscardTitle, - style: dialogTextStyle, + child: AlertDialog( + content: Text(localizations.dialogDiscardTitle, style: dialogTextStyle), + actions: [ + _DialogButton(text: localizations.dialogCancel), + _DialogButton(text: localizations.dialogDiscard), + ], ), - actions: [ - _DialogButton(text: localizations.dialogCancel), - _DialogButton(text: localizations.dialogDiscard), - ], - )); + ); }, ); } - static Route _alertDialogWithTitleDemoRoute( - BuildContext context, - Object? arguments, - ) { + static Route _alertDialogWithTitleDemoRoute(BuildContext context, Object? arguments) { final ThemeData theme = Theme.of(context); - final TextStyle dialogTextStyle = theme.textTheme.titleMedium! - .copyWith(color: theme.textTheme.bodySmall!.color); + final TextStyle dialogTextStyle = theme.textTheme.titleMedium!.copyWith( + color: theme.textTheme.bodySmall!.color, + ); return DialogRoute( context: context, @@ -131,10 +112,7 @@ class _DialogDemoState extends State with RestorationMixin { return ApplyTextOptions( child: AlertDialog( title: Text(localizations.dialogLocationTitle), - content: Text( - localizations.dialogLocationDescription, - style: dialogTextStyle, - ), + content: Text(localizations.dialogLocationDescription, style: dialogTextStyle), actions: [ _DialogButton(text: localizations.dialogDisagree), _DialogButton(text: localizations.dialogAgree), @@ -145,43 +123,38 @@ class _DialogDemoState extends State with RestorationMixin { ); } - static Route _simpleDialogDemoRoute( - BuildContext context, - Object? arguments, - ) { + static Route _simpleDialogDemoRoute(BuildContext context, Object? arguments) { final ThemeData theme = Theme.of(context); return DialogRoute( context: context, - builder: (BuildContext context) => ApplyTextOptions( - child: SimpleDialog( - title: Text(GalleryLocalizations.of(context)!.dialogSetBackup), - children: [ - _DialogDemoItem( - icon: Icons.account_circle, - color: theme.colorScheme.primary, - text: 'username@gmail.com', - ), - _DialogDemoItem( - icon: Icons.account_circle, - color: theme.colorScheme.secondary, - text: 'user02@gmail.com', - ), - _DialogDemoItem( - icon: Icons.add_circle, - text: GalleryLocalizations.of(context)!.dialogAddAccount, - color: theme.disabledColor, + builder: + (BuildContext context) => ApplyTextOptions( + child: SimpleDialog( + title: Text(GalleryLocalizations.of(context)!.dialogSetBackup), + children: [ + _DialogDemoItem( + icon: Icons.account_circle, + color: theme.colorScheme.primary, + text: 'username@gmail.com', + ), + _DialogDemoItem( + icon: Icons.account_circle, + color: theme.colorScheme.secondary, + text: 'user02@gmail.com', + ), + _DialogDemoItem( + icon: Icons.add_circle, + text: GalleryLocalizations.of(context)!.dialogAddAccount, + color: theme.disabledColor, + ), + ], ), - ], - ), - ), + ), ); } - static Route _fullscreenDialogRoute( - BuildContext context, - Object? arguments, - ) { + static Route _fullscreenDialogRoute(BuildContext context, Object? arguments) { return MaterialPageRoute( builder: (BuildContext context) => _FullScreenDialogDemo(), fullscreenDialog: true, @@ -198,30 +171,27 @@ class _DialogDemoState extends State with RestorationMixin { onGenerateRoute: (RouteSettings settings) { return _NoAnimationMaterialPageRoute( settings: settings, - builder: (BuildContext context) => Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), - body: Center( - child: ElevatedButton( - onPressed: () { - switch (widget.type) { - case DialogDemoType.alert: - _alertDialogRoute.present(); - case DialogDemoType.alertTitle: - _alertDialogWithTitleRoute.present(); - case DialogDemoType.simple: - _simpleDialogRoute.present(); - case DialogDemoType.fullscreen: - Navigator.restorablePush( - context, _fullscreenDialogRoute); - } - }, - child: Text(GalleryLocalizations.of(context)!.dialogShow), + builder: + (BuildContext context) => Scaffold( + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), + body: Center( + child: ElevatedButton( + onPressed: () { + switch (widget.type) { + case DialogDemoType.alert: + _alertDialogRoute.present(); + case DialogDemoType.alertTitle: + _alertDialogWithTitleRoute.present(); + case DialogDemoType.simple: + _simpleDialogRoute.present(); + case DialogDemoType.fullscreen: + Navigator.restorablePush(context, _fullscreenDialogRoute); + } + }, + child: Text(GalleryLocalizations.of(context)!.dialogShow), + ), + ), ), - ), - ), ); }, ); @@ -265,11 +235,7 @@ class _DialogButton extends StatelessWidget { } class _DialogDemoItem extends StatelessWidget { - const _DialogDemoItem({ - this.icon, - this.color, - required this.text, - }); + const _DialogDemoItem({this.icon, this.color, required this.text}); final IconData? icon; final Color? color; @@ -285,10 +251,7 @@ class _DialogDemoItem extends StatelessWidget { children: [ Icon(icon, size: 36, color: color), Flexible( - child: Padding( - padding: const EdgeInsetsDirectional.only(start: 16), - child: Text(text), - ), + child: Padding(padding: const EdgeInsetsDirectional.only(start: 16), child: Text(text)), ), ], ), @@ -319,18 +282,12 @@ class _FullScreenDialogDemo extends StatelessWidget { }, child: Text( localizations.dialogFullscreenSave, - style: theme.textTheme.bodyMedium!.copyWith( - color: theme.colorScheme.onPrimary, - ), + style: theme.textTheme.bodyMedium!.copyWith(color: theme.colorScheme.onPrimary), ), ), ], ), - body: Center( - child: Text( - localizations.dialogFullscreenDescription, - ), - ), + body: Center(child: Text(localizations.dialogFullscreenDescription)), ), ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart index b078cda22aa38bd7d650ec5a7fa8dfc84dfc6ea2..0fca1f75997a281ae8bf768a93e6d6393ab19f01 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/divider_demo.dart @@ -17,16 +17,14 @@ class DividerDemo extends StatelessWidget { return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, - title: Text( - switch (type) { - DividerDemoType.horizontal => localizations.demoDividerTitle, - DividerDemoType.vertical => localizations.demoVerticalDividerTitle, - }, - ), + title: Text(switch (type) { + DividerDemoType.horizontal => localizations.demoDividerTitle, + DividerDemoType.vertical => localizations.demoVerticalDividerTitle, + }), ), body: switch (type) { DividerDemoType.horizontal => _HorizontalDividerDemo(), - DividerDemoType.vertical => _VerticalDividerDemo(), + DividerDemoType.vertical => _VerticalDividerDemo(), }, ); } @@ -49,13 +47,7 @@ class _HorizontalDividerDemo extends StatelessWidget { ), ), ), - const Divider( - color: Colors.grey, - height: 20, - thickness: 1, - indent: 20, - endIndent: 0, - ), + const Divider(color: Colors.grey, height: 20, thickness: 1, indent: 20, endIndent: 0), Expanded( child: Container( decoration: BoxDecoration( diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart index 81951e79b591eed9790e5b4bb6a01f5a0a25c609..a906b1a4c2857ee29ff122e601f4fd2cef16232c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/grid_list_demo.dart @@ -92,23 +92,17 @@ class GridListDemo extends StatelessWidget { mainAxisSpacing: 8, crossAxisSpacing: 8, padding: const EdgeInsets.all(8), - children: _photos(context).map((_Photo photo) { - return _GridDemoPhotoItem( - photo: photo, - tileStyle: type, - ); - }).toList(), + children: + _photos(context).map((_Photo photo) { + return _GridDemoPhotoItem(photo: photo, tileStyle: type); + }).toList(), ), ); } } class _Photo { - _Photo({ - required this.assetName, - required this.title, - required this.subtitle, - }); + _Photo({required this.assetName, required this.title, required this.subtitle}); final String assetName; final String title; @@ -132,10 +126,7 @@ class _GridTitleText extends StatelessWidget { } class _GridDemoPhotoItem extends StatelessWidget { - const _GridDemoPhotoItem({ - required this.photo, - required this.tileStyle, - }); + const _GridDemoPhotoItem({required this.photo, required this.tileStyle}); final _Photo photo; final GridListDemoType tileStyle; @@ -147,11 +138,7 @@ class _GridDemoPhotoItem extends StatelessWidget { child: Material( shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)), clipBehavior: Clip.antiAlias, - child: Image.asset( - photo.assetName, - package: 'flutter_gallery_assets', - fit: BoxFit.cover, - ), + child: Image.asset(photo.assetName, package: 'flutter_gallery_assets', fit: BoxFit.cover), ), ); @@ -166,10 +153,7 @@ class _GridDemoPhotoItem extends StatelessWidget { borderRadius: BorderRadius.vertical(top: Radius.circular(4)), ), clipBehavior: Clip.antiAlias, - child: GridTileBar( - title: _GridTitleText(photo.title), - backgroundColor: Colors.black45, - ), + child: GridTileBar(title: _GridTitleText(photo.title), backgroundColor: Colors.black45), ), child: image, ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart index 04c2b25f106ee219837550c88bd8f057b4be6199..19b66c5f734354832ae4c9a4bf62ea4485df5935 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/list_demo.dart @@ -18,10 +18,7 @@ class ListDemo extends StatelessWidget { Widget build(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(localizations.demoListsTitle), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(localizations.demoListsTitle)), body: Scrollbar( child: ListView( restorationId: 'list_demo_list_view', @@ -29,15 +26,10 @@ class ListDemo extends StatelessWidget { children: [ for (int index = 1; index < 21; index++) ListTile( - leading: ExcludeSemantics( - child: CircleAvatar(child: Text('$index')), - ), - title: Text( - localizations.demoBottomSheetItem(index), - ), - subtitle: type == ListDemoType.twoLine - ? Text(localizations.demoListsSecondary) - : null, + leading: ExcludeSemantics(child: CircleAvatar(child: Text('$index'))), + title: Text(localizations.demoBottomSheetItem(index)), + subtitle: + type == ListDemoType.twoLine ? Text(localizations.demoListsSecondary) : null, ), ], ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart index dbe3449931240d99c5fac48f865279e558be1552..f4d0b502aad56df77ef024a5b5467108b92ce078 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/material_demo_types.dart @@ -2,85 +2,30 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -enum BottomNavigationDemoType { - withLabels, - withoutLabels, -} +enum BottomNavigationDemoType { withLabels, withoutLabels } -enum BottomSheetDemoType { - persistent, - modal, -} +enum BottomSheetDemoType { persistent, modal } -enum ButtonDemoType { - text, - elevated, - outlined, - toggle, - floating, -} +enum ButtonDemoType { text, elevated, outlined, toggle, floating } -enum ChipDemoType { - action, - choice, - filter, - input, -} +enum ChipDemoType { action, choice, filter, input } -enum DialogDemoType { - alert, - alertTitle, - simple, - fullscreen, -} +enum DialogDemoType { alert, alertTitle, simple, fullscreen } -enum GridListDemoType { - imageOnly, - header, - footer, -} +enum GridListDemoType { imageOnly, header, footer } -enum ListDemoType { - oneLine, - twoLine, -} +enum ListDemoType { oneLine, twoLine } -enum MenuDemoType { - contextMenu, - sectionedMenu, - simpleMenu, - checklistMenu, -} +enum MenuDemoType { contextMenu, sectionedMenu, simpleMenu, checklistMenu } -enum PickerDemoType { - date, - time, - range, -} +enum PickerDemoType { date, time, range } -enum ProgressIndicatorDemoType { - circular, - linear, -} +enum ProgressIndicatorDemoType { circular, linear } -enum SelectionControlsDemoType { - checkbox, - radio, - switches, -} +enum SelectionControlsDemoType { checkbox, radio, switches } -enum SlidersDemoType { - sliders, - rangeSliders, - customSliders, -} +enum SlidersDemoType { sliders, rangeSliders, customSliders } -enum TabsDemoType { - scrollable, - nonScrollable, -} +enum TabsDemoType { scrollable, nonScrollable } -enum DividerDemoType { - horizontal, - vertical, -} +enum DividerDemoType { horizontal, vertical } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart index 56d44f09427f355b5d6ed32a066c13a2f6352c8a..86dad27b5d11f00b5da2fdfe393da95a1ff1b8d1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/menu_demo.dart @@ -7,18 +7,9 @@ import 'package:flutter/material.dart'; import '../../gallery_localizations.dart'; import 'material_demo_types.dart'; -enum SimpleValue { - one, - two, - three, -} +enum SimpleValue { one, two, three } -enum CheckedValue { - one, - two, - three, - four, -} +enum CheckedValue { one, two, three, four } class MenuDemo extends StatefulWidget { const MenuDemo({super.key, required this.type}); @@ -32,9 +23,7 @@ class MenuDemo extends StatefulWidget { class _MenuDemoState extends State { void showInSnackBar(String value) { ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text(value), - )); + ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(value))); } @override @@ -58,9 +47,7 @@ class _MenuDemoState extends State { ), body: Padding( padding: const EdgeInsets.symmetric(horizontal: 20), - child: Center( - child: demo, - ), + child: Center(child: demo), ), ); } @@ -83,29 +70,22 @@ class _ContextMenuDemo extends StatelessWidget { title: Text(localizations.demoMenuAnItemWithAContextMenuButton), trailing: PopupMenuButton( padding: EdgeInsets.zero, - onSelected: (String value) => showInSnackBar( - localizations.demoMenuSelected(value), - ), - itemBuilder: (BuildContext context) => >[ - PopupMenuItem( - value: localizations.demoMenuContextMenuItemOne, - child: Text( - localizations.demoMenuContextMenuItemOne, - ), - ), - PopupMenuItem( - enabled: false, - child: Text( - localizations.demoMenuADisabledMenuItem, - ), - ), - PopupMenuItem( - value: localizations.demoMenuContextMenuItemThree, - child: Text( - localizations.demoMenuContextMenuItemThree, - ), - ), - ], + onSelected: (String value) => showInSnackBar(localizations.demoMenuSelected(value)), + itemBuilder: + (BuildContext context) => >[ + PopupMenuItem( + value: localizations.demoMenuContextMenuItemOne, + child: Text(localizations.demoMenuContextMenuItemOne), + ), + PopupMenuItem( + enabled: false, + child: Text(localizations.demoMenuADisabledMenuItem), + ), + PopupMenuItem( + value: localizations.demoMenuContextMenuItemThree, + child: Text(localizations.demoMenuContextMenuItemThree), + ), + ], ), ); } @@ -130,47 +110,39 @@ class _SectionedMenuDemo extends StatelessWidget { title: Text(localizations.demoMenuAnItemWithASectionedMenu), trailing: PopupMenuButton( padding: EdgeInsets.zero, - onSelected: (String value) => - showInSnackBar(localizations.demoMenuSelected(value)), - itemBuilder: (BuildContext context) => >[ - PopupMenuItem( - value: localizations.demoMenuPreview, - child: ListTile( - leading: const Icon(Icons.visibility), - title: Text( - localizations.demoMenuPreview, + onSelected: (String value) => showInSnackBar(localizations.demoMenuSelected(value)), + itemBuilder: + (BuildContext context) => >[ + PopupMenuItem( + value: localizations.demoMenuPreview, + child: ListTile( + leading: const Icon(Icons.visibility), + title: Text(localizations.demoMenuPreview), + ), ), - ), - ), - PopupMenuItem( - value: localizations.demoMenuShare, - child: ListTile( - leading: const Icon(Icons.person_add), - title: Text( - localizations.demoMenuShare, + PopupMenuItem( + value: localizations.demoMenuShare, + child: ListTile( + leading: const Icon(Icons.person_add), + title: Text(localizations.demoMenuShare), + ), ), - ), - ), - PopupMenuItem( - value: localizations.demoMenuGetLink, - child: ListTile( - leading: const Icon(Icons.link), - title: Text( - localizations.demoMenuGetLink, + PopupMenuItem( + value: localizations.demoMenuGetLink, + child: ListTile( + leading: const Icon(Icons.link), + title: Text(localizations.demoMenuGetLink), + ), ), - ), - ), - const PopupMenuDivider(), - PopupMenuItem( - value: localizations.demoMenuRemove, - child: ListTile( - leading: const Icon(Icons.delete), - title: Text( - localizations.demoMenuRemove, + const PopupMenuDivider(), + PopupMenuItem( + value: localizations.demoMenuRemove, + child: ListTile( + leading: const Icon(Icons.delete), + title: Text(localizations.demoMenuRemove), + ), ), - ), - ), - ], + ], ), ); } @@ -200,8 +172,7 @@ class _SimpleMenuDemoState extends State<_SimpleMenuDemo> { _simpleValue = value; }); widget.showInSnackBar( - GalleryLocalizations.of(context)! - .demoMenuSelected(simpleValueToString(context, value)), + GalleryLocalizations.of(context)!.demoMenuSelected(simpleValueToString(context, value)), ); } @@ -226,32 +197,23 @@ class _SimpleMenuDemoState extends State<_SimpleMenuDemo> { padding: EdgeInsets.zero, initialValue: _simpleValue, onSelected: (SimpleValue value) => showAndSetMenuSelection(context, value), - itemBuilder: (BuildContext context) => >[ - PopupMenuItem( - value: SimpleValue.one, - child: Text(simpleValueToString( - context, - SimpleValue.one, - )), - ), - PopupMenuItem( - value: SimpleValue.two, - child: Text(simpleValueToString( - context, - SimpleValue.two, - )), - ), - PopupMenuItem( - value: SimpleValue.three, - child: Text(simpleValueToString( - context, - SimpleValue.three, - )), - ), - ], + itemBuilder: + (BuildContext context) => >[ + PopupMenuItem( + value: SimpleValue.one, + child: Text(simpleValueToString(context, SimpleValue.one)), + ), + PopupMenuItem( + value: SimpleValue.two, + child: Text(simpleValueToString(context, SimpleValue.two)), + ), + PopupMenuItem( + value: SimpleValue.three, + child: Text(simpleValueToString(context, SimpleValue.three)), + ), + ], child: ListTile( - title: Text( - GalleryLocalizations.of(context)!.demoMenuAnItemWithASimpleMenu), + title: Text(GalleryLocalizations.of(context)!.demoMenuAnItemWithASimpleMenu), subtitle: Text(simpleValueToString(context, _simpleValue)), ), ); @@ -315,16 +277,17 @@ class _RestorableCheckedValues extends RestorableProperty> { @override Set fromPrimitives(Object? data) { final List checkedValues = data! as List; - return Set.from(checkedValues.map((dynamic id) { - return CheckedValue.values[id as int]; - })); + return Set.from( + checkedValues.map((dynamic id) { + return CheckedValue.values[id as int]; + }), + ); } } -class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> - with RestorationMixin { - final _RestorableCheckedValues _checkedValues = _RestorableCheckedValues() - ..check(CheckedValue.three); +class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> with RestorationMixin { + final _RestorableCheckedValues _checkedValues = + _RestorableCheckedValues()..check(CheckedValue.three); @override String get restorationId => 'checklist_menu_demo'; @@ -346,9 +309,9 @@ class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> } widget.showInSnackBar( - GalleryLocalizations.of(context)!.demoMenuChecked( - _checkedValues.checkedValuesToString(context), - ), + GalleryLocalizations.of( + context, + )!.demoMenuChecked(_checkedValues.checkedValuesToString(context)), ); } @@ -371,43 +334,34 @@ class _ChecklistMenuDemoState extends State<_ChecklistMenuDemo> @override Widget build(BuildContext context) { return ListTile( - title: Text( - GalleryLocalizations.of(context)!.demoMenuAnItemWithAChecklistMenu, - ), + title: Text(GalleryLocalizations.of(context)!.demoMenuAnItemWithAChecklistMenu), trailing: PopupMenuButton( padding: EdgeInsets.zero, onSelected: (CheckedValue value) => showCheckedMenuSelections(context, value), - itemBuilder: (BuildContext context) => >[ - CheckedPopupMenuItem( - value: CheckedValue.one, - checked: _checkedValues.isChecked(CheckedValue.one), - child: Text( - checkedValueToString(context, CheckedValue.one), - ), - ), - CheckedPopupMenuItem( - value: CheckedValue.two, - enabled: false, - checked: _checkedValues.isChecked(CheckedValue.two), - child: Text( - checkedValueToString(context, CheckedValue.two), - ), - ), - CheckedPopupMenuItem( - value: CheckedValue.three, - checked: _checkedValues.isChecked(CheckedValue.three), - child: Text( - checkedValueToString(context, CheckedValue.three), - ), - ), - CheckedPopupMenuItem( - value: CheckedValue.four, - checked: _checkedValues.isChecked(CheckedValue.four), - child: Text( - checkedValueToString(context, CheckedValue.four), - ), - ), - ], + itemBuilder: + (BuildContext context) => >[ + CheckedPopupMenuItem( + value: CheckedValue.one, + checked: _checkedValues.isChecked(CheckedValue.one), + child: Text(checkedValueToString(context, CheckedValue.one)), + ), + CheckedPopupMenuItem( + value: CheckedValue.two, + enabled: false, + checked: _checkedValues.isChecked(CheckedValue.two), + child: Text(checkedValueToString(context, CheckedValue.two)), + ), + CheckedPopupMenuItem( + value: CheckedValue.three, + checked: _checkedValues.isChecked(CheckedValue.three), + child: Text(checkedValueToString(context, CheckedValue.three)), + ), + CheckedPopupMenuItem( + value: CheckedValue.four, + checked: _checkedValues.isChecked(CheckedValue.four), + child: Text(checkedValueToString(context, CheckedValue.four)), + ), + ], ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart index 7bc7332e9115582094084cf48abca094576bd44a..f552e9affec2d69f04bcc6123e7f6e431da6870d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_drawer.dart @@ -16,32 +16,22 @@ class NavDrawerDemo extends StatelessWidget { Widget build(BuildContext context) { final GalleryLocalizations localization = GalleryLocalizations.of(context)!; final UserAccountsDrawerHeader drawerHeader = UserAccountsDrawerHeader( - accountName: Text( - localization.demoNavigationDrawerUserName, - ), - accountEmail: Text( - localization.demoNavigationDrawerUserEmail, - ), - currentAccountPicture: const CircleAvatar( - child: FlutterLogo(size: 42.0), - ), + accountName: Text(localization.demoNavigationDrawerUserName), + accountEmail: Text(localization.demoNavigationDrawerUserEmail), + currentAccountPicture: const CircleAvatar(child: FlutterLogo(size: 42.0)), ); final ListView drawerItems = ListView( children: [ drawerHeader, ListTile( - title: Text( - localization.demoNavigationDrawerToPageOne, - ), + title: Text(localization.demoNavigationDrawerToPageOne), leading: const Icon(Icons.favorite), onTap: () { Navigator.pop(context); }, ), ListTile( - title: Text( - localization.demoNavigationDrawerToPageTwo, - ), + title: Text(localization.demoNavigationDrawerToPageTwo), leading: const Icon(Icons.comment), onTap: () { Navigator.pop(context); @@ -50,25 +40,17 @@ class NavDrawerDemo extends StatelessWidget { ], ); return Scaffold( - appBar: AppBar( - title: Text( - localization.demoNavigationDrawerTitle, - ), - ), + appBar: AppBar(title: Text(localization.demoNavigationDrawerTitle)), body: Semantics( container: true, child: Center( child: Padding( padding: const EdgeInsets.all(50.0), - child: Text( - localization.demoNavigationDrawerText, - ), + child: Text(localization.demoNavigationDrawerText), ), ), ), - drawer: Drawer( - child: drawerItems, - ), + drawer: Drawer(child: drawerItems), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart index f00cfe3e4710e870cfdd2d8f267650380fb16760..1f18cd37cd3cb51a9b80b9c27ef63688defc9ab6 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/navigation_rail_demo.dart @@ -40,14 +40,10 @@ class _NavRailDemoState extends State with RestorationMixin { final List selectedItem = [ destinationFirst, destinationSecond, - destinationThird + destinationThird, ]; return Scaffold( - appBar: AppBar( - title: Text( - localization.demoNavigationRailTitle, - ), - ), + appBar: AppBar(title: Text(localization.demoNavigationRailTitle)), body: Row( children: [ NavigationRail( @@ -65,48 +61,24 @@ class _NavRailDemoState extends State with RestorationMixin { labelType: NavigationRailLabelType.selected, destinations: [ NavigationRailDestination( - icon: const Icon( - Icons.favorite_border, - ), - selectedIcon: const Icon( - Icons.favorite, - ), - label: Text( - destinationFirst, - ), + icon: const Icon(Icons.favorite_border), + selectedIcon: const Icon(Icons.favorite), + label: Text(destinationFirst), ), NavigationRailDestination( - icon: const Icon( - Icons.bookmark_border, - ), - selectedIcon: const Icon( - Icons.book, - ), - label: Text( - destinationSecond, - ), + icon: const Icon(Icons.bookmark_border), + selectedIcon: const Icon(Icons.book), + label: Text(destinationSecond), ), NavigationRailDestination( - icon: const Icon( - Icons.star_border, - ), - selectedIcon: const Icon( - Icons.star, - ), - label: Text( - destinationThird, - ), + icon: const Icon(Icons.star_border), + selectedIcon: const Icon(Icons.star), + label: Text(destinationThird), ), ], ), const VerticalDivider(thickness: 1, width: 1), - Expanded( - child: Center( - child: Text( - selectedItem[_selectedIndex.value], - ), - ), - ), + Expanded(child: Center(child: Text(selectedItem[_selectedIndex.value]))), ], ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart index a9b899bde56cbb241b055f089f1dec2271c453dc..e350ff7494a0b7adb12eb47ec7cf55f8e1ac8398 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/picker_demo.dart @@ -21,15 +21,12 @@ class PickerDemo extends StatefulWidget { class _PickerDemoState extends State with RestorationMixin { final RestorableDateTime _fromDate = RestorableDateTime(DateTime.now()); - final RestorableTimeOfDay _fromTime = RestorableTimeOfDay( - TimeOfDay.fromDateTime(DateTime.now()), - ); + final RestorableTimeOfDay _fromTime = RestorableTimeOfDay(TimeOfDay.fromDateTime(DateTime.now())); final RestorableDateTime _startDate = RestorableDateTime(DateTime.now()); final RestorableDateTime _endDate = RestorableDateTime(DateTime.now()); late RestorableRouteFuture _restorableDatePickerRouteFuture; - late RestorableRouteFuture - _restorableDateRangePickerRouteFuture; + late RestorableRouteFuture _restorableDateRangePickerRouteFuture; late RestorableRouteFuture _restorableTimePickerRouteFuture; void _selectDate(DateTime? selectedDate) { @@ -57,10 +54,7 @@ class _PickerDemoState extends State with RestorationMixin { } } - static Route _datePickerRoute( - BuildContext context, - Object? arguments, - ) { + static Route _datePickerRoute(BuildContext context, Object? arguments) { return DialogRoute( context: context, builder: (BuildContext context) { @@ -74,31 +68,19 @@ class _PickerDemoState extends State with RestorationMixin { ); } - static Route _timePickerRoute( - BuildContext context, - Object? arguments, - ) { + static Route _timePickerRoute(BuildContext context, Object? arguments) { final List args = arguments! as List; - final TimeOfDay initialTime = TimeOfDay( - hour: args[0] as int, - minute: args[1] as int, - ); + final TimeOfDay initialTime = TimeOfDay(hour: args[0] as int, minute: args[1] as int); return DialogRoute( context: context, builder: (BuildContext context) { - return TimePickerDialog( - restorationId: 'time_picker_dialog', - initialTime: initialTime, - ); + return TimePickerDialog(restorationId: 'time_picker_dialog', initialTime: initialTime); }, ); } - static Route _dateRangePickerRoute( - BuildContext context, - Object? arguments, - ) { + static Route _dateRangePickerRoute(BuildContext context, Object? arguments) { return DialogRoute( context: context, builder: (BuildContext context) { @@ -123,19 +105,20 @@ class _PickerDemoState extends State with RestorationMixin { ); }, ); - _restorableDateRangePickerRouteFuture = - RestorableRouteFuture( + _restorableDateRangePickerRouteFuture = RestorableRouteFuture( onComplete: _selectDateRange, - onPresent: (NavigatorState navigator, Object? arguments) => - navigator.restorablePush(_dateRangePickerRoute), + onPresent: + (NavigatorState navigator, Object? arguments) => + navigator.restorablePush(_dateRangePickerRoute), ); _restorableTimePickerRouteFuture = RestorableRouteFuture( onComplete: _selectTime, - onPresent: (NavigatorState navigator, Object? arguments) => navigator.restorablePush( - _timePickerRoute, - arguments: [_fromTime.value.hour, _fromTime.value.minute], - ), + onPresent: + (NavigatorState navigator, Object? arguments) => navigator.restorablePush( + _timePickerRoute, + arguments: [_fromTime.value.hour, _fromTime.value.minute], + ), ); } @@ -148,25 +131,16 @@ class _PickerDemoState extends State with RestorationMixin { registerForRestoration(_fromTime, 'from_time'); registerForRestoration(_startDate, 'start_date'); registerForRestoration(_endDate, 'end_date'); - registerForRestoration( - _restorableDatePickerRouteFuture, - 'date_picker_route', - ); - registerForRestoration( - _restorableDateRangePickerRouteFuture, - 'date_range_picker_route', - ); - registerForRestoration( - _restorableTimePickerRouteFuture, - 'time_picker_route', - ); + registerForRestoration(_restorableDatePickerRouteFuture, 'date_picker_route'); + registerForRestoration(_restorableDateRangePickerRouteFuture, 'date_range_picker_route'); + registerForRestoration(_restorableTimePickerRouteFuture, 'time_picker_route'); } String get _title { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return switch (widget.type) { - PickerDemoType.date => localizations.demoDatePickerTitle, - PickerDemoType.time => localizations.demoTimePickerTitle, + PickerDemoType.date => localizations.demoDatePickerTitle, + PickerDemoType.time => localizations.demoTimePickerTitle, PickerDemoType.range => localizations.demoDateRangePickerTitle, }; } @@ -174,8 +148,8 @@ class _PickerDemoState extends State with RestorationMixin { String get _labelText { final DateFormat yMMMd = DateFormat.yMMMd(); return switch (widget.type) { - PickerDemoType.date => yMMMd.format(_fromDate.value), - PickerDemoType.time => _fromTime.value.format(context), + PickerDemoType.date => yMMMd.format(_fromDate.value), + PickerDemoType.time => _fromTime.value.format(context), PickerDemoType.range => '${yMMMd.format(_startDate.value)} - ${yMMMd.format(_endDate.value)}', }; } @@ -185,31 +159,29 @@ class _PickerDemoState extends State with RestorationMixin { return Navigator( onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute( - builder: (BuildContext context) => Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title), - ), - body: Center( - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - Text(_labelText), - const SizedBox(height: 16), - ElevatedButton( - onPressed: () => switch (widget.type) { - PickerDemoType.date => _restorableDatePickerRouteFuture, - PickerDemoType.time => _restorableTimePickerRouteFuture, - PickerDemoType.range => _restorableDateRangePickerRouteFuture, - }.present(), - child: Text( - GalleryLocalizations.of(context)!.demoPickersShowPicker, - ), - ) - ], + builder: + (BuildContext context) => Scaffold( + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title)), + body: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(_labelText), + const SizedBox(height: 16), + ElevatedButton( + onPressed: + () => + switch (widget.type) { + PickerDemoType.date => _restorableDatePickerRouteFuture, + PickerDemoType.time => _restorableTimePickerRouteFuture, + PickerDemoType.range => _restorableDateRangePickerRouteFuture, + }.present(), + child: Text(GalleryLocalizations.of(context)!.demoPickersShowPicker), + ), + ], + ), + ), ), - ), - ), ); }, ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart index a38bc31633baa0bf63765f474349471763ca2c46..408f878626b284ac4c03b9f6e0303d80dc9765f9 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/progress_indicator_demo.dart @@ -36,12 +36,12 @@ class _ProgressIndicatorDemoState extends State curve: const Interval(0.0, 0.9, curve: Curves.fastOutSlowIn), reverseCurve: Curves.fastOutSlowIn, )..addStatusListener((AnimationStatus status) { - if (status == AnimationStatus.dismissed) { - _controller.forward(); - } else if (status == AnimationStatus.completed) { - _controller.reverse(); - } - }); + if (status == AnimationStatus.dismissed) { + _controller.forward(); + } else if (status == AnimationStatus.completed) { + _controller.reverse(); + } + }); } @override @@ -53,11 +53,9 @@ class _ProgressIndicatorDemoState extends State String get _title { switch (widget.type) { case ProgressIndicatorDemoType.circular: - return GalleryLocalizations.of(context)! - .demoCircularProgressIndicatorTitle; + return GalleryLocalizations.of(context)!.demoCircularProgressIndicatorTitle; case ProgressIndicatorDemoType.linear: - return GalleryLocalizations.of(context)! - .demoLinearProgressIndicatorTitle; + return GalleryLocalizations.of(context)!.demoLinearProgressIndicatorTitle; } } @@ -66,9 +64,7 @@ class _ProgressIndicatorDemoState extends State case ProgressIndicatorDemoType.circular: return Column( children: [ - CircularProgressIndicator( - semanticsLabel: GalleryLocalizations.of(context)!.loading, - ), + CircularProgressIndicator(semanticsLabel: GalleryLocalizations.of(context)!.loading), const SizedBox(height: 32), CircularProgressIndicator(value: _animation.value), ], @@ -87,18 +83,12 @@ class _ProgressIndicatorDemoState extends State @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title)), body: Center( child: SingleChildScrollView( child: Container( padding: const EdgeInsets.all(8), - child: AnimatedBuilder( - animation: _animation, - builder: _buildIndicators, - ), + child: AnimatedBuilder(animation: _animation, builder: _buildIndicators), ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart index 72d5f347b3289a67fca9203c8f290c02bbbb3aa8..b8c01afb68b35e337606c0dfd918ff562204f9e2 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/selection_controls_demo.dart @@ -14,27 +14,21 @@ class SelectionControlsDemo extends StatelessWidget { String _title(BuildContext context) { switch (type) { case SelectionControlsDemoType.checkbox: - return GalleryLocalizations.of(context)! - .demoSelectionControlsCheckboxTitle; + return GalleryLocalizations.of(context)!.demoSelectionControlsCheckboxTitle; case SelectionControlsDemoType.radio: - return GalleryLocalizations.of(context)! - .demoSelectionControlsRadioTitle; + return GalleryLocalizations.of(context)!.demoSelectionControlsRadioTitle; case SelectionControlsDemoType.switches: - return GalleryLocalizations.of(context)! - .demoSelectionControlsSwitchTitle; + return GalleryLocalizations.of(context)!.demoSelectionControlsSwitchTitle; } } @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), body: switch (type) { SelectionControlsDemoType.checkbox => _CheckboxDemo(), - SelectionControlsDemoType.radio => _RadioDemo(), + SelectionControlsDemoType.radio => _RadioDemo(), SelectionControlsDemoType.switches => _SwitchDemo(), }, ); @@ -110,19 +104,9 @@ class _CheckboxDemoState extends State<_CheckboxDemo> with RestorationMixin { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Checkbox( - value: checkboxValueA.value, - onChanged: null, - ), - Checkbox( - value: checkboxValueB.value, - onChanged: null, - ), - Checkbox( - value: checkboxValueC.value, - tristate: true, - onChanged: null, - ), + Checkbox(value: checkboxValueA.value, onChanged: null), + Checkbox(value: checkboxValueB.value, onChanged: null), + Checkbox(value: checkboxValueC.value, tristate: true, onChanged: null), ], ), ], @@ -183,11 +167,7 @@ class _RadioDemoState extends State<_RadioDemo> with RestorationMixin { mainAxisAlignment: MainAxisAlignment.center, children: [ for (int index = 0; index < 2; ++index) - Radio( - value: index, - groupValue: radioValue.value, - onChanged: null, - ), + Radio(value: index, groupValue: radioValue.value, onChanged: null), ], ), ], @@ -254,14 +234,8 @@ class _SwitchDemoState extends State<_SwitchDemo> with RestorationMixin { Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Switch( - value: switchValueA.value, - onChanged: null, - ), - Switch( - value: switchValueB.value, - onChanged: null, - ), + Switch(value: switchValueA.value, onChanged: null), + Switch(value: switchValueB.value, onChanged: null), ], ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart index 252b3feff60dad8975001c086b2eed849af4fcca..9be54df2da4671e0686057658d390bfccf745b81 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/sliders_demo.dart @@ -28,13 +28,10 @@ class SlidersDemo extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(_title(context)), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(_title(context))), body: switch (type) { - SlidersDemoType.sliders => _Sliders(), - SlidersDemoType.rangeSliders => _RangeSliders(), + SlidersDemoType.sliders => _Sliders(), + SlidersDemoType.rangeSliders => _RangeSliders(), SlidersDemoType.customSliders => _CustomSliders(), }, ); @@ -87,11 +84,9 @@ class _SlidersState extends State<_Sliders> with RestorationMixin { textAlign: TextAlign.center, onSubmitted: (String value) { final double? newValue = double.tryParse(value); - if (newValue != null && - newValue != _continuousValue.value) { + if (newValue != null && newValue != _continuousValue.value) { setState(() { - _continuousValue.value = - newValue.clamp(0, 100) as double; + _continuousValue.value = newValue.clamp(0, 100) as double; }); } }, @@ -112,13 +107,8 @@ class _SlidersState extends State<_Sliders> with RestorationMixin { }, ), // Disabled slider - Slider( - value: _continuousValue.value, - max: 100, - onChanged: null, - ), - Text(localizations - .demoSlidersContinuousWithEditableNumericalValue), + Slider(value: _continuousValue.value, max: 100, onChanged: null), + Text(localizations.demoSlidersContinuousWithEditableNumericalValue), ], ), const SizedBox(height: 80), @@ -218,11 +208,7 @@ class _RangeSlidersState extends State<_RangeSliders> with RestorationMixin { }, ), // Disabled range slider - RangeSlider( - values: continuousValues, - max: 100, - onChanged: null, - ), + RangeSlider(values: continuousValues, max: 100, onChanged: null), Text(GalleryLocalizations.of(context)!.demoSlidersContinuous), ], ), @@ -275,11 +261,9 @@ Path _downTriangle(double size, Offset thumbCenter, {bool invert = false}) { final double centerHeight = size * height / 3; final double halfSize = size / 2; final int sign = invert ? -1 : 1; - thumbPath.moveTo( - thumbCenter.dx - halfSize, thumbCenter.dy + sign * centerHeight); + thumbPath.moveTo(thumbCenter.dx - halfSize, thumbCenter.dy + sign * centerHeight); thumbPath.lineTo(thumbCenter.dx, thumbCenter.dy - 2 * sign * centerHeight); - thumbPath.lineTo( - thumbCenter.dx + halfSize, thumbCenter.dy + sign * centerHeight); + thumbPath.lineTo(thumbCenter.dx + halfSize, thumbCenter.dy + sign * centerHeight); thumbPath.close(); return thumbPath; } @@ -295,8 +279,7 @@ Path _rightTriangle(double size, Offset thumbCenter, {bool invert = false}) { return thumbPath; } -Path _upTriangle(double size, Offset thumbCenter) => - _downTriangle(size, thumbCenter, invert: true); +Path _upTriangle(double size, Offset thumbCenter) => _downTriangle(size, thumbCenter, invert: true); Path _leftTriangle(double size, Offset thumbCenter) => _rightTriangle(size, thumbCenter, invert: true); @@ -340,15 +323,12 @@ class _CustomRangeThumbShape extends RangeSliderThumbShape { ); final double size = _thumbSize * sizeTween.evaluate(enableAnimation); - canvas.drawPath( - switch ((textDirection!, thumb!)) { - (TextDirection.rtl, Thumb.start) => _rightTriangle(size, center), - (TextDirection.rtl, Thumb.end) => _leftTriangle(size, center), - (TextDirection.ltr, Thumb.start) => _leftTriangle(size, center), - (TextDirection.ltr, Thumb.end) => _rightTriangle(size, center), - }, - Paint()..color = colorTween.evaluate(enableAnimation)!, - ); + canvas.drawPath(switch ((textDirection!, thumb!)) { + (TextDirection.rtl, Thumb.start) => _rightTriangle(size, center), + (TextDirection.rtl, Thumb.end) => _leftTriangle(size, center), + (TextDirection.ltr, Thumb.start) => _leftTriangle(size, center), + (TextDirection.ltr, Thumb.end) => _rightTriangle(size, center), + }, Paint()..color = colorTween.evaluate(enableAnimation)!); } } @@ -392,10 +372,7 @@ class _CustomThumbShape extends SliderComponentShape { ); final double size = _thumbSize * sizeTween.evaluate(enableAnimation); final Path thumbPath = _downTriangle(size, thumbCenter); - canvas.drawPath( - thumbPath, - Paint()..color = colorTween.evaluate(enableAnimation)!, - ); + canvas.drawPath(thumbPath, Paint()..color = colorTween.evaluate(enableAnimation)!); } } @@ -436,33 +413,25 @@ class _CustomValueIndicatorShape extends SliderComponentShape { begin: sliderTheme.disabledThumbColor, end: sliderTheme.valueIndicatorColor, ); - final Tween slideUpTween = Tween( - begin: 0, - end: _slideUpHeight, - ); + final Tween slideUpTween = Tween(begin: 0, end: _slideUpHeight); final double size = _indicatorSize * sizeTween.evaluate(enableAnimation); - final Offset slideUpOffset = - Offset(0, -slideUpTween.evaluate(activationAnimation)); + final Offset slideUpOffset = Offset(0, -slideUpTween.evaluate(activationAnimation)); final Path thumbPath = _upTriangle(size, thumbCenter + slideUpOffset); final Color paintColor = enableColor .evaluate(enableAnimation)! .withAlpha((255 * activationAnimation.value).round()); - canvas.drawPath( - thumbPath, - Paint()..color = paintColor, - ); + canvas.drawPath(thumbPath, Paint()..color = paintColor); canvas.drawLine( - thumbCenter, - thumbCenter + slideUpOffset, - Paint() - ..color = paintColor - ..style = PaintingStyle.stroke - ..strokeWidth = 2); + thumbCenter, + thumbCenter + slideUpOffset, + Paint() + ..color = paintColor + ..style = PaintingStyle.stroke + ..strokeWidth = 2, + ); labelPainter.paint( canvas, - thumbCenter + - slideUpOffset + - Offset(-labelPainter.width / 2, -labelPainter.height - 4), + thumbCenter + slideUpOffset + Offset(-labelPainter.width / 2, -labelPainter.height - 4), ); } } @@ -482,10 +451,8 @@ class _CustomSlidersState extends State<_CustomSliders> with RestorationMixin { @override void restoreState(RestorationBucket? oldBucket, bool initialRestore) { - registerForRestoration( - _continuousStartCustomValue, 'continuous_start_custom_value'); - registerForRestoration( - _continuousEndCustomValue, 'continuous_end_custom_value'); + registerForRestoration(_continuousStartCustomValue, 'continuous_start_custom_value'); + registerForRestoration(_continuousEndCustomValue, 'continuous_end_custom_value'); registerForRestoration(_discreteCustomValue, 'discrete_custom_value'); } @@ -517,26 +484,23 @@ class _CustomSlidersState extends State<_CustomSliders> with RestorationMixin { data: theme.sliderTheme.copyWith( trackHeight: 2, activeTrackColor: Colors.deepPurple, - inactiveTrackColor: - theme.colorScheme.onSurface.withOpacity(0.5), - activeTickMarkColor: - theme.colorScheme.onSurface.withOpacity(0.7), - inactiveTickMarkColor: - theme.colorScheme.surface.withOpacity(0.7), + inactiveTrackColor: theme.colorScheme.onSurface.withOpacity(0.5), + activeTickMarkColor: theme.colorScheme.onSurface.withOpacity(0.7), + inactiveTickMarkColor: theme.colorScheme.surface.withOpacity(0.7), overlayColor: theme.colorScheme.onSurface.withOpacity(0.12), thumbColor: Colors.deepPurple, valueIndicatorColor: Colors.deepPurpleAccent, thumbShape: const _CustomThumbShape(), valueIndicatorShape: const _CustomValueIndicatorShape(), - valueIndicatorTextStyle: theme.textTheme.bodyLarge! - .copyWith(color: theme.colorScheme.onSurface), + valueIndicatorTextStyle: theme.textTheme.bodyLarge!.copyWith( + color: theme.colorScheme.onSurface, + ), ), child: Slider( value: _discreteCustomValue.value, max: 200, divisions: 5, - semanticFormatterCallback: (double value) => - value.round().toString(), + semanticFormatterCallback: (double value) => value.round().toString(), label: '${_discreteCustomValue.value.round()}', onChanged: (double value) { setState(() { @@ -575,8 +539,7 @@ class _CustomSlidersState extends State<_CustomSliders> with RestorationMixin { }, ), ), - Text(localizations - .demoSlidersContinuousRangeSliderWithCustomTheme), + Text(localizations.demoSlidersContinuousRangeSliderWithCustomTheme), ], ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart index 2343e955ec9e1d21a693280f3b9f98e966bcba5d..25b8dd583dfc1a467bd3814a7b1e9ff8e2c8e64d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/snackbar_demo.dart @@ -22,19 +22,20 @@ class SnackbarsDemo extends StatelessWidget { child: ElevatedButton( onPressed: () { ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text(localizations.demoSnackbarsText), - action: SnackBarAction( - label: localizations.demoSnackbarsActionButtonLabel, - onPressed: () { - ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text( - localizations.demoSnackbarsAction, - ))); - }, + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text(localizations.demoSnackbarsText), + action: SnackBarAction( + label: localizations.demoSnackbarsActionButtonLabel, + onPressed: () { + ScaffoldMessenger.of(context).hideCurrentSnackBar(); + ScaffoldMessenger.of( + context, + ).showSnackBar(SnackBar(content: Text(localizations.demoSnackbarsAction))); + }, + ), ), - )); + ); }, child: Text(localizations.demoSnackbarsButtonLabel), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart index de79cea0b8ac5a65e3e4c8922c3bfe1a13ef6817..d029e78ae9f46c3e63104c3536f7179f372891f2 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/tabs_demo.dart @@ -14,7 +14,7 @@ class TabsDemo extends StatelessWidget { @override Widget build(BuildContext context) { return switch (type) { - TabsDemoType.scrollable => _TabsScrollableDemo(), + TabsDemoType.scrollable => _TabsScrollableDemo(), TabsDemoType.nonScrollable => _TabsNonScrollableDemo(), }; } @@ -44,10 +44,7 @@ class __TabsScrollableDemoState extends State<_TabsScrollableDemo> @override void initState() { - _tabController = TabController( - length: 12, - vsync: this, - ); + _tabController = TabController(length: 12, vsync: this); _tabController!.addListener(() { // When the tab controller's value is updated, make sure to update the // tab index value, which is state restorable. @@ -90,19 +87,12 @@ class __TabsScrollableDemoState extends State<_TabsScrollableDemo> bottom: TabBar( controller: _tabController, isScrollable: true, - tabs: [ - for (final String tab in tabs) Tab(text: tab), - ], + tabs: [for (final String tab in tabs) Tab(text: tab)], ), ), body: TabBarView( controller: _tabController, - children: [ - for (final String tab in tabs) - Center( - child: Text(tab), - ), - ], + children: [for (final String tab in tabs) Center(child: Text(tab))], ), ); } @@ -135,10 +125,7 @@ class __TabsNonScrollableDemoState extends State<_TabsNonScrollableDemo> @override void initState() { super.initState(); - _tabController = TabController( - length: 3, - vsync: this, - ); + _tabController = TabController(length: 3, vsync: this); _tabController.addListener(() { // When the tab controller's value is updated, make sure to update the // tab index value, which is state restorable. @@ -167,24 +154,15 @@ class __TabsNonScrollableDemoState extends State<_TabsNonScrollableDemo> return Scaffold( appBar: AppBar( automaticallyImplyLeading: false, - title: Text( - localizations.demoTabsNonScrollingTitle, - ), + title: Text(localizations.demoTabsNonScrollingTitle), bottom: TabBar( controller: _tabController, - tabs: [ - for (final String tab in tabs) Tab(text: tab), - ], + tabs: [for (final String tab in tabs) Tab(text: tab)], ), ), body: TabBarView( controller: _tabController, - children: [ - for (final String tab in tabs) - Center( - child: Text(tab), - ), - ], + children: [for (final String tab in tabs) Center(child: Text(tab))], ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart index 94b8634c78afb3f51eba7cf981ba3947805c3cdd..d21d5766de71287c6903424fdd0b025334fbbfe8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/text_field_demo.dart @@ -102,11 +102,10 @@ class _PasswordFieldState extends State with RestorationMixin { hoverColor: Colors.transparent, icon: Icon( _obscureText.value ? Icons.visibility : Icons.visibility_off, - semanticLabel: _obscureText.value - ? GalleryLocalizations.of(context)! - .demoTextFieldShowPasswordLabel - : GalleryLocalizations.of(context)! - .demoTextFieldHidePasswordLabel, + semanticLabel: + _obscureText.value + ? GalleryLocalizations.of(context)!.demoTextFieldShowPasswordLabel + : GalleryLocalizations.of(context)!.demoTextFieldHidePasswordLabel, ), ), ), @@ -114,8 +113,7 @@ class _PasswordFieldState extends State with RestorationMixin { } } -class TextFormFieldDemoState extends State - with RestorationMixin { +class TextFormFieldDemoState extends State with RestorationMixin { PersonData person = PersonData(); late FocusNode _phoneNumber, _email, _lifeStory, _password, _retypePassword; @@ -142,9 +140,7 @@ class TextFormFieldDemoState extends State void showInSnackBar(String value) { ScaffoldMessenger.of(context).hideCurrentSnackBar(); - ScaffoldMessenger.of(context).showSnackBar(SnackBar( - content: Text(value), - )); + ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(value))); } @override @@ -155,27 +151,25 @@ class TextFormFieldDemoState extends State registerForRestoration(_autoValidateModeIndex, 'autovalidate_mode'); } - final RestorableInt _autoValidateModeIndex = - RestorableInt(AutovalidateMode.disabled.index); + final RestorableInt _autoValidateModeIndex = RestorableInt(AutovalidateMode.disabled.index); final GlobalKey _formKey = GlobalKey(); - final GlobalKey> _passwordFieldKey = - GlobalKey>(); - final _UsNumberTextInputFormatter _phoneNumberFormatter = - _UsNumberTextInputFormatter(); + final GlobalKey> _passwordFieldKey = GlobalKey>(); + final _UsNumberTextInputFormatter _phoneNumberFormatter = _UsNumberTextInputFormatter(); void _handleSubmitted() { final FormState form = _formKey.currentState!; if (!form.validate()) { _autoValidateModeIndex.value = AutovalidateMode.always.index; // Start validating on every change. - showInSnackBar( - GalleryLocalizations.of(context)!.demoTextFieldFormErrors, - ); + showInSnackBar(GalleryLocalizations.of(context)!.demoTextFieldFormErrors); } else { form.save(); - showInSnackBar(GalleryLocalizations.of(context)! - .demoTextFieldNameHasPhoneNumber(person.name!, person.phoneNumber!)); + showInSnackBar( + GalleryLocalizations.of( + context, + )!.demoTextFieldNameHasPhoneNumber(person.name!, person.phoneNumber!), + ); } } @@ -185,8 +179,7 @@ class TextFormFieldDemoState extends State } final RegExp nameExp = RegExp(r'^[A-Za-z ]+$'); if (!nameExp.hasMatch(value)) { - return GalleryLocalizations.of(context)! - .demoTextFieldOnlyAlphabeticalChars; + return GalleryLocalizations.of(context)!.demoTextFieldOnlyAlphabeticalChars; } return null; } @@ -376,10 +369,7 @@ class TextFormFieldDemoState extends State /// Format incoming numeric text to fit the format of (###) ###-#### ## class _UsNumberTextInputFormatter extends TextInputFormatter { @override - TextEditingValue formatEditUpdate( - TextEditingValue oldValue, - TextEditingValue newValue, - ) { + TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) { final int newTextLength = newValue.text.length; final StringBuffer newText = StringBuffer(); int selectionIndex = newValue.selection.end; diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart index de13632518096e6350a855489cc8cb2e88a5a287..70a6f2d45ac54a5c7edeaaf91f8a390310e3d50c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/material/tooltip_demo.dart @@ -14,20 +14,14 @@ class TooltipDemo extends StatelessWidget { Widget build(BuildContext context) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return Scaffold( - appBar: AppBar( - automaticallyImplyLeading: false, - title: Text(localizations.demoTooltipTitle), - ), + appBar: AppBar(automaticallyImplyLeading: false, title: Text(localizations.demoTooltipTitle)), body: Center( child: Padding( padding: const EdgeInsets.all(8), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Text( - localizations.demoTooltipInstructions, - textAlign: TextAlign.center, - ), + Text(localizations.demoTooltipInstructions, textAlign: TextAlign.center), const SizedBox(height: 16), Tooltip( message: localizations.starterAppTooltipSearch, diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart index af5daf40369a057ad1daaac683318bd1c7c9016d..1450dd642633478b79a23f2fd20b5572fbe46287 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/colors_demo.dart @@ -11,12 +11,7 @@ import '../../gallery_localizations.dart'; const double kColorItemHeight = 48; class _Palette { - _Palette({ - required this.name, - required this.primary, - this.accent, - this.threshold = 900, - }); + _Palette({required this.name, required this.primary, this.accent, this.threshold = 900}); final String name; final MaterialColor primary; @@ -101,16 +96,8 @@ List<_Palette> _allPalettes(BuildContext context) { accent: Colors.limeAccent, threshold: 800, ), - _Palette( - name: localizations.colorsYellow, - primary: Colors.yellow, - accent: Colors.yellowAccent, - ), - _Palette( - name: localizations.colorsAmber, - primary: Colors.amber, - accent: Colors.amberAccent, - ), + _Palette(name: localizations.colorsYellow, primary: Colors.yellow, accent: Colors.yellowAccent), + _Palette(name: localizations.colorsAmber, primary: Colors.amber, accent: Colors.amberAccent), _Palette( name: localizations.colorsOrange, primary: Colors.orange, @@ -123,37 +110,20 @@ List<_Palette> _allPalettes(BuildContext context) { accent: Colors.deepOrangeAccent, threshold: 400, ), - _Palette( - name: localizations.colorsBrown, - primary: Colors.brown, - threshold: 200, - ), - _Palette( - name: localizations.colorsGrey, - primary: Colors.grey, - threshold: 500, - ), - _Palette( - name: localizations.colorsBlueGrey, - primary: Colors.blueGrey, - threshold: 500, - ), + _Palette(name: localizations.colorsBrown, primary: Colors.brown, threshold: 200), + _Palette(name: localizations.colorsGrey, primary: Colors.grey, threshold: 500), + _Palette(name: localizations.colorsBlueGrey, primary: Colors.blueGrey, threshold: 500), ]; } class _ColorItem extends StatelessWidget { - const _ColorItem({ - required this.index, - required this.color, - this.prefix = '', - }); + const _ColorItem({required this.index, required this.color, this.prefix = ''}); final int index; final Color color; final String prefix; - String get _colorString => - "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}"; + String get _colorString => "#${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}"; @override Widget build(BuildContext context) { @@ -165,10 +135,7 @@ class _ColorItem extends StatelessWidget { color: color, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text('$prefix$index'), - Flexible(child: Text(_colorString)), - ], + children: [Text('$prefix$index'), Flexible(child: Text(_colorString))], ), ), ); @@ -179,29 +146,14 @@ class _PaletteTabView extends StatelessWidget { const _PaletteTabView({required this.colors}); final _Palette colors; - static const List primaryKeys = [ - 50, - 100, - 200, - 300, - 400, - 500, - 600, - 700, - 800, - 900 - ]; + static const List primaryKeys = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]; static const List accentKeys = [100, 200, 400, 700]; @override Widget build(BuildContext context) { final TextTheme textTheme = Theme.of(context).textTheme; - final TextStyle whiteTextStyle = textTheme.bodyMedium!.copyWith( - color: Colors.white, - ); - final TextStyle blackTextStyle = textTheme.bodyMedium!.copyWith( - color: Colors.black, - ); + final TextStyle whiteTextStyle = textTheme.bodyMedium!.copyWith(color: Colors.white); + final TextStyle blackTextStyle = textTheme.bodyMedium!.copyWith(color: Colors.black); return Scrollbar( child: ListView( itemExtent: kColorItemHeight, @@ -215,11 +167,7 @@ class _PaletteTabView extends StatelessWidget { for (final int key in accentKeys) DefaultTextStyle( style: key > colors.threshold ? whiteTextStyle : blackTextStyle, - child: _ColorItem( - index: key, - color: colors.accent![key]!, - prefix: 'A', - ), + child: _ColorItem(index: key, color: colors.accent![key]!, prefix: 'A'), ), ], ), @@ -241,9 +189,7 @@ class ColorsDemo extends StatelessWidget { title: Text(GalleryLocalizations.of(context)!.demoColorsTitle), bottom: TabBar( isScrollable: true, - tabs: [ - for (final _Palette palette in palettes) Tab(text: palette.name), - ], + tabs: [for (final _Palette palette in palettes) Tab(text: palette.name)], labelColor: Theme.of(context).colorScheme.onPrimary, ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart index 161546a6ce06e9fde7d7ce6461b64202002b578d..db0bd296c2472f88cf0f9cfbe3f487ea8bc4ce95 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_container_transition.dart @@ -45,12 +45,10 @@ class OpenContainerTransformDemo extends StatefulWidget { const OpenContainerTransformDemo({super.key}); @override - State createState() => - _OpenContainerTransformDemoState(); + State createState() => _OpenContainerTransformDemoState(); } -class _OpenContainerTransformDemoState - extends State { +class _OpenContainerTransformDemoState extends State { final GlobalKey _scaffoldKey = GlobalKey(); ContainerTransitionType _transitionType = ContainerTransitionType.fade; @@ -72,18 +70,17 @@ class _OpenContainerTransformDemoState localizations!.demoContainerTransformModalBottomSheetTitle, style: Theme.of(context).textTheme.bodySmall, ), - const SizedBox( - height: 12, - ), + const SizedBox(height: 12), ToggleButtons( borderRadius: BorderRadius.circular(2), selectedBorderColor: Theme.of(context).colorScheme.primary, onPressed: (int index) { setModalState(() { setState(() { - _transitionType = index == 0 - ? ContainerTransitionType.fade - : ContainerTransitionType.fadeThrough; + _transitionType = + index == 0 + ? ContainerTransitionType.fade + : ContainerTransitionType.fadeThrough; }); }); }, @@ -92,16 +89,10 @@ class _OpenContainerTransformDemoState _transitionType == ContainerTransitionType.fadeThrough, ], children: [ - Text( - localizations.demoContainerTransformTypeFade, - ), + Text(localizations.demoContainerTransformTypeFade), Padding( - padding: const EdgeInsets.symmetric( - horizontal: 10, - ), - child: Text( - localizations.demoContainerTransformTypeFadeThrough, - ), + padding: const EdgeInsets.symmetric(horizontal: 10), + child: Text(localizations.demoContainerTransformTypeFadeThrough), ), ], ), @@ -125,189 +116,159 @@ class _OpenContainerTransformDemoState key: ValueKey(_transitionType), onGenerateRoute: (RouteSettings settings) { return MaterialPageRoute( - builder: (BuildContext context) => Scaffold( - key: _scaffoldKey, - appBar: AppBar( - automaticallyImplyLeading: false, - title: Column( - children: [ - Text( - localizations!.demoContainerTransformTitle, - ), - Text( - '(${localizations.demoContainerTransformDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), - ), - ], - ), - actions: [ - IconButton( - icon: const Icon( - Icons.settings, - ), - onPressed: () { - _showSettingsBottomModalSheet(context); - }, - ), - ], - ), - body: ListView( - padding: const EdgeInsets.all(8), - children: [ - _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _DetailsCard(openContainer: openContainer); - }, - ), - const SizedBox(height: 16), - _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _DetailsListTile(openContainer: openContainer); - }, - ), - const SizedBox( - height: 16, - ), - Row( - children: [ - Expanded( - child: _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _SmallDetailsCard( - openContainer: openContainer, - subtitle: - localizations.demoMotionPlaceholderSubtitle, - ); - }, - ), - ), - const SizedBox( - width: 8, - ), - Expanded( - child: _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _SmallDetailsCard( - openContainer: openContainer, - subtitle: - localizations.demoMotionPlaceholderSubtitle, - ); - }, + builder: + (BuildContext context) => Scaffold( + key: _scaffoldKey, + appBar: AppBar( + automaticallyImplyLeading: false, + title: Column( + children: [ + Text(localizations!.demoContainerTransformTitle), + Text( + '(${localizations.demoContainerTransformDemoInstructions})', + style: Theme.of( + context, + ).textTheme.titleSmall!.copyWith(color: Colors.white), ), + ], + ), + actions: [ + IconButton( + icon: const Icon(Icons.settings), + onPressed: () { + _showSettingsBottomModalSheet(context); + }, ), ], ), - const SizedBox( - height: 16, - ), - Row( + body: ListView( + padding: const EdgeInsets.all(8), children: [ - Expanded( - child: _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _SmallDetailsCard( - openContainer: openContainer, - subtitle: localizations - .demoMotionSmallPlaceholderSubtitle, - ); - }, - ), + _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _DetailsCard(openContainer: openContainer); + }, ), - const SizedBox( - width: 8, + const SizedBox(height: 16), + _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _DetailsListTile(openContainer: openContainer); + }, ), - Expanded( - child: _OpenContainerWrapper( - transitionType: _transitionType, - closedBuilder: (BuildContext context, void Function() openContainer) { - return _SmallDetailsCard( - openContainer: openContainer, - subtitle: localizations - .demoMotionSmallPlaceholderSubtitle, - ); - }, - ), + const SizedBox(height: 16), + Row( + children: [ + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations.demoMotionPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox(width: 8), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations.demoMotionPlaceholderSubtitle, + ); + }, + ), + ), + ], ), - const SizedBox( - width: 8, + const SizedBox(height: 16), + Row( + children: [ + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations.demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox(width: 8), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations.demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + const SizedBox(width: 8), + Expanded( + child: _OpenContainerWrapper( + transitionType: _transitionType, + closedBuilder: (BuildContext context, void Function() openContainer) { + return _SmallDetailsCard( + openContainer: openContainer, + subtitle: localizations.demoMotionSmallPlaceholderSubtitle, + ); + }, + ), + ), + ], ), - Expanded( - child: _OpenContainerWrapper( + const SizedBox(height: 16), + ...List>.generate(10, (int index) { + return OpenContainer( transitionType: _transitionType, + openBuilder: + (BuildContext context, void Function() openContainer) => + const _DetailsPage(), + tappable: false, + closedShape: const RoundedRectangleBorder(), + closedElevation: 0, closedBuilder: (BuildContext context, void Function() openContainer) { - return _SmallDetailsCard( - openContainer: openContainer, - subtitle: localizations - .demoMotionSmallPlaceholderSubtitle, + return ListTile( + leading: Image.asset( + 'placeholders/avatar_logo.png', + package: 'flutter_gallery_assets', + width: 40, + ), + onTap: openContainer, + title: Text('${localizations.demoMotionListTileTitle} ${index + 1}'), + subtitle: Text(localizations.demoMotionPlaceholderSubtitle), ); }, - ), - ), + ); + }), ], ), - const SizedBox( - height: 16, - ), - ...List>.generate(10, (int index) { - return OpenContainer( - transitionType: _transitionType, - openBuilder: (BuildContext context, void Function() openContainer) => - const _DetailsPage(), - tappable: false, - closedShape: const RoundedRectangleBorder(), - closedElevation: 0, - closedBuilder: (BuildContext context, void Function() openContainer) { - return ListTile( - leading: Image.asset( - 'placeholders/avatar_logo.png', - package: 'flutter_gallery_assets', - width: 40, - ), - onTap: openContainer, - title: Text( - '${localizations.demoMotionListTileTitle} ${index + 1}', - ), - subtitle: Text( - localizations.demoMotionPlaceholderSubtitle, - ), - ); - }, - ); - }), - ], - ), - floatingActionButton: OpenContainer( - transitionType: _transitionType, - openBuilder: (BuildContext context, void Function() openContainer) => const _DetailsPage(), - closedElevation: 6, - closedShape: const RoundedRectangleBorder( - borderRadius: BorderRadius.all( - Radius.circular(_fabDimension / 2), + floatingActionButton: OpenContainer( + transitionType: _transitionType, + openBuilder: + (BuildContext context, void Function() openContainer) => const _DetailsPage(), + closedElevation: 6, + closedShape: const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(_fabDimension / 2)), + ), + closedColor: colorScheme.secondary, + closedBuilder: (BuildContext context, void Function() openContainer) { + return SizedBox( + height: _fabDimension, + width: _fabDimension, + child: Center(child: Icon(Icons.add, color: colorScheme.onSecondary)), + ); + }, ), ), - closedColor: colorScheme.secondary, - closedBuilder: (BuildContext context, void Function() openContainer) { - return SizedBox( - height: _fabDimension, - width: _fabDimension, - child: Center( - child: Icon( - Icons.add, - color: colorScheme.onSecondary, - ), - ), - ); - }, - ), - ), ); }, ); @@ -315,10 +276,7 @@ class _OpenContainerTransformDemoState } class _OpenContainerWrapper extends StatelessWidget { - const _OpenContainerWrapper({ - required this.closedBuilder, - required this.transitionType, - }); + const _OpenContainerWrapper({required this.closedBuilder, required this.transitionType}); final CloseContainerBuilder closedBuilder; final ContainerTransitionType transitionType; @@ -362,26 +320,17 @@ class _DetailsCard extends StatelessWidget { ), ), ListTile( - title: Text( - localizations.demoMotionPlaceholderTitle, - ), - subtitle: Text( - localizations.demoMotionPlaceholderSubtitle, - ), + title: Text(localizations.demoMotionPlaceholderTitle), + subtitle: Text(localizations.demoMotionPlaceholderSubtitle), ), Padding( - padding: const EdgeInsets.only( - left: 16, - right: 16, - bottom: 16, - ), + padding: const EdgeInsets.only(left: 16, right: 16, bottom: 16), child: Text( 'Lorem ipsum dolor sit amet, consectetur ' 'adipiscing elit, sed do eiusmod tempor.', - style: Theme.of(context).textTheme.bodyMedium!.copyWith( - color: Colors.black54, - inherit: false, - ), + style: Theme.of( + context, + ).textTheme.bodyMedium!.copyWith(color: Colors.black54, inherit: false), ), ), ], @@ -391,10 +340,7 @@ class _DetailsCard extends StatelessWidget { } class _SmallDetailsCard extends StatelessWidget { - const _SmallDetailsCard({ - required this.openContainer, - required this.subtitle, - }); + const _SmallDetailsCard({required this.openContainer, required this.subtitle}); final VoidCallback openContainer; final String subtitle; @@ -428,17 +374,11 @@ class _SmallDetailsCard extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - GalleryLocalizations.of(context)! - .demoMotionPlaceholderTitle, + GalleryLocalizations.of(context)!.demoMotionPlaceholderTitle, style: textTheme.titleLarge, ), - const SizedBox( - height: 4, - ), - Text( - subtitle, - style: textTheme.bodySmall, - ), + const SizedBox(height: 4), + Text(subtitle, style: textTheme.bodySmall), ], ), ), @@ -483,13 +423,10 @@ class _DetailsListTile extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - GalleryLocalizations.of(context)! - .demoMotionPlaceholderTitle, + GalleryLocalizations.of(context)!.demoMotionPlaceholderTitle, style: textTheme.titleMedium, ), - const SizedBox( - height: 8, - ), + const SizedBox(height: 8), Text( 'Lorem ipsum dolor sit amet, consectetur ' 'adipiscing elit,', @@ -506,11 +443,7 @@ class _DetailsListTile extends StatelessWidget { } class _InkWellOverlay extends StatelessWidget { - const _InkWellOverlay({ - required this.openContainer, - required this.height, - required this.child, - }); + const _InkWellOverlay({required this.openContainer, required this.height, required this.child}); final VoidCallback openContainer; final double height; @@ -518,13 +451,7 @@ class _InkWellOverlay extends StatelessWidget { @override Widget build(BuildContext context) { - return SizedBox( - height: height, - child: InkWell( - onTap: openContainer, - child: child, - ), - ); + return SizedBox(height: height, child: InkWell(onTap: openContainer, child: child)); } } @@ -537,11 +464,7 @@ class _DetailsPage extends StatelessWidget { final TextTheme textTheme = Theme.of(context).textTheme; return Scaffold( - appBar: AppBar( - title: Text( - localizations.demoMotionDetailsPageTitle, - ), - ), + appBar: AppBar(title: Text(localizations.demoMotionDetailsPageTitle)), body: ListView( children: [ Container( @@ -562,14 +485,9 @@ class _DetailsPage extends StatelessWidget { children: [ Text( localizations.demoMotionPlaceholderTitle, - style: textTheme.headlineSmall!.copyWith( - color: Colors.black54, - fontSize: 30, - ), - ), - const SizedBox( - height: 10, + style: textTheme.headlineSmall!.copyWith(color: Colors.black54, fontSize: 30), ), + const SizedBox(height: 10), Text( _loremIpsumParagraph, style: textTheme.bodyMedium!.copyWith( diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart index 7f3c6cbd7a6a25f5cf748306f5702cc8a50e5e70..c6eced75121f8ab3477e6f561b25c34177f990c1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_scale_transition.dart @@ -12,8 +12,7 @@ class FadeScaleTransitionDemo extends StatefulWidget { const FadeScaleTransitionDemo({super.key}); @override - State createState() => - _FadeScaleTransitionDemoState(); + State createState() => _FadeScaleTransitionDemoState(); } class _FadeScaleTransitionDemoState extends State @@ -29,12 +28,12 @@ class _FadeScaleTransitionDemoState extends State reverseDuration: const Duration(milliseconds: 75), vsync: this, )..addStatusListener((AnimationStatus status) { - setState(() { - // setState needs to be called to trigger a rebuild because - // the 'HIDE FAB'/'SHOW FAB' button needs to be updated based - // the latest value of [_controller.status]. - }); + setState(() { + // setState needs to be called to trigger a rebuild because + // the 'HIDE FAB'/'SHOW FAB' button needs to be updated based + // the latest value of [_controller.status]. }); + }); } @override @@ -55,10 +54,7 @@ class _FadeScaleTransitionDemoState extends State } Widget _showExampleAlertDialog() { - return Theme( - data: Theme.of(context), - child: _ExampleAlertDialog(), - ); + return Theme(data: Theme.of(context), child: _ExampleAlertDialog()); } @override @@ -73,10 +69,7 @@ class _FadeScaleTransitionDemoState extends State Text(localizations.demoFadeScaleTitle), Text( '(${localizations.demoFadeScaleDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), + style: Theme.of(context).textTheme.titleSmall!.copyWith(color: Colors.white), ), ], ), @@ -84,17 +77,11 @@ class _FadeScaleTransitionDemoState extends State floatingActionButton: AnimatedBuilder( animation: _controller, builder: (BuildContext context, Widget? child) { - return FadeScaleTransition( - animation: _controller, - child: child, - ); + return FadeScaleTransition(animation: _controller, child: child); }, child: Visibility( visible: !_controller.isDismissed, - child: FloatingActionButton( - onPressed: () {}, - child: const Icon(Icons.add), - ), + child: FloatingActionButton(onPressed: () {}, child: const Icon(Icons.add)), ), ), bottomNavigationBar: Column( @@ -109,8 +96,9 @@ class _FadeScaleTransitionDemoState extends State ElevatedButton( onPressed: () { showModal( - context: context, - builder: (BuildContext context) => _showExampleAlertDialog()); + context: context, + builder: (BuildContext context) => _showExampleAlertDialog(), + ); }, child: Text(localizations.demoFadeScaleShowAlertDialogButton), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart index 875f356436726f7a3f251619985e25424e214797..db54c929912b11b75f454f5ddace6d65e2075ca8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_fade_through_transition.dart @@ -12,18 +12,13 @@ class FadeThroughTransitionDemo extends StatefulWidget { const FadeThroughTransitionDemo({super.key}); @override - State createState() => - _FadeThroughTransitionDemoState(); + State createState() => _FadeThroughTransitionDemoState(); } class _FadeThroughTransitionDemoState extends State { int _pageIndex = 0; - final List _pageList = [ - _AlbumsPage(), - _PhotosPage(), - _SearchPage(), - ]; + final List _pageList = [_AlbumsPage(), _PhotosPage(), _SearchPage()]; @override Widget build(BuildContext context) { @@ -37,10 +32,7 @@ class _FadeThroughTransitionDemoState extends State { Text(localizations.demoFadeThroughTitle), Text( '(${localizations.demoFadeThroughDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), + style: Theme.of(context).textTheme.titleSmall!.copyWith(color: Colors.white), ), ], ), @@ -130,10 +122,7 @@ class _ExampleCard extends StatelessWidget { ), ], ), - InkWell( - splashColor: Colors.black38, - onTap: () {}, - ), + InkWell(splashColor: Colors.black38, onTap: () {}), ], ), ), @@ -151,10 +140,7 @@ class _AlbumsPage extends StatelessWidget { (int index) => Expanded( child: Row( crossAxisAlignment: CrossAxisAlignment.stretch, - children: [ - _ExampleCard(), - _ExampleCard(), - ], + children: [_ExampleCard(), _ExampleCard()], ), ), ), @@ -166,12 +152,7 @@ class _AlbumsPage extends StatelessWidget { class _PhotosPage extends StatelessWidget { @override Widget build(BuildContext context) { - return Column( - children: [ - _ExampleCard(), - _ExampleCard(), - ], - ); + return Column(children: [_ExampleCard(), _ExampleCard()]); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart index 22fce434810ad122bc1b4b178f8b876d30e5491f..ca610c89eaf5ab9c7d8a02fd8e55407b314b86e1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_x_axis_transition.dart @@ -11,8 +11,7 @@ import '../../gallery_localizations.dart'; class SharedXAxisTransitionDemo extends StatefulWidget { const SharedXAxisTransitionDemo({super.key}); @override - State createState() => - _SharedXAxisTransitionDemoState(); + State createState() => _SharedXAxisTransitionDemoState(); } class _SharedXAxisTransitionDemoState extends State { @@ -37,10 +36,7 @@ class _SharedXAxisTransitionDemoState extends State { Text(localizations.demoSharedXAxisTitle), Text( '(${localizations.demoSharedXAxisDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), + style: Theme.of(context).textTheme.titleSmall!.copyWith(color: Colors.white), ), ], ), @@ -109,18 +105,13 @@ class _CoursePage extends StatelessWidget { padding: const EdgeInsets.symmetric(horizontal: 10), child: Text( localizations.demoSharedXAxisCoursePageSubtitle, - style: const TextStyle( - fontSize: 12, - color: Colors.grey, - ), + style: const TextStyle(fontSize: 12, color: Colors.grey), textAlign: TextAlign.center, ), ), - _CourseSwitch( - course: localizations.demoSharedXAxisArtsAndCraftsCourseTitle), + _CourseSwitch(course: localizations.demoSharedXAxisArtsAndCraftsCourseTitle), _CourseSwitch(course: localizations.demoSharedXAxisBusinessCourseTitle), - _CourseSwitch( - course: localizations.demoSharedXAxisIllustrationCourseTitle), + _CourseSwitch(course: localizations.demoSharedXAxisIllustrationCourseTitle), _CourseSwitch(course: localizations.demoSharedXAxisDesignCourseTitle), _CourseSwitch(course: localizations.demoSharedXAxisCulinaryCourseTitle), ], @@ -129,9 +120,7 @@ class _CoursePage extends StatelessWidget { } class _CourseSwitch extends StatefulWidget { - const _CourseSwitch({ - this.course, - }); + const _CourseSwitch({this.course}); final String? course; @@ -145,9 +134,10 @@ class _CourseSwitchState extends State<_CourseSwitch> { @override Widget build(BuildContext context) { final GalleryLocalizations? localizations = GalleryLocalizations.of(context); - final String subtitle = _isCourseBundled - ? localizations!.demoSharedXAxisBundledCourseSubtitle - : localizations!.demoSharedXAxisIndividualCourseSubtitle; + final String subtitle = + _isCourseBundled + ? localizations!.demoSharedXAxisBundledCourseSubtitle + : localizations!.demoSharedXAxisIndividualCourseSubtitle; return SwitchListTile( title: Text(widget.course!), @@ -193,10 +183,7 @@ class _SignInPage extends StatelessWidget { spacing, Text( localizations.demoSharedXAxisSignInSubtitleText, - style: const TextStyle( - fontSize: 12, - color: Colors.grey, - ), + style: const TextStyle(fontSize: 12, color: Colors.grey), ), Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -210,29 +197,20 @@ class _SignInPage extends StatelessWidget { ), child: TextField( decoration: InputDecoration( - suffixIcon: const Icon( - Icons.visibility, - size: 20, - color: Colors.black54, - ), - labelText: - localizations.demoSharedXAxisSignInTextFieldLabel, + suffixIcon: const Icon(Icons.visibility, size: 20, color: Colors.black54), + labelText: localizations.demoSharedXAxisSignInTextFieldLabel, border: const OutlineInputBorder(), ), ), ), TextButton( onPressed: () {}, - child: Text( - localizations.demoSharedXAxisForgotEmailButtonText, - ), + child: Text(localizations.demoSharedXAxisForgotEmailButtonText), ), spacing, TextButton( onPressed: () {}, - child: Text( - localizations.demoSharedXAxisCreateAccountButtonText, - ), + child: Text(localizations.demoSharedXAxisCreateAccountButtonText), ), ], ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart index 625c0141310d5f1ec9cf71ef1871c07b880e7266..bd01ae463a34a4abcb500d9b0e5eb32f848692d0 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_y_axis_transition.dart @@ -13,8 +13,7 @@ class SharedYAxisTransitionDemo extends StatefulWidget { const SharedYAxisTransitionDemo({super.key}); @override - State createState() => - _SharedYAxisTransitionDemoState(); + State createState() => _SharedYAxisTransitionDemoState(); } class _SharedYAxisTransitionDemoState extends State @@ -25,40 +24,22 @@ class _SharedYAxisTransitionDemoState extends State @override void initState() { super.initState(); - _controller = AnimationController( - duration: const Duration(milliseconds: 300), - vsync: this, - ); + _controller = AnimationController(duration: const Duration(milliseconds: 300), vsync: this); } final ListView _recentList = ListView( // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. key: UniqueKey(), - children: [ - for (int i = 0; i < 10; i++) _AlbumTile((i + 1).toString()), - ], + children: [for (int i = 0; i < 10; i++) _AlbumTile((i + 1).toString())], ); final ListView _alphabeticalList = ListView( // Adding [UniqueKey] to make sure the widget rebuilds when transitioning. key: UniqueKey(), - children: [ - for (final String letter in _alphabet) _AlbumTile(letter), - ], + children: [for (final String letter in _alphabet) _AlbumTile(letter)], ); - static const List _alphabet = [ - 'A', - 'B', - 'C', - 'D', - 'E', - 'F', - 'G', - 'H', - 'I', - 'J', - ]; + static const List _alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']; @override void dispose() { @@ -78,10 +59,7 @@ class _SharedYAxisTransitionDemoState extends State Text(localizations.demoSharedYAxisTitle), Text( '(${localizations.demoSharedYAxisDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), + style: Theme.of(context).textTheme.titleSmall!.copyWith(color: Colors.white), ), ], ), @@ -100,9 +78,7 @@ class _SharedYAxisTransitionDemoState extends State padding: const EdgeInsets.only(right: 7), child: InkWell( customBorder: const RoundedRectangleBorder( - borderRadius: BorderRadius.all( - Radius.circular(4), - ), + borderRadius: BorderRadius.all(Radius.circular(4)), ), onTap: () { if (!_isAlphabetical) { @@ -117,12 +93,13 @@ class _SharedYAxisTransitionDemoState extends State }, child: Row( children: [ - Text(_isAlphabetical - ? localizations.demoSharedYAxisAlphabeticalSortTitle - : localizations.demoSharedYAxisRecentSortTitle), + Text( + _isAlphabetical + ? localizations.demoSharedYAxisAlphabeticalSortTitle + : localizations.demoSharedYAxisRecentSortTitle, + ), RotationTransition( - turns: Tween(begin: 0.0, end: 1.0) - .animate(_controller.view), + turns: Tween(begin: 0.0, end: 1.0).animate(_controller.view), child: const Icon(Icons.arrow_drop_down), ), ], @@ -135,7 +112,11 @@ class _SharedYAxisTransitionDemoState extends State Expanded( child: PageTransitionSwitcher( reverse: _isAlphabetical, - transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { return SharedAxisTransition( animation: animation, secondaryAnimation: secondaryAnimation, @@ -168,9 +149,7 @@ class _AlbumTile extends StatelessWidget { height: 60, width: 60, decoration: const BoxDecoration( - borderRadius: BorderRadius.all( - Radius.circular(4), - ), + borderRadius: BorderRadius.all(Radius.circular(4)), color: Colors.grey, ), child: Padding( @@ -181,12 +160,8 @@ class _AlbumTile extends StatelessWidget { ), ), ), - title: Text( - '${localizations.demoSharedYAxisAlbumTileTitle} $_title', - ), - subtitle: Text( - localizations.demoSharedYAxisAlbumTileSubtitle, - ), + title: Text('${localizations.demoSharedYAxisAlbumTileTitle} $_title'), + subtitle: Text(localizations.demoSharedYAxisAlbumTileSubtitle), trailing: Text( '${randomNumberGenerator.nextInt(50) + 10} ' '${localizations.demoSharedYAxisAlbumTileDurationUnit}', diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart index f64e2b5f02da77cc7e2a6517792e2400ff48a4a7..1c33b691805b793decb59bd9d6f9c96c2df6f830 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/motion_demo_shared_z_axis_transition.dart @@ -22,7 +22,11 @@ class SharedZAxisTransitionDemo extends StatelessWidget { Route _createHomeRoute() { return PageRouteBuilder( - pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) { + pageBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return Scaffold( @@ -33,10 +37,7 @@ class SharedZAxisTransitionDemo extends StatelessWidget { Text(localizations.demoSharedZAxisTitle), Text( '(${localizations.demoSharedZAxisDemoInstructions})', - style: Theme.of(context) - .textTheme - .titleSmall! - .copyWith(color: Colors.white), + style: Theme.of(context).textTheme.titleSmall!.copyWith(color: Colors.white), ), ], ), @@ -52,7 +53,12 @@ class SharedZAxisTransitionDemo extends StatelessWidget { body: const _RecipePage(), ); }, - transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + transitionsBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { return SharedAxisTransition( fillColor: Colors.transparent, transitionType: SharedAxisTransitionType.scaled, @@ -66,9 +72,18 @@ class SharedZAxisTransitionDemo extends StatelessWidget { Route _createSettingsRoute() { return PageRouteBuilder( - pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) => - const _SettingsPage(), - transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + pageBuilder: + ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) => const _SettingsPage(), + transitionsBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { return SharedAxisTransition( fillColor: Colors.transparent, transitionType: SharedAxisTransitionType.scaled, @@ -89,30 +104,14 @@ class _SettingsPage extends StatelessWidget { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final List<_SettingsInfo> settingsList = <_SettingsInfo>[ - _SettingsInfo( - Icons.person, - localizations.demoSharedZAxisProfileSettingLabel, - ), - _SettingsInfo( - Icons.notifications, - localizations.demoSharedZAxisNotificationSettingLabel, - ), - _SettingsInfo( - Icons.security, - localizations.demoSharedZAxisPrivacySettingLabel, - ), - _SettingsInfo( - Icons.help, - localizations.demoSharedZAxisHelpSettingLabel, - ), + _SettingsInfo(Icons.person, localizations.demoSharedZAxisProfileSettingLabel), + _SettingsInfo(Icons.notifications, localizations.demoSharedZAxisNotificationSettingLabel), + _SettingsInfo(Icons.security, localizations.demoSharedZAxisPrivacySettingLabel), + _SettingsInfo(Icons.help, localizations.demoSharedZAxisHelpSettingLabel), ]; return Scaffold( - appBar: AppBar( - title: Text( - localizations.demoSharedZAxisSettingsPageTitle, - ), - ), + appBar: AppBar(title: Text(localizations.demoSharedZAxisSettingsPageTitle)), body: ListView( children: [ for (final _SettingsInfo setting in settingsList) _SettingsTile(setting), @@ -130,10 +129,7 @@ class _SettingsTile extends StatelessWidget { Widget build(BuildContext context) { return Column( children: [ - ListTile( - leading: Icon(settingData.settingIcon), - title: Text(settingData.settingsLabel), - ), + ListTile(leading: Icon(settingData.settingIcon), title: Text(settingData.settingsLabel)), const Divider(thickness: 2), ], ); @@ -201,7 +197,7 @@ class _RecipePage extends StatelessWidget { padding: const EdgeInsets.all(8), children: [ for (final _RecipeInfo recipe in savedRecipes) - _RecipeTile(recipe, savedRecipes.indexOf(recipe)) + _RecipeTile(recipe, savedRecipes.indexOf(recipe)), ], ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart index 14d0ee45e7e56f74b45d40d9e1b283467d1151c2..f0a12709ada64bf6cfe99d33e05375a4b742ec38 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo.dart @@ -19,8 +19,7 @@ class TransformationsDemo extends StatefulWidget { State createState() => _TransformationsDemoState(); } -class _TransformationsDemoState extends State - with TickerProviderStateMixin { +class _TransformationsDemoState extends State with TickerProviderStateMixin { final GlobalKey _targetKey = GlobalKey(); // The radius of a hexagon tile in pixels. static const double _kHexagonRadius = 16.0; @@ -35,8 +34,7 @@ class _TransformationsDemoState extends State hexagonMargin: _kHexagonMargin, ); - final TransformationController _transformationController = - TransformationController(); + final TransformationController _transformationController = TransformationController(); Animation? _animationReset; late AnimationController _controllerReset; Matrix4? _homeMatrix; @@ -80,10 +78,8 @@ class _TransformationsDemoState extends State } void _onTapUp(TapUpDetails details) { - final RenderBox renderBox = - _targetKey.currentContext!.findRenderObject()! as RenderBox; - final Offset offset = - details.globalPosition - renderBox.localToGlobal(Offset.zero); + final RenderBox renderBox = _targetKey.currentContext!.findRenderObject()! as RenderBox; + final Offset offset = details.globalPosition - renderBox.localToGlobal(Offset.zero); final Offset scenePoint = _transformationController.toScene(offset); final BoardPoint? boardPoint = _board.pointToBoardPoint(scenePoint); setState(() { @@ -94,9 +90,7 @@ class _TransformationsDemoState extends State @override void initState() { super.initState(); - _controllerReset = AnimationController( - vsync: this, - ); + _controllerReset = AnimationController(vsync: this); } @override @@ -107,8 +101,7 @@ class _TransformationsDemoState extends State backgroundColor: Theme.of(context).colorScheme.primary, appBar: AppBar( automaticallyImplyLeading: false, - title: - Text(GalleryLocalizations.of(context)!.demo2dTransformationsTitle), + title: Text(GalleryLocalizations.of(context)!.demo2dTransformationsTitle), ), body: ColoredBox( color: backgroundColor, @@ -116,18 +109,15 @@ class _TransformationsDemoState extends State builder: (BuildContext context, BoxConstraints constraints) { // Draw the scene as big as is available, but allow the user to // translate beyond that to a visibleSize that's a bit bigger. - final Size viewportSize = Size( - constraints.maxWidth, - constraints.maxHeight, - ); + final Size viewportSize = Size(constraints.maxWidth, constraints.maxHeight); // Start the first render, start the scene centered in the viewport. if (_homeMatrix == null) { - _homeMatrix = Matrix4.identity() - ..translate( - viewportSize.width / 2 - _board.size.width / 2, - viewportSize.height / 2 - _board.size.height / 2, - ); + _homeMatrix = + Matrix4.identity()..translate( + viewportSize.width / 2 - _board.size.width / 2, + viewportSize.height / 2 - _board.size.height / 2, + ); _transformationController.value = _homeMatrix!; } @@ -147,12 +137,7 @@ class _TransformationsDemoState extends State minScale: 0.01, onInteractionStart: _onScaleStart, child: SizedBox.expand( - child: CustomPaint( - size: _board.size, - painter: _BoardPainter( - board: _board, - ), - ), + child: CustomPaint(size: _board.size, painter: _BoardPainter(board: _board)), ), ), ), @@ -185,24 +170,24 @@ class _TransformationsDemoState extends State return; } showModalBottomSheet( - context: context, - builder: (BuildContext context) { - return Container( - width: double.infinity, - height: 150, - padding: const EdgeInsets.all(12), - child: EditBoardPoint( - boardPoint: _board.selected!, - onColorSelection: (Color color) { - setState(() { - _board = _board.copyWithBoardPointColor( - _board.selected!, color); - Navigator.pop(context); - }); - }, - ), - ); - }); + context: context, + builder: (BuildContext context) { + return Container( + width: double.infinity, + height: 150, + padding: const EdgeInsets.all(12), + child: EditBoardPoint( + boardPoint: _board.selected!, + onColorSelection: (Color color) { + setState(() { + _board = _board.copyWithBoardPointColor(_board.selected!, color); + Navigator.pop(context); + }); + }, + ), + ); + }, + ); }, tooltip: 'Edit', color: Theme.of(context).colorScheme.surface, @@ -227,9 +212,7 @@ class _BoardPainter extends CustomPainter { @override void paint(Canvas canvas, Size size) { void drawBoardPoint(BoardPoint? boardPoint) { - final Color color = boardPoint!.color.withOpacity( - board.selected == boardPoint ? 0.7 : 1, - ); + final Color color = boardPoint!.color.withOpacity(board.selected == boardPoint ? 0.7 : 1); final Vertices vertices = board.getVerticesForBoardPoint(boardPoint, color); canvas.drawVertices(vertices, BlendMode.color, Paint()); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart index 176232fa7c5ddf88998f6fe2cd8b9fdd065501dc..3e444d7c4cb1ff4e50caabc27ccb74b21f9e8710 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_board.dart @@ -20,9 +20,9 @@ class Board extends Object with IterableMixin { required this.hexagonMargin, this.selected, List? boardPoints, - }) : assert(boardRadius > 0), - assert(hexagonRadius > 0), - assert(hexagonMargin >= 0) { + }) : assert(boardRadius > 0), + assert(hexagonRadius > 0), + assert(hexagonMargin >= 0) { // Set up the positions for the center hexagon where the entire board is // centered on the origin. // Start point of hexagon (top vertex). @@ -125,22 +125,16 @@ class Board extends Object with IterableMixin { static int getDistance(BoardPoint a, BoardPoint b) { final Vector3 a3 = a.cubeCoordinates; final Vector3 b3 = b.cubeCoordinates; - return ((a3.x - b3.x).abs() + (a3.y - b3.y).abs() + (a3.z - b3.z).abs()) ~/ - 2; + return ((a3.x - b3.x).abs() + (a3.y - b3.y).abs() + (a3.z - b3.z).abs()) ~/ 2; } // Return the q,r BoardPoint for a point in the scene, where the origin is in // the center of the board in both coordinate systems. If no BoardPoint at the // location, return null. BoardPoint? pointToBoardPoint(Offset point) { - final Offset pointCentered = Offset( - point.dx - size.width / 2, - point.dy - size.height / 2, - ); + final Offset pointCentered = Offset(point.dx - size.width / 2, point.dy - size.height / 2); final BoardPoint boardPoint = BoardPoint( - ((sqrt(3) / 3 * pointCentered.dx - 1 / 3 * pointCentered.dy) / - hexagonRadius) - .round(), + ((sqrt(3) / 3 * pointCentered.dx - 1 / 3 * pointCentered.dy) / hexagonRadius).round(), ((2 / 3 * pointCentered.dy) / hexagonRadius).round(), ); @@ -167,9 +161,10 @@ class Board extends Object with IterableMixin { Vertices getVerticesForBoardPoint(BoardPoint boardPoint, Color color) { final Point centerOfHexZeroCenter = boardPointToPoint(boardPoint); - final List positions = positionsForHexagonAtOrigin.map((Offset offset) { - return offset.translate(centerOfHexZeroCenter.x, centerOfHexZeroCenter.y); - }).toList(); + final List positions = + positionsForHexagonAtOrigin.map((Offset offset) { + return offset.translate(centerOfHexZeroCenter.x, centerOfHexZeroCenter.y); + }).toList(); return Vertices( VertexMode.triangleFan, @@ -196,8 +191,9 @@ class Board extends Object with IterableMixin { // Return a new board where boardPoint has the given color. Board copyWithBoardPointColor(BoardPoint boardPoint, Color color) { final BoardPoint nextBoardPoint = boardPoint.copyWithColor(color); - final int boardPointIndex = _boardPoints.indexWhere((BoardPoint boardPointI) => - boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r); + final int boardPointIndex = _boardPoints.indexWhere( + (BoardPoint boardPointI) => boardPointI.q == boardPoint.q && boardPointI.r == boardPoint.r, + ); if (elementAt(boardPointIndex) == boardPoint && boardPoint.color == color) { return this; @@ -205,8 +201,7 @@ class Board extends Object with IterableMixin { final List nextBoardPoints = List.from(_boardPoints); nextBoardPoints[boardPointIndex] = nextBoardPoint; - final BoardPoint? selectedBoardPoint = - boardPoint == selected ? nextBoardPoint : selected; + final BoardPoint? selectedBoardPoint = boardPoint == selected ? nextBoardPoint : selected; return Board( boardRadius: boardRadius, hexagonRadius: hexagonRadius, @@ -258,11 +253,7 @@ class _Range { // https://www.redblobgames.com/grids/hexagons/#coordinates-axial @immutable class BoardPoint { - const BoardPoint( - this.q, - this.r, { - this.color = const Color(0xFFCDCDCD), - }); + const BoardPoint(this.q, this.r, {this.color = const Color(0xFFCDCDCD)}); final int q; final int r; @@ -285,16 +276,11 @@ class BoardPoint { @override int get hashCode => Object.hash(q, r); - BoardPoint copyWithColor(Color nextColor) => - BoardPoint(q, r, color: nextColor); + BoardPoint copyWithColor(Color nextColor) => BoardPoint(q, r, color: nextColor); // Convert from q,r axial coords to x,y,z cube coords. Vector3 get cubeCoordinates { - return Vector3( - q.toDouble(), - r.toDouble(), - (-q - r).toDouble(), - ); + return Vector3(q.toDouble(), r.toDouble(), (-q - r).toDouble()); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart index 8f8fffc989599b019348e929cddefc3b77c94fd0..850f1c759d95a12649150e4dc510f591e22ca770 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_color_picker.dart @@ -22,17 +22,18 @@ class ColorPicker extends StatelessWidget { Widget build(BuildContext context) { return Row( mainAxisAlignment: MainAxisAlignment.center, - children: colors.map((Color color) { - return _ColorPickerSwatch( - color: color, - selected: color == selectedColor, - onTap: () { - if (onColorSelection != null) { - onColorSelection!(color); - } - }, - ); - }).toList(), + children: + colors.map((Color color) { + return _ColorPickerSwatch( + color: color, + selected: color == selectedColor, + onTap: () { + if (onColorSelection != null) { + onColorSelection!(color); + } + }, + ); + }).toList(), ); } } @@ -40,11 +41,7 @@ class ColorPicker extends StatelessWidget { // A single selectable color widget in the ColorPicker. @immutable class _ColorPickerSwatch extends StatelessWidget { - const _ColorPickerSwatch({ - required this.color, - required this.selected, - this.onTap, - }); + const _ColorPickerSwatch({required this.color, required this.selected, this.onTap}); final Color color; final bool selected; @@ -63,12 +60,7 @@ class _ColorPickerSwatch extends StatelessWidget { onTap!(); } }, - child: !selected - ? null - : const Icon( - Icons.check, - color: Colors.white, - ), + child: !selected ? null : const Icon(Icons.check, color: Colors.white), ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart index c1742884c1cfec45f50346942756bc3a379419b5..163fb512a73a4cc80d7f3578d92700e4450c1a0a 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/transformations_demo_edit_board_point.dart @@ -12,11 +12,7 @@ const Color backgroundColor = Color(0xFF272727); // The panel for editing a board point. @immutable class EditBoardPoint extends StatelessWidget { - const EditBoardPoint({ - super.key, - required this.boardPoint, - this.onColorSelection, - }); + const EditBoardPoint({super.key, required this.boardPoint, this.onColorSelection}); final BoardPoint boardPoint; final ValueChanged? onColorSelection; diff --git a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart index 1ef872f2cff4ff69f71c4f42a86d0ea29e943fa3..df46f8e3d0de2196ef269e346c5de2d86adc3844 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/demos/reference/typography_demo.dart @@ -9,11 +9,7 @@ import '../../gallery_localizations.dart'; // BEGIN typographyDemo class _TextStyleItem extends StatelessWidget { - const _TextStyleItem({ - required this.name, - required this.style, - required this.text, - }); + const _TextStyleItem({required this.name, required this.style, required this.text}); final String name; final TextStyle style; @@ -25,13 +21,8 @@ class _TextStyleItem extends StatelessWidget { padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 16), child: Row( children: [ - SizedBox( - width: 72, - child: Text(name, style: Theme.of(context).textTheme.bodySmall), - ), - Expanded( - child: Text(text, style: style), - ), + SizedBox(width: 72, child: Text(name, style: Theme.of(context).textTheme.bodySmall)), + Expanded(child: Text(text, style: style)), ], ), ); @@ -45,66 +36,18 @@ class TypographyDemo extends StatelessWidget { Widget build(BuildContext context) { final TextTheme textTheme = Theme.of(context).textTheme; final List<_TextStyleItem> styleItems = <_TextStyleItem>[ - _TextStyleItem( - name: 'Headline 1', - style: textTheme.displayLarge!, - text: 'Light 96sp', - ), - _TextStyleItem( - name: 'Headline 2', - style: textTheme.displayMedium!, - text: 'Light 60sp', - ), - _TextStyleItem( - name: 'Headline 3', - style: textTheme.displaySmall!, - text: 'Regular 48sp', - ), - _TextStyleItem( - name: 'Headline 4', - style: textTheme.headlineMedium!, - text: 'Regular 34sp', - ), - _TextStyleItem( - name: 'Headline 5', - style: textTheme.headlineSmall!, - text: 'Regular 24sp', - ), - _TextStyleItem( - name: 'Headline 6', - style: textTheme.titleLarge!, - text: 'Medium 20sp', - ), - _TextStyleItem( - name: 'Subtitle 1', - style: textTheme.titleMedium!, - text: 'Regular 16sp', - ), - _TextStyleItem( - name: 'Subtitle 2', - style: textTheme.titleSmall!, - text: 'Medium 14sp', - ), - _TextStyleItem( - name: 'Body Text 1', - style: textTheme.bodyLarge!, - text: 'Regular 16sp', - ), - _TextStyleItem( - name: 'Body Text 2', - style: textTheme.bodyMedium!, - text: 'Regular 14sp', - ), - _TextStyleItem( - name: 'Button', - style: textTheme.labelLarge!, - text: 'MEDIUM (ALL CAPS) 14sp', - ), - _TextStyleItem( - name: 'Caption', - style: textTheme.bodySmall!, - text: 'Regular 12sp', - ), + _TextStyleItem(name: 'Headline 1', style: textTheme.displayLarge!, text: 'Light 96sp'), + _TextStyleItem(name: 'Headline 2', style: textTheme.displayMedium!, text: 'Light 60sp'), + _TextStyleItem(name: 'Headline 3', style: textTheme.displaySmall!, text: 'Regular 48sp'), + _TextStyleItem(name: 'Headline 4', style: textTheme.headlineMedium!, text: 'Regular 34sp'), + _TextStyleItem(name: 'Headline 5', style: textTheme.headlineSmall!, text: 'Regular 24sp'), + _TextStyleItem(name: 'Headline 6', style: textTheme.titleLarge!, text: 'Medium 20sp'), + _TextStyleItem(name: 'Subtitle 1', style: textTheme.titleMedium!, text: 'Regular 16sp'), + _TextStyleItem(name: 'Subtitle 2', style: textTheme.titleSmall!, text: 'Medium 14sp'), + _TextStyleItem(name: 'Body Text 1', style: textTheme.bodyLarge!, text: 'Regular 16sp'), + _TextStyleItem(name: 'Body Text 2', style: textTheme.bodyMedium!, text: 'Regular 14sp'), + _TextStyleItem(name: 'Button', style: textTheme.labelLarge!, text: 'MEDIUM (ALL CAPS) 14sp'), + _TextStyleItem(name: 'Caption', style: textTheme.bodySmall!, text: 'Regular 12sp'), _TextStyleItem( name: 'Overline', style: textTheme.labelSmall!, diff --git a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart index 7b0c4e09f83ab7276236d5e6fff2aa45bfb2d4c5..4334fdf6f42d00edd7e44f0b3076580a88254c72 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/animation.dart @@ -8,7 +8,6 @@ import 'package:flutter/material.dart'; /// /// Values are loosely based on Material Design specs, which are minimal. class Animations { - Animations( this.openController, this.tapController, @@ -33,83 +32,76 @@ class Animations { case FeatureDiscoveryStatus.closed: return const AlwaysStoppedAnimation(0); case FeatureDiscoveryStatus.open: - return Tween(begin: 0, end: backgroundMaxOpacity) - .animate(CurvedAnimation( - parent: openController, - curve: const Interval(0, 0.5, curve: Curves.ease), - )); + return Tween(begin: 0, end: backgroundMaxOpacity).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.tap: - return Tween(begin: backgroundMaxOpacity, end: 0) - .animate(CurvedAnimation( - parent: tapController, - curve: Curves.ease, - )); + return Tween( + begin: backgroundMaxOpacity, + end: 0, + ).animate(CurvedAnimation(parent: tapController, curve: Curves.ease)); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: backgroundMaxOpacity, end: 0) - .animate(CurvedAnimation( - parent: dismissController, - curve: const Interval(0.2, 1.0, curve: Curves.ease), - )); + return Tween(begin: backgroundMaxOpacity, end: 0).animate( + CurvedAnimation( + parent: dismissController, + curve: const Interval(0.2, 1.0, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.ripple: return const AlwaysStoppedAnimation(backgroundMaxOpacity); } } - Animation backgroundRadius( - FeatureDiscoveryStatus status, - double backgroundRadiusMax, - ) { + Animation backgroundRadius(FeatureDiscoveryStatus status, double backgroundRadiusMax) { switch (status) { case FeatureDiscoveryStatus.closed: return const AlwaysStoppedAnimation(0); case FeatureDiscoveryStatus.open: - return Tween(begin: 0, end: backgroundRadiusMax) - .animate(CurvedAnimation( - parent: openController, - curve: const Interval(0, 0.5, curve: Curves.ease), - )); + return Tween(begin: 0, end: backgroundRadiusMax).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.tap: return Tween( - begin: backgroundRadiusMax, - end: backgroundRadiusMax + backgroundTapRadius) - .animate(CurvedAnimation( - parent: tapController, - curve: Curves.ease, - )); + begin: backgroundRadiusMax, + end: backgroundRadiusMax + backgroundTapRadius, + ).animate(CurvedAnimation(parent: tapController, curve: Curves.ease)); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: backgroundRadiusMax, end: 0) - .animate(CurvedAnimation( - parent: dismissController, - curve: Curves.ease, - )); + return Tween( + begin: backgroundRadiusMax, + end: 0, + ).animate(CurvedAnimation(parent: dismissController, curve: Curves.ease)); case FeatureDiscoveryStatus.ripple: return AlwaysStoppedAnimation(backgroundRadiusMax); } } - Animation backgroundCenter( - FeatureDiscoveryStatus status, - Offset start, - Offset end, - ) { + Animation backgroundCenter(FeatureDiscoveryStatus status, Offset start, Offset end) { switch (status) { case FeatureDiscoveryStatus.closed: return AlwaysStoppedAnimation(start); case FeatureDiscoveryStatus.open: - return Tween(begin: start, end: end).animate(CurvedAnimation( - parent: openController, - curve: const Interval(0, 0.5, curve: Curves.ease), - )); + return Tween(begin: start, end: end).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.5, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.tap: - return Tween(begin: end, end: start).animate(CurvedAnimation( - parent: tapController, - curve: Curves.ease, - )); + return Tween( + begin: end, + end: start, + ).animate(CurvedAnimation(parent: tapController, curve: Curves.ease)); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: end, end: start).animate(CurvedAnimation( - parent: dismissController, - curve: Curves.ease, - )); + return Tween( + begin: end, + end: start, + ).animate(CurvedAnimation(parent: dismissController, curve: Curves.ease)); case FeatureDiscoveryStatus.ripple: return AlwaysStoppedAnimation(end); } @@ -120,20 +112,23 @@ class Animations { case FeatureDiscoveryStatus.closed: return const AlwaysStoppedAnimation(0); case FeatureDiscoveryStatus.open: - return Tween(begin: 0, end: 1.0).animate(CurvedAnimation( - parent: openController, - curve: const Interval(0.4, 0.7, curve: Curves.ease), - )); + return Tween(begin: 0, end: 1.0).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0.4, 0.7, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.tap: - return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( - parent: tapController, - curve: const Interval(0, 0.4, curve: Curves.ease), - )); + return Tween(begin: 1.0, end: 0).animate( + CurvedAnimation(parent: tapController, curve: const Interval(0, 0.4, curve: Curves.ease)), + ); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( - parent: dismissController, - curve: const Interval(0, 0.4, curve: Curves.ease), - )); + return Tween(begin: 1.0, end: 0).animate( + CurvedAnimation( + parent: dismissController, + curve: const Interval(0, 0.4, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.ripple: return const AlwaysStoppedAnimation(1.0); } @@ -142,11 +137,12 @@ class Animations { Animation rippleOpacity(FeatureDiscoveryStatus status) { switch (status) { case FeatureDiscoveryStatus.ripple: - return Tween(begin: rippleMaxOpacity, end: 0) - .animate(CurvedAnimation( - parent: rippleController, - curve: const Interval(0.3, 0.8, curve: Curves.ease), - )); + return Tween(begin: rippleMaxOpacity, end: 0).animate( + CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.8, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.closed: case FeatureDiscoveryStatus.open: case FeatureDiscoveryStatus.tap: @@ -159,11 +155,12 @@ class Animations { switch (status) { case FeatureDiscoveryStatus.ripple: if (rippleController.value >= 0.3 && rippleController.value <= 0.8) { - return Tween(begin: tapTargetMaxRadius, end: 79.0) - .animate(CurvedAnimation( - parent: rippleController, - curve: const Interval(0.3, 0.8, curve: Curves.ease), - )); + return Tween(begin: tapTargetMaxRadius, end: 79.0).animate( + CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.8, curve: Curves.ease), + ), + ); } return const AlwaysStoppedAnimation(tapTargetMaxRadius); case FeatureDiscoveryStatus.closed: @@ -179,20 +176,26 @@ class Animations { case FeatureDiscoveryStatus.closed: return const AlwaysStoppedAnimation(0); case FeatureDiscoveryStatus.open: - return Tween(begin: 0, end: 1.0).animate(CurvedAnimation( - parent: openController, - curve: const Interval(0, 0.4, curve: Curves.ease), - )); + return Tween(begin: 0, end: 1.0).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.4, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.tap: - return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( - parent: tapController, - curve: const Interval(0.1, 0.6, curve: Curves.ease), - )); + return Tween(begin: 1.0, end: 0).animate( + CurvedAnimation( + parent: tapController, + curve: const Interval(0.1, 0.6, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: 1.0, end: 0).animate(CurvedAnimation( - parent: dismissController, - curve: const Interval(0.2, 0.8, curve: Curves.ease), - )); + return Tween(begin: 1.0, end: 0).animate( + CurvedAnimation( + parent: dismissController, + curve: const Interval(0.2, 0.8, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.ripple: return const AlwaysStoppedAnimation(1.0); } @@ -203,40 +206,39 @@ class Animations { case FeatureDiscoveryStatus.closed: return const AlwaysStoppedAnimation(tapTargetMinRadius); case FeatureDiscoveryStatus.open: - return Tween(begin: tapTargetMinRadius, end: tapTargetMaxRadius) - .animate(CurvedAnimation( - parent: openController, - curve: const Interval(0, 0.4, curve: Curves.ease), - )); + return Tween(begin: tapTargetMinRadius, end: tapTargetMaxRadius).animate( + CurvedAnimation( + parent: openController, + curve: const Interval(0, 0.4, curve: Curves.ease), + ), + ); case FeatureDiscoveryStatus.ripple: if (rippleController.value < 0.3) { - return Tween( - begin: tapTargetMaxRadius, end: tapTargetRippleRadius) - .animate(CurvedAnimation( - parent: rippleController, - curve: const Interval(0, 0.3, curve: Curves.ease), - )); + return Tween(begin: tapTargetMaxRadius, end: tapTargetRippleRadius).animate( + CurvedAnimation( + parent: rippleController, + curve: const Interval(0, 0.3, curve: Curves.ease), + ), + ); } else if (rippleController.value < 0.6) { - return Tween( - begin: tapTargetRippleRadius, end: tapTargetMaxRadius) - .animate(CurvedAnimation( - parent: rippleController, - curve: const Interval(0.3, 0.6, curve: Curves.ease), - )); + return Tween(begin: tapTargetRippleRadius, end: tapTargetMaxRadius).animate( + CurvedAnimation( + parent: rippleController, + curve: const Interval(0.3, 0.6, curve: Curves.ease), + ), + ); } return const AlwaysStoppedAnimation(tapTargetMaxRadius); case FeatureDiscoveryStatus.tap: - return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius) - .animate(CurvedAnimation( - parent: tapController, - curve: Curves.ease, - )); + return Tween( + begin: tapTargetMaxRadius, + end: tapTargetMinRadius, + ).animate(CurvedAnimation(parent: tapController, curve: Curves.ease)); case FeatureDiscoveryStatus.dismiss: - return Tween(begin: tapTargetMaxRadius, end: tapTargetMinRadius) - .animate(CurvedAnimation( - parent: dismissController, - curve: Curves.ease, - )); + return Tween( + begin: tapTargetMaxRadius, + end: tapTargetMinRadius, + ).animate(CurvedAnimation(parent: dismissController, curve: Curves.ease)); } } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart index 73a02ac035f68d826012fe469049607113129c46..5373d71b82e0ca4b6cd0ed898eb752c0b9666a5b 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/feature_discovery.dart @@ -16,7 +16,6 @@ import 'overlay.dart'; /// Users wanting to use [FeatureDiscovery] need to put this controller /// above [FeatureDiscovery] widgets in the widget tree. class FeatureDiscoveryController extends StatefulWidget { - const FeatureDiscoveryController(this.child, {super.key}); final Widget child; @@ -28,18 +27,17 @@ class FeatureDiscoveryController extends StatefulWidget { } throw FlutterError( - 'FeatureDiscoveryController.of() called with a context that does not ' - 'contain a FeatureDiscoveryController.\n The context used was:\n ' - '$context'); + 'FeatureDiscoveryController.of() called with a context that does not ' + 'contain a FeatureDiscoveryController.\n The context used was:\n ' + '$context', + ); } @override - State createState() => - _FeatureDiscoveryControllerState(); + State createState() => _FeatureDiscoveryControllerState(); } -class _FeatureDiscoveryControllerState - extends State { +class _FeatureDiscoveryControllerState extends State { bool _isLocked = false; /// Flag to indicate whether a [FeatureDiscovery] widget descendant is @@ -65,8 +63,7 @@ class _FeatureDiscoveryControllerState void didChangeDependencies() { super.didChangeDependencies(); assert( - context.findAncestorStateOfType<_FeatureDiscoveryControllerState>() == - null, + context.findAncestorStateOfType<_FeatureDiscoveryControllerState>() == null, 'There should not be another ancestor of type ' 'FeatureDiscoveryController in the widget tree.', ); @@ -81,7 +78,6 @@ class _FeatureDiscoveryControllerState /// This widget loosely follows the guidelines set forth in the Material Specs: /// https://material.io/archive/guidelines/growth-communications/feature-discovery.html. class FeatureDiscovery extends StatefulWidget { - const FeatureDiscovery({ super.key, required this.title, @@ -92,6 +88,7 @@ class FeatureDiscovery extends StatefulWidget { this.onTap, this.color, }); + /// Title to be displayed in the overlay. final String title; @@ -124,8 +121,7 @@ class FeatureDiscovery extends StatefulWidget { State createState() => _FeatureDiscoveryState(); } -class _FeatureDiscoveryState extends State - with TickerProviderStateMixin { +class _FeatureDiscoveryState extends State with TickerProviderStateMixin { bool showOverlay = false; FeatureDiscoveryStatus status = FeatureDiscoveryStatus.closed; @@ -179,11 +175,7 @@ class _FeatureDiscoveryState extends State description: widget.description, textTheme: Theme.of(ctx).textTheme, ), - Ripple( - animations: animations, - status: status, - center: center, - ), + Ripple(animations: animations, status: status, center: center), TapTarget( animations: animations, status: status, @@ -219,36 +211,38 @@ class _FeatureDiscoveryState extends State @override Widget build(BuildContext context) { - return LayoutBuilder(builder: (BuildContext ctx, _) { - if (overlay != null) { - SchedulerBinding.instance.addPostFrameCallback((_) { - // [OverlayEntry] needs to be explicitly rebuilt when necessary. - overlay!.markNeedsBuild(); - }); - } else { - if (showOverlay && !FeatureDiscoveryController._of(ctx).isLocked) { - final OverlayEntry entry = OverlayEntry( - builder: (_) => buildOverlay(ctx, getOverlayCenter(ctx)), - ); - - // Lock [FeatureDiscoveryController] early in order to prevent - // another [FeatureDiscovery] widget from trying to show its - // overlay while the post frame callback and set state are not - // complete. - FeatureDiscoveryController._of(ctx).lock(); - + return LayoutBuilder( + builder: (BuildContext ctx, _) { + if (overlay != null) { SchedulerBinding.instance.addPostFrameCallback((_) { - setState(() { - overlay = entry; - status = FeatureDiscoveryStatus.closed; - openController.forward(from: 0.0); - }); - Overlay.of(context).insert(entry); + // [OverlayEntry] needs to be explicitly rebuilt when necessary. + overlay!.markNeedsBuild(); }); + } else { + if (showOverlay && !FeatureDiscoveryController._of(ctx).isLocked) { + final OverlayEntry entry = OverlayEntry( + builder: (_) => buildOverlay(ctx, getOverlayCenter(ctx)), + ); + + // Lock [FeatureDiscoveryController] early in order to prevent + // another [FeatureDiscovery] widget from trying to show its + // overlay while the post frame callback and set state are not + // complete. + FeatureDiscoveryController._of(ctx).lock(); + + SchedulerBinding.instance.addPostFrameCallback((_) { + setState(() { + overlay = entry; + status = FeatureDiscoveryStatus.closed; + openController.forward(from: 0.0); + }); + Overlay.of(context).insert(entry); + }); + } } - } - return widget.child; - }); + return widget.child; + }, + ); } /// Compute the center position of the overlay. @@ -279,92 +273,79 @@ class _FeatureDiscoveryState extends State } void initAnimationControllers() { - openController = AnimationController( - duration: const Duration(milliseconds: 500), - vsync: this, - ) - ..addListener(() { - setState(() {}); - }) - ..addStatusListener((AnimationStatus animationStatus) { - switch (animationStatus) { - case AnimationStatus.forward: - setState(() => status = FeatureDiscoveryStatus.open); - case AnimationStatus.completed: - rippleController.forward(from: 0.0); - case AnimationStatus.reverse: - case AnimationStatus.dismissed: - break; - } - }); - - rippleController = AnimationController( - duration: const Duration(milliseconds: 1000), - vsync: this, - ) - ..addListener(() { - setState(() {}); - }) - ..addStatusListener((AnimationStatus animationStatus) { - switch (animationStatus) { - case AnimationStatus.forward: - setState(() => status = FeatureDiscoveryStatus.ripple); - case AnimationStatus.completed: - rippleController.forward(from: 0.0); - case AnimationStatus.reverse: - case AnimationStatus.dismissed: - break; - } - }); - - tapController = AnimationController( - duration: const Duration(milliseconds: 250), - vsync: this, - ) - ..addListener(() { - setState(() {}); - }) - ..addStatusListener((AnimationStatus animationStatus) { - switch (animationStatus) { - case AnimationStatus.forward: - setState(() => status = FeatureDiscoveryStatus.tap); - case AnimationStatus.completed: - widget.onTap?.call(); - cleanUponOverlayClose(); - case AnimationStatus.reverse: - case AnimationStatus.dismissed: - break; - } - }); - - dismissController = AnimationController( - duration: const Duration(milliseconds: 250), - vsync: this, - ) - ..addListener(() { - setState(() {}); - }) - ..addStatusListener((AnimationStatus animationStatus) { - switch (animationStatus) { - case AnimationStatus.forward: - setState(() => status = FeatureDiscoveryStatus.dismiss); - case AnimationStatus.completed: - widget.onDismiss?.call(); - cleanUponOverlayClose(); - case AnimationStatus.reverse: - case AnimationStatus.dismissed: - break; - } - }); + openController = + AnimationController(duration: const Duration(milliseconds: 500), vsync: this) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.open); + case AnimationStatus.completed: + rippleController.forward(from: 0.0); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + rippleController = + AnimationController(duration: const Duration(milliseconds: 1000), vsync: this) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.ripple); + case AnimationStatus.completed: + rippleController.forward(from: 0.0); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + tapController = + AnimationController(duration: const Duration(milliseconds: 250), vsync: this) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.tap); + case AnimationStatus.completed: + widget.onTap?.call(); + cleanUponOverlayClose(); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); + + dismissController = + AnimationController(duration: const Duration(milliseconds: 250), vsync: this) + ..addListener(() { + setState(() {}); + }) + ..addStatusListener((AnimationStatus animationStatus) { + switch (animationStatus) { + case AnimationStatus.forward: + setState(() => status = FeatureDiscoveryStatus.dismiss); + case AnimationStatus.completed: + widget.onDismiss?.call(); + cleanUponOverlayClose(); + case AnimationStatus.reverse: + case AnimationStatus.dismissed: + break; + } + }); } void initAnimations() { - animations = Animations( - openController, - tapController, - rippleController, - dismissController, - ); + animations = Animations(openController, tapController, rippleController, dismissController); } /// Clean up once overlay has been dismissed or tap target has been tapped. diff --git a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart index 9052c0cdc4bcbd3dea1ce4101dec2c235b5f0ea5..5615b4a764bccc1ff46805693fb1db3d276d6bbb 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/feature_discovery/overlay.dart @@ -16,7 +16,6 @@ const double gutterHeight = 88.0; /// Background of the overlay. class Background extends StatelessWidget { - const Background({ super.key, required this.animations, @@ -26,6 +25,7 @@ class Background extends StatelessWidget { required this.status, required this.textDirection, }); + /// Animations. final Animations animations; @@ -63,20 +63,14 @@ class Background extends StatelessWidget { // [Content] from the [center]. double endY; if (_isOnTopHalfOfScreen(center, deviceSize)) { - endY = center.dy - - tapTargetRadius - - tapTargetToContentDistance - - contentHeight; + endY = center.dy - tapTargetRadius - tapTargetToContentDistance - contentHeight; if (endY < 0.0) { endY = center.dy + tapTargetRadius + tapTargetToContentDistance; } } else { endY = center.dy + tapTargetRadius + tapTargetToContentDistance; if (endY + contentHeight > deviceSize.height) { - endY = center.dy - - tapTargetRadius - - tapTargetToContentDistance - - contentHeight; + endY = center.dy - tapTargetRadius - tapTargetToContentDistance - contentHeight; } } @@ -86,9 +80,7 @@ class Background extends StatelessWidget { if (_isOnLeftHalfOfScreen(center, deviceSize)) { shift = horizontalShift; } else if (center.dx == deviceSize.width / 2) { - shift = textDirection == TextDirection.ltr - ? -horizontalShift - : horizontalShift; + shift = textDirection == TextDirection.ltr ? -horizontalShift : horizontalShift; } else { shift = -horizontalShift; } @@ -125,22 +117,20 @@ class Background extends StatelessWidget { @override Widget build(BuildContext context) { return Positioned( - left: centerPosition.dx, - top: centerPosition.dy, - child: FractionalTranslation( - translation: const Offset(-0.5, -0.5), - child: Opacity( - opacity: opacity, - child: Container( - height: radius * 2, - width: radius * 2, - decoration: BoxDecoration( - shape: BoxShape.circle, - color: color, - ), - ), + left: centerPosition.dx, + top: centerPosition.dy, + child: FractionalTranslation( + translation: const Offset(-0.5, -0.5), + child: Opacity( + opacity: opacity, + child: Container( + height: radius * 2, + width: radius * 2, + decoration: BoxDecoration(shape: BoxShape.circle, color: color), ), - )); + ), + ), + ); } /// Compute the maximum distance from [point] to the four corners of [bounds]. @@ -159,7 +149,6 @@ class Background extends StatelessWidget { /// Widget that represents the text to show in the overlay. class Content extends StatelessWidget { - const Content({ super.key, required this.animations, @@ -170,6 +159,7 @@ class Content extends StatelessWidget { required this.title, required this.textTheme, }); + /// Animations. final Animations animations; @@ -237,13 +227,8 @@ class Content extends StatelessWidget { /// Widget that represents the ripple effect of [TapTarget]. class Ripple extends StatelessWidget { + const Ripple({super.key, required this.animations, required this.center, required this.status}); - const Ripple({ - super.key, - required this.animations, - required this.center, - required this.status, - }); /// Animations. final Animations animations; @@ -268,10 +253,7 @@ class Ripple extends StatelessWidget { child: Container( height: radius * 2, width: radius * 2, - decoration: const BoxDecoration( - color: Colors.white, - shape: BoxShape.circle, - ), + decoration: const BoxDecoration(color: Colors.white, shape: BoxShape.circle), ), ), ), @@ -281,7 +263,6 @@ class Ripple extends StatelessWidget { /// Wrapper widget around [child] representing the anchor of the overlay. class TapTarget extends StatelessWidget { - const TapTarget({ super.key, required this.animations, @@ -290,6 +271,7 @@ class TapTarget extends StatelessWidget { required this.onTap, required this.child, }); + /// Animations. final Animations animations; @@ -324,9 +306,8 @@ class TapTarget extends StatelessWidget { height: radius * 2, width: radius * 2, decoration: BoxDecoration( - color: theme.brightness == Brightness.dark - ? theme.colorScheme.primary - : Colors.white, + color: + theme.brightness == Brightness.dark ? theme.colorScheme.primary : Colors.white, shape: BoxShape.circle, ), child: child, @@ -345,32 +326,24 @@ class TapTarget extends StatelessWidget { Rect _getContentBounds(Size deviceSize, Offset overlayCenter) { double top; if (_isOnTopHalfOfScreen(overlayCenter, deviceSize)) { - top = overlayCenter.dy - - tapTargetRadius - - tapTargetToContentDistance - - contentHeight; + top = overlayCenter.dy - tapTargetRadius - tapTargetToContentDistance - contentHeight; if (top < 0) { top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance; } } else { top = overlayCenter.dy + tapTargetRadius + tapTargetToContentDistance; if (top + contentHeight > deviceSize.height) { - top = overlayCenter.dy - - tapTargetRadius - - tapTargetToContentDistance - - contentHeight; + top = overlayCenter.dy - tapTargetRadius - tapTargetToContentDistance - contentHeight; } } final double left = max(contentHorizontalPadding, overlayCenter.dx - contentWidth); - final double right = - min(deviceSize.width - contentHorizontalPadding, left + contentWidth); + final double right = min(deviceSize.width - contentHorizontalPadding, left + contentWidth); return Rect.fromLTRB(left, top, right, top + contentHeight); } bool _isNearTopOrBottomEdges(Offset position, Size deviceSize) { - return position.dy <= gutterHeight || - (deviceSize.height - position.dy) <= gutterHeight; + return position.dy <= gutterHeight || (deviceSize.height - position.dy) <= gutterHeight; } bool _isOnTopHalfOfScreen(Offset position, Size deviceSize) { diff --git a/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart b/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart index 2dacb92304d7701c9c37b8b187ebdbee000180a2..7e206f01cfd43119df05ed867be6974918433273 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/gallery_localizations.dart @@ -71,7 +71,8 @@ abstract class GalleryLocalizations { return Localizations.of(context, GalleryLocalizations); } - static const LocalizationsDelegate delegate = _GalleryLocalizationsDelegate(); + static const LocalizationsDelegate delegate = + _GalleryLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -83,18 +84,16 @@ abstract class GalleryLocalizations { /// Additional delegates can be added by appending to this list in /// MaterialApp. This list does not have to be used at all if a custom list /// of delegates is preferred or required. - static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + static const List> localizationsDelegates = + >[ + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - Locale('en', 'IS') - ]; + static const List supportedLocales = [Locale('en'), Locale('en', 'IS')]; /// Represents a link to a GitHub repository. /// @@ -670,7 +669,12 @@ abstract class GalleryLocalizations { /// /// In en, this message translates to: /// **'{budgetName} budget with {amountUsed} used of {amountTotal}, {amountLeft} left'** - String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft); + String rallyBudgetAmount( + Object budgetName, + Object amountUsed, + Object amountTotal, + Object amountLeft, + ); /// Study description for Crane. /// @@ -4925,26 +4929,28 @@ class _GalleryLocalizationsDelegate extends LocalizationsDelegate 'SIGN IN'; @override - String get bannerDemoText => 'Your password was updated on your other device. Please sign in again.'; + String get bannerDemoText => + 'Your password was updated on your other device. Please sign in again.'; @override String get bannerDemoResetText => 'Reset the banner'; @@ -298,7 +299,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { final String temp0 = intl.Intl.pluralLogic( count, locale: localeName, - other: 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', + other: + 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', one: 'Increase your potential tax deduction! Assign categories to 1 unassigned transaction.', ); return temp0; @@ -324,7 +326,12 @@ class GalleryLocalizationsEn extends GalleryLocalizations { } @override - String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft) { + String rallyBudgetAmount( + Object budgetName, + Object amountUsed, + Object amountTotal, + Object amountLeft, + ) { return '$budgetName budget with $amountUsed used of $amountTotal, $amountLeft left'; } @@ -439,10 +446,12 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoAppBarTitle => 'App bar'; @override - String get demoAppBarSubtitle => 'Displays information and actions relating to the current screen'; + String get demoAppBarSubtitle => + 'Displays information and actions relating to the current screen'; @override - String get demoAppBarDescription => "The App bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions"; + String get demoAppBarDescription => + "The App bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation, and actions"; @override String get demoBottomAppBarTitle => 'Bottom app bar'; @@ -451,7 +460,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoBottomAppBarSubtitle => 'Displays navigation and actions at the bottom'; @override - String get demoBottomAppBarDescription => 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; + String get demoBottomAppBarDescription => + 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; @override String get bottomAppBarNotch => 'Notch'; @@ -478,7 +488,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoBannerSubtitle => 'Displaying a banner within a list'; @override - String get demoBannerDescription => 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; + String get demoBannerDescription => + 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; @override String get demoBottomNavigationTitle => 'Bottom navigation'; @@ -493,7 +504,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoBottomNavigationSelectedLabel => 'Selected label'; @override - String get demoBottomNavigationDescription => 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; + String get demoBottomNavigationDescription => + 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; @override String get demoButtonTitle => 'Buttons'; @@ -505,31 +517,36 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTextButtonTitle => 'Text Button'; @override - String get demoTextButtonDescription => 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogs and inline with padding'; + String get demoTextButtonDescription => + 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogs and inline with padding'; @override String get demoElevatedButtonTitle => 'Elevated Button'; @override - String get demoElevatedButtonDescription => 'Elevated buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.'; + String get demoElevatedButtonDescription => + 'Elevated buttons add dimension to mostly flat layouts. They emphasize functions on busy or wide spaces.'; @override String get demoOutlinedButtonTitle => 'Outlined Button'; @override - String get demoOutlinedButtonDescription => 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; + String get demoOutlinedButtonDescription => + 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; @override String get demoToggleButtonTitle => 'Toggle Buttons'; @override - String get demoToggleButtonDescription => 'Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container'; + String get demoToggleButtonDescription => + 'Toggle buttons can be used to group related options. To emphasize groups of related toggle buttons, a group should share a common container'; @override String get demoFloatingButtonTitle => 'Floating Action Button'; @override - String get demoFloatingButtonDescription => 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; + String get demoFloatingButtonDescription => + 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; @override String get demoCardTitle => 'Cards'; @@ -541,7 +558,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoChipTitle => 'Chips'; @override - String get demoCardDescription => 'A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.'; + String get demoCardDescription => + 'A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc.'; @override String get demoChipSubtitle => 'Compact elements that represent an input, attribute, or action'; @@ -550,25 +568,29 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoActionChipTitle => 'Action Chip'; @override - String get demoActionChipDescription => 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; + String get demoActionChipDescription => + 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; @override String get demoChoiceChipTitle => 'Choice Chip'; @override - String get demoChoiceChipDescription => 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; + String get demoChoiceChipDescription => + 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; @override String get demoFilterChipTitle => 'Filter Chip'; @override - String get demoFilterChipDescription => 'Filter chips use tags or descriptive words as a way to filter content.'; + String get demoFilterChipDescription => + 'Filter chips use tags or descriptive words as a way to filter content.'; @override String get demoInputChipTitle => 'Input Chip'; @override - String get demoInputChipDescription => 'Input chips represent a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.'; + String get demoInputChipDescription => + 'Input chips represent a complex piece of information, such as an entity (person, place, or thing) or conversational text, in a compact form.'; @override String get demoDataTableTitle => 'Data Tables'; @@ -577,7 +599,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoDataTableSubtitle => 'Rows and columns of information'; @override - String get demoDataTableDescription => "Data tables display information in a grid-like format of rows and columns. They organize information in a way that's easy to scan, so that users can look for patterns and insights."; + String get demoDataTableDescription => + "Data tables display information in a grid-like format of rows and columns. They organize information in a way that's easy to scan, so that users can look for patterns and insights."; @override String get dataTableHeader => 'Nutrition'; @@ -656,7 +679,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoAlertDialogTitle => 'Alert'; @override - String get demoAlertDialogDescription => 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.'; + String get demoAlertDialogDescription => + 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title and an optional list of actions.'; @override String get demoAlertTitleDialogTitle => 'Alert With Title'; @@ -665,16 +689,19 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSimpleDialogTitle => 'Simple'; @override - String get demoSimpleDialogDescription => 'A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.'; + String get demoSimpleDialogDescription => + 'A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.'; @override String get demoDividerTitle => 'Divider'; @override - String get demoDividerSubtitle => 'A divider is a thin line that groups content in lists and layouts.'; + String get demoDividerSubtitle => + 'A divider is a thin line that groups content in lists and layouts.'; @override - String get demoDividerDescription => 'Dividers can be used in lists, drawers, and elsewhere to separate content.'; + String get demoDividerDescription => + 'Dividers can be used in lists, drawers, and elsewhere to separate content.'; @override String get demoVerticalDividerTitle => 'Vertical Divider'; @@ -686,7 +713,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoGridListsSubtitle => 'Row and column layout'; @override - String get demoGridListsDescription => 'Grid Lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; + String get demoGridListsDescription => + 'Grid Lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; @override String get demoGridListsImageOnlyTitle => 'Image only'; @@ -704,22 +732,26 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSlidersSubtitle => 'Widgets for selecting a value by swiping'; @override - String get demoSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; + String get demoSlidersDescription => + 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; @override String get demoRangeSlidersTitle => 'Range Sliders'; @override - String get demoRangeSlidersDescription => 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; + String get demoRangeSlidersDescription => + 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness, or applying image filters.'; @override String get demoCustomSlidersTitle => 'Custom Sliders'; @override - String get demoCustomSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customized.'; + String get demoCustomSlidersDescription => + 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customized.'; @override - String get demoSlidersContinuousWithEditableNumericalValue => 'Continuous with Editable Numerical Value'; + String get demoSlidersContinuousWithEditableNumericalValue => + 'Continuous with Editable Numerical Value'; @override String get demoSlidersDiscrete => 'Discrete'; @@ -728,7 +760,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSlidersDiscreteSliderWithCustomTheme => 'Discrete Slider with Custom Theme'; @override - String get demoSlidersContinuousRangeSliderWithCustomTheme => 'Continuous Range Slider with Custom Theme'; + String get demoSlidersContinuousRangeSliderWithCustomTheme => + 'Continuous Range Slider with Custom Theme'; @override String get demoSlidersContinuous => 'Continuous'; @@ -755,7 +788,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoMenuSubtitle => 'Menu buttons and simple menus'; @override - String get demoMenuDescription => 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.'; + String get demoMenuDescription => + 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action, or other control.'; @override String get demoMenuItemValueOne => 'Menu item one'; @@ -822,7 +856,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoNavigationDrawerSubtitle => 'Displaying a drawer within appbar'; @override - String get demoNavigationDrawerDescription => 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; + String get demoNavigationDrawerDescription => + 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; @override String get demoNavigationDrawerUserName => 'User Name'; @@ -837,7 +872,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoNavigationDrawerToPageTwo => 'Item Two'; @override - String get demoNavigationDrawerText => 'Swipe from the edge or tap the upper-left icon to see the drawer'; + String get demoNavigationDrawerText => + 'Swipe from the edge or tap the upper-left icon to see the drawer'; @override String get demoNavigationRailTitle => 'Navigation Rail'; @@ -846,7 +882,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoNavigationRailSubtitle => 'Displaying a Navigation Rail within an app'; @override - String get demoNavigationRailDescription => 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; + String get demoNavigationRailDescription => + 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; @override String get demoNavigationRailFirst => 'First'; @@ -867,7 +904,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoFullscreenDialogTitle => 'Fullscreen'; @override - String get demoFullscreenDialogDescription => 'The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog'; + String get demoFullscreenDialogDescription => + 'The fullscreenDialog property specifies whether the incoming page is a fullscreen modal dialog'; @override String get demoCupertinoActivityIndicatorTitle => 'Activity indicator'; @@ -876,7 +914,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoActivityIndicatorSubtitle => 'iOS-style activity indicators'; @override - String get demoCupertinoActivityIndicatorDescription => 'An iOS-style activity indicator that spins clockwise.'; + String get demoCupertinoActivityIndicatorDescription => + 'An iOS-style activity indicator that spins clockwise.'; @override String get demoCupertinoButtonsTitle => 'Buttons'; @@ -885,7 +924,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoButtonsSubtitle => 'iOS-style buttons'; @override - String get demoCupertinoButtonsDescription => 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; + String get demoCupertinoButtonsDescription => + 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; @override String get demoCupertinoContextMenuTitle => 'Context Menu'; @@ -894,7 +934,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoContextMenuSubtitle => 'iOS-style context menu'; @override - String get demoCupertinoContextMenuDescription => 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; + String get demoCupertinoContextMenuDescription => + 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; @override String get demoCupertinoContextMenuActionOne => 'Action one'; @@ -903,7 +944,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoContextMenuActionTwo => 'Action two'; @override - String get demoCupertinoContextMenuActionText => 'Tap and hold the Flutter logo to see the context menu.'; + String get demoCupertinoContextMenuActionText => + 'Tap and hold the Flutter logo to see the context menu.'; @override String get demoCupertinoAlertsTitle => 'Alerts'; @@ -915,7 +957,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoAlertTitle => 'Alert'; @override - String get demoCupertinoAlertDescription => 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; + String get demoCupertinoAlertDescription => + 'An alert dialog informs the user about situations that require acknowledgement. An alert dialog has an optional title, optional content, and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; @override String get demoCupertinoAlertWithTitleTitle => 'Alert With Title'; @@ -930,7 +973,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoActionSheetTitle => 'Action Sheet'; @override - String get demoCupertinoActionSheetDescription => 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.'; + String get demoCupertinoActionSheetDescription => + 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message, and a list of actions.'; @override String get demoCupertinoNavigationBarTitle => 'Navigation bar'; @@ -939,7 +983,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoNavigationBarSubtitle => 'iOS-style navigation bar'; @override - String get demoCupertinoNavigationBarDescription => 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; + String get demoCupertinoNavigationBarDescription => + 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; @override String get demoCupertinoPickerTitle => 'Pickers'; @@ -948,7 +993,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoPickerSubtitle => 'iOS-style pickers'; @override - String get demoCupertinoPickerDescription => 'An iOS-style picker widget that can be used to select strings, dates, times, or both date and time.'; + String get demoCupertinoPickerDescription => + 'An iOS-style picker widget that can be used to select strings, dates, times, or both date and time.'; @override String get demoCupertinoPickerTimer => 'Timer'; @@ -972,7 +1018,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoPullToRefreshSubtitle => 'iOS-style pull to refresh control'; @override - String get demoCupertinoPullToRefreshDescription => 'A widget implementing the iOS-style pull to refresh content control.'; + String get demoCupertinoPullToRefreshDescription => + 'A widget implementing the iOS-style pull to refresh content control.'; @override String get demoCupertinoSegmentedControlTitle => 'Segmented control'; @@ -981,7 +1028,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoSegmentedControlSubtitle => 'iOS-style segmented control'; @override - String get demoCupertinoSegmentedControlDescription => 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; + String get demoCupertinoSegmentedControlDescription => + 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; @override String get demoCupertinoSliderTitle => 'Slider'; @@ -990,7 +1038,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoSliderSubtitle => 'iOS-style slider'; @override - String get demoCupertinoSliderDescription => 'A slider can be used to select from either a continuous or a discrete set of values.'; + String get demoCupertinoSliderDescription => + 'A slider can be used to select from either a continuous or a discrete set of values.'; @override String demoCupertinoSliderContinuous(Object value) { @@ -1006,7 +1055,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoSwitchSubtitle => 'iOS-style switch'; @override - String get demoCupertinoSwitchDescription => 'A switch is used to toggle the on/off state of a single setting.'; + String get demoCupertinoSwitchDescription => + 'A switch is used to toggle the on/off state of a single setting.'; @override String get demoCupertinoTabBarTitle => 'Tab bar'; @@ -1015,7 +1065,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoTabBarSubtitle => 'iOS-style bottom tab bar'; @override - String get demoCupertinoTabBarDescription => 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; + String get demoCupertinoTabBarDescription => + 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; @override String get cupertinoTabBarHomeTab => 'Home'; @@ -1033,7 +1084,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoTextFieldSubtitle => 'iOS-style text fields'; @override - String get demoCupertinoTextFieldDescription => 'A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.'; + String get demoCupertinoTextFieldDescription => + 'A text field lets the user enter text, either with a hardware keyboard or with an onscreen keyboard.'; @override String get demoCupertinoTextFieldPIN => 'PIN'; @@ -1045,7 +1097,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCupertinoSearchTextFieldSubtitle => 'iOS-style search text field'; @override - String get demoCupertinoSearchTextFieldDescription => 'A search text field that lets the user search by entering text, and that can offer and filter suggestions.'; + String get demoCupertinoSearchTextFieldDescription => + 'A search text field that lets the user search by entering text, and that can offer and filter suggestions.'; @override String get demoCupertinoSearchTextFieldPlaceholder => 'Enter some text'; @@ -1087,7 +1140,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoContainerTransformTitle => 'Container Transform'; @override - String get demoContainerTransformDescription => 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; + String get demoContainerTransformDescription => + 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; @override String get demoContainerTransformModalBottomSheetTitle => 'Fade mode'; @@ -1114,7 +1168,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoMotionListTileTitle => 'List item'; @override - String get demoSharedAxisDescription => 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.'; + String get demoSharedAxisDescription => + 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.'; @override String get demoSharedXAxisTitle => 'Shared x-axis'; @@ -1129,7 +1184,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSharedXAxisCoursePageTitle => 'Streamline your courses'; @override - String get demoSharedXAxisCoursePageSubtitle => 'Bundled categories appear as groups in your feed. You can always change this later.'; + String get demoSharedXAxisCoursePageSubtitle => + 'Bundled categories appear as groups in your feed. You can always change this later.'; @override String get demoSharedXAxisArtsAndCraftsCourseTitle => 'Arts & Crafts'; @@ -1249,7 +1305,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoFadeThroughTitle => 'Fade through'; @override - String get demoFadeThroughDescription => 'The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; + String get demoFadeThroughDescription => + 'The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; @override String get demoFadeThroughAlbumsDestination => 'Albums'; @@ -1267,7 +1324,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoFadeScaleTitle => 'Fade'; @override - String get demoFadeScaleDescription => 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.'; + String get demoFadeScaleDescription => + 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.'; @override String get demoFadeScaleShowAlertDialogButton => 'SHOW MODAL'; @@ -1294,7 +1352,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoColorsSubtitle => 'All of the predefined colors'; @override - String get demoColorsDescription => "Color and color swatch constants which represent Material Design's color palette."; + String get demoColorsDescription => + "Color and color swatch constants which represent Material Design's color palette."; @override String get demoTypographyTitle => 'Typography'; @@ -1303,7 +1362,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTypographySubtitle => 'All of the predefined text styles'; @override - String get demoTypographyDescription => 'Definitions for the various typographical styles found in Material Design.'; + String get demoTypographyDescription => + 'Definitions for the various typographical styles found in Material Design.'; @override String get demo2dTransformationsTitle => '2D transformations'; @@ -1312,7 +1372,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demo2dTransformationsSubtitle => 'Pan and zoom'; @override - String get demo2dTransformationsDescription => 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan and pinch with two fingers to zoom. Press the reset button to return to the starting orientation.'; + String get demo2dTransformationsDescription => + 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan and pinch with two fingers to zoom. Press the reset button to return to the starting orientation.'; @override String get demo2dTransformationsResetTooltip => 'Reset transformations'; @@ -1333,13 +1394,15 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoBottomSheetPersistentTitle => 'Persistent bottom sheet'; @override - String get demoBottomSheetPersistentDescription => 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; + String get demoBottomSheetPersistentDescription => + 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; @override String get demoBottomSheetModalTitle => 'Modal bottom sheet'; @override - String get demoBottomSheetModalDescription => 'A modal bottom sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app.'; + String get demoBottomSheetModalDescription => + 'A modal bottom sheet is an alternative to a menu or a dialog and prevents the user from interacting with the rest of the app.'; @override String get demoBottomSheetAddLabel => 'Add'; @@ -1362,7 +1425,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoListsSubtitle => 'Scrolling list layouts'; @override - String get demoListsDescription => 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; + String get demoListsDescription => + 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; @override String get demoOneLineListsTitle => 'One Line'; @@ -1383,13 +1447,15 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoCircularProgressIndicatorTitle => 'Circular Progress Indicator'; @override - String get demoCircularProgressIndicatorDescription => 'A Material Design circular progress indicator, which spins to indicate that the application is busy.'; + String get demoCircularProgressIndicatorDescription => + 'A Material Design circular progress indicator, which spins to indicate that the application is busy.'; @override String get demoLinearProgressIndicatorTitle => 'Linear Progress Indicator'; @override - String get demoLinearProgressIndicatorDescription => 'A Material Design linear progress indicator, also known as a progress bar.'; + String get demoLinearProgressIndicatorDescription => + 'A Material Design linear progress indicator, also known as a progress bar.'; @override String get demoPickersTitle => 'Pickers'; @@ -1401,19 +1467,22 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoDatePickerTitle => 'Date Picker'; @override - String get demoDatePickerDescription => 'Shows a dialog containing a Material Design date picker.'; + String get demoDatePickerDescription => + 'Shows a dialog containing a Material Design date picker.'; @override String get demoTimePickerTitle => 'Time Picker'; @override - String get demoTimePickerDescription => 'Shows a dialog containing a Material Design time picker.'; + String get demoTimePickerDescription => + 'Shows a dialog containing a Material Design time picker.'; @override String get demoDateRangePickerTitle => 'Date Range Picker'; @override - String get demoDateRangePickerDescription => 'Shows a dialog containing a Material Design date range picker.'; + String get demoDateRangePickerDescription => + 'Shows a dialog containing a Material Design date range picker.'; @override String get demoPickersShowPicker => 'SHOW PICKER'; @@ -1431,7 +1500,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTabsSubtitle => 'Tabs with independently scrollable views'; @override - String get demoTabsDescription => 'Tabs organize content across different screens, data sets, and other interactions.'; + String get demoTabsDescription => + 'Tabs organize content across different screens, data sets, and other interactions.'; @override String get demoSnackbarsTitle => 'Snackbars'; @@ -1440,7 +1510,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSnackbarsSubtitle => 'Snackbars show messages at the bottom of the screen'; @override - String get demoSnackbarsDescription => "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; + String get demoSnackbarsDescription => + "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; @override String get demoSnackbarsButtonLabel => 'SHOW A SNACKBAR'; @@ -1464,19 +1535,22 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoSelectionControlsCheckboxTitle => 'Checkbox'; @override - String get demoSelectionControlsCheckboxDescription => "Checkboxes allow the user to select multiple options from a set. A normal checkbox's value is true or false and a tristate checkbox's value can also be null."; + String get demoSelectionControlsCheckboxDescription => + "Checkboxes allow the user to select multiple options from a set. A normal checkbox's value is true or false and a tristate checkbox's value can also be null."; @override String get demoSelectionControlsRadioTitle => 'Radio'; @override - String get demoSelectionControlsRadioDescription => 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.'; + String get demoSelectionControlsRadioDescription => + 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side.'; @override String get demoSelectionControlsSwitchTitle => 'Switch'; @override - String get demoSelectionControlsSwitchDescription => "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; + String get demoSelectionControlsSwitchDescription => + "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; @override String get demoBottomTextFieldsTitle => 'Text fields'; @@ -1488,7 +1562,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTextFieldSubtitle => 'Single line of editable text and numbers'; @override - String get demoTextFieldDescription => 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.'; + String get demoTextFieldDescription => + 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogs.'; @override String get demoTextFieldShowPasswordLabel => 'Show password'; @@ -1533,7 +1608,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTextFieldEmail => 'Email'; @override - String get demoTextFieldTellUsAboutYourself => 'Tell us about yourself (e.g., write down what you do or what hobbies you have)'; + String get demoTextFieldTellUsAboutYourself => + 'Tell us about yourself (e.g., write down what you do or what hobbies you have)'; @override String get demoTextFieldKeepItShort => 'Keep it short, this is just a demo.'; @@ -1574,7 +1650,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTooltipSubtitle => 'Short message displayed on long press or hover'; @override - String get demoTooltipDescription => 'Tooltips provide text labels that help explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on, or long press an element.'; + String get demoTooltipDescription => + 'Tooltips provide text labels that help explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on, or long press an element.'; @override String get demoTooltipInstructions => 'Long press or hover to display the tooltip.'; @@ -1647,7 +1724,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get dialogLocationTitle => "Use Google's location service?"; @override - String get dialogLocationDescription => 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; + String get dialogLocationDescription => + 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; @override String get dialogCancel => 'CANCEL'; @@ -1692,10 +1770,12 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get cupertinoAlertDiscard => 'Discard'; @override - String get cupertinoAlertLocationTitle => 'Allow "Maps" to access your location while you are using the app?'; + String get cupertinoAlertLocationTitle => + 'Allow "Maps" to access your location while you are using the app?'; @override - String get cupertinoAlertLocationDescription => 'Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.'; + String get cupertinoAlertLocationDescription => + 'Your current location will be displayed on the map and used for directions, nearby search results, and estimated travel times.'; @override String get cupertinoAlertAllow => 'Allow'; @@ -1707,7 +1787,8 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get cupertinoAlertFavoriteDessert => 'Select Favorite Dessert'; @override - String get cupertinoAlertDessertDescription => 'Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.'; + String get cupertinoAlertDessertDescription => + 'Please select your favorite type of dessert from the list below. Your selection will be used to customize the suggested list of eateries in your area.'; @override String get cupertinoAlertCheesecake => 'Cheesecake'; @@ -2505,13 +2586,15 @@ class GalleryLocalizationsEn extends GalleryLocalizations { String get demoTwoPaneSmallScreenLabel => 'Small Screen'; @override - String get demoTwoPaneSmallScreenDescription => 'This is how TwoPane behaves on a small screen device.'; + String get demoTwoPaneSmallScreenDescription => + 'This is how TwoPane behaves on a small screen device.'; @override String get demoTwoPaneTabletLabel => 'Tablet / Desktop'; @override - String get demoTwoPaneTabletDescription => 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; + String get demoTwoPaneTabletDescription => + 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; @override String get demoTwoPaneTitle => 'TwoPane'; @@ -2544,7 +2627,7 @@ class GalleryLocalizationsEn extends GalleryLocalizations { /// The translations for English, as used in Iceland (`en_IS`). class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { - GalleryLocalizationsEnIs(): super('en_IS'); + GalleryLocalizationsEnIs() : super('en_IS'); @override String githubRepo(Object repoName) { @@ -2575,7 +2658,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get signIn => 'SIGN IN'; @override - String get bannerDemoText => 'Your password was updated on your other device. Please sign in again.'; + String get bannerDemoText => + 'Your password was updated on your other device. Please sign in again.'; @override String get bannerDemoResetText => 'Reset the banner'; @@ -2834,7 +2918,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { final String temp0 = intl.Intl.pluralLogic( count, locale: localeName, - other: 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', + other: + 'Increase your potential tax deduction! Assign categories to $count unassigned transactions.', one: 'Increase your potential tax deduction! Assign categories to 1 unassigned transaction.', ); return temp0; @@ -2860,7 +2945,12 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { } @override - String rallyBudgetAmount(Object budgetName, Object amountUsed, Object amountTotal, Object amountLeft) { + String rallyBudgetAmount( + Object budgetName, + Object amountUsed, + Object amountTotal, + Object amountLeft, + ) { return '$budgetName budget with $amountUsed used of $amountTotal, $amountLeft left'; } @@ -2975,10 +3065,12 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoAppBarTitle => 'App bar'; @override - String get demoAppBarSubtitle => 'Displays information and actions relating to the current screen'; + String get demoAppBarSubtitle => + 'Displays information and actions relating to the current screen'; @override - String get demoAppBarDescription => "The app bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation and actions"; + String get demoAppBarDescription => + "The app bar provides content and actions related to the current screen. It's used for branding, screen titles, navigation and actions"; @override String get demoBottomAppBarTitle => 'Bottom app bar'; @@ -2987,7 +3079,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoBottomAppBarSubtitle => 'Displays navigation and actions at the bottom'; @override - String get demoBottomAppBarDescription => 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; + String get demoBottomAppBarDescription => + 'Bottom app bars provide access to a bottom navigation drawer and up to four actions, including the floating action button.'; @override String get bottomAppBarNotch => 'Notch'; @@ -3014,7 +3107,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoBannerSubtitle => 'Displaying a banner within a list'; @override - String get demoBannerDescription => 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; + String get demoBannerDescription => + 'A banner displays an important, succinct message, and provides actions for users to address (or dismiss the banner). A user action is required for it to be dismissed.'; @override String get demoBottomNavigationTitle => 'Bottom navigation'; @@ -3029,7 +3123,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoBottomNavigationSelectedLabel => 'Selected label'; @override - String get demoBottomNavigationDescription => 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; + String get demoBottomNavigationDescription => + 'Bottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.'; @override String get demoButtonTitle => 'Buttons'; @@ -3041,31 +3136,36 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTextButtonTitle => 'Text button'; @override - String get demoTextButtonDescription => 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogues and inline with padding'; + String get demoTextButtonDescription => + 'A text button displays an ink splash on press but does not lift. Use text buttons on toolbars, in dialogues and inline with padding'; @override String get demoElevatedButtonTitle => 'Elevated button'; @override - String get demoElevatedButtonDescription => 'Elevated buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.'; + String get demoElevatedButtonDescription => + 'Elevated buttons add dimension to mostly flat layouts. They emphasise functions on busy or wide spaces.'; @override String get demoOutlinedButtonTitle => 'Outlined button'; @override - String get demoOutlinedButtonDescription => 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; + String get demoOutlinedButtonDescription => + 'Outlined buttons become opaque and elevate when pressed. They are often paired with raised buttons to indicate an alternative, secondary action.'; @override String get demoToggleButtonTitle => 'Toggle Buttons'; @override - String get demoToggleButtonDescription => 'Toggle buttons can be used to group related options. To emphasise groups of related toggle buttons, a group should share a common container'; + String get demoToggleButtonDescription => + 'Toggle buttons can be used to group related options. To emphasise groups of related toggle buttons, a group should share a common container'; @override String get demoFloatingButtonTitle => 'Floating Action Button'; @override - String get demoFloatingButtonDescription => 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; + String get demoFloatingButtonDescription => + 'A floating action button is a circular icon button that hovers over content to promote a primary action in the application.'; @override String get demoCardTitle => 'Cards'; @@ -3077,7 +3177,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoChipTitle => 'Chips'; @override - String get demoCardDescription => 'A card is a sheet of material used to represent some related information, for example, an album, a geographical location, a meal, contact details, etc.'; + String get demoCardDescription => + 'A card is a sheet of material used to represent some related information, for example, an album, a geographical location, a meal, contact details, etc.'; @override String get demoChipSubtitle => 'Compact elements that represent an input, attribute or action'; @@ -3086,25 +3187,29 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoActionChipTitle => 'Action chip'; @override - String get demoActionChipDescription => 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; + String get demoActionChipDescription => + 'Action chips are a set of options which trigger an action related to primary content. Action chips should appear dynamically and contextually in a UI.'; @override String get demoChoiceChipTitle => 'Choice chip'; @override - String get demoChoiceChipDescription => 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; + String get demoChoiceChipDescription => + 'Choice chips represent a single choice from a set. Choice chips contain related descriptive text or categories.'; @override String get demoFilterChipTitle => 'Filter chip'; @override - String get demoFilterChipDescription => 'Filter chips use tags or descriptive words as a way to filter content.'; + String get demoFilterChipDescription => + 'Filter chips use tags or descriptive words as a way to filter content.'; @override String get demoInputChipTitle => 'Input chip'; @override - String get demoInputChipDescription => 'Input chips represent a complex piece of information, such as an entity (person, place or thing) or conversational text, in a compact form.'; + String get demoInputChipDescription => + 'Input chips represent a complex piece of information, such as an entity (person, place or thing) or conversational text, in a compact form.'; @override String get demoDataTableTitle => 'Data tables'; @@ -3113,7 +3218,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoDataTableSubtitle => 'Rows and columns of information'; @override - String get demoDataTableDescription => "Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights."; + String get demoDataTableDescription => + "Data tables display information in a grid-like format of rows and columns. They organise information in a way that's easy to scan, so that users can look for patterns and insights."; @override String get dataTableHeader => 'Nutrition'; @@ -3192,7 +3298,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoAlertDialogTitle => 'Alert'; @override - String get demoAlertDialogDescription => 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title and an optional list of actions.'; + String get demoAlertDialogDescription => + 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title and an optional list of actions.'; @override String get demoAlertTitleDialogTitle => 'Alert With Title'; @@ -3201,16 +3308,19 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSimpleDialogTitle => 'Simple'; @override - String get demoSimpleDialogDescription => 'A simple dialogue offers the user a choice between several options. A simple dialogue has an optional title that is displayed above the choices.'; + String get demoSimpleDialogDescription => + 'A simple dialogue offers the user a choice between several options. A simple dialogue has an optional title that is displayed above the choices.'; @override String get demoDividerTitle => 'Divider'; @override - String get demoDividerSubtitle => 'A divider is a thin line that groups content in lists and layouts.'; + String get demoDividerSubtitle => + 'A divider is a thin line that groups content in lists and layouts.'; @override - String get demoDividerDescription => 'Dividers can be used in lists, drawers and elsewhere to separate content.'; + String get demoDividerDescription => + 'Dividers can be used in lists, drawers and elsewhere to separate content.'; @override String get demoVerticalDividerTitle => 'Vertical divider'; @@ -3222,7 +3332,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoGridListsSubtitle => 'Row and column layout'; @override - String get demoGridListsDescription => 'Grid lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; + String get demoGridListsDescription => + 'Grid lists are best suited for presenting homogeneous data, typically images. Each item in a grid list is called a tile.'; @override String get demoGridListsImageOnlyTitle => 'Image only'; @@ -3240,22 +3351,26 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSlidersSubtitle => 'Widgets for selecting a value by swiping'; @override - String get demoSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; + String get demoSlidersDescription => + 'Sliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; @override String get demoRangeSlidersTitle => 'Range sliders'; @override - String get demoRangeSlidersDescription => 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; + String get demoRangeSlidersDescription => + 'Sliders reflect a range of values along a bar. They can have icons on both ends of the bar that reflect a range of values. They are ideal for adjusting settings such as volume, brightness or applying image filters.'; @override String get demoCustomSlidersTitle => 'Custom sliders'; @override - String get demoCustomSlidersDescription => 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customised.'; + String get demoCustomSlidersDescription => + 'Sliders reflect a range of values along a bar, from which users may select a single value or range of values. The sliders can be themed and customised.'; @override - String get demoSlidersContinuousWithEditableNumericalValue => 'Continuous with editable numerical value'; + String get demoSlidersContinuousWithEditableNumericalValue => + 'Continuous with editable numerical value'; @override String get demoSlidersDiscrete => 'Discrete'; @@ -3264,7 +3379,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSlidersDiscreteSliderWithCustomTheme => 'Discrete slider with custom theme'; @override - String get demoSlidersContinuousRangeSliderWithCustomTheme => 'Continuous range slider with custom theme'; + String get demoSlidersContinuousRangeSliderWithCustomTheme => + 'Continuous range slider with custom theme'; @override String get demoSlidersContinuous => 'Continuous'; @@ -3291,7 +3407,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoMenuSubtitle => 'Menu buttons and simple menus'; @override - String get demoMenuDescription => 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action or other control.'; + String get demoMenuDescription => + 'A menu displays a list of choices on a temporary surface. They appear when users interact with a button, action or other control.'; @override String get demoMenuItemValueOne => 'Menu item one'; @@ -3358,7 +3475,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoNavigationDrawerSubtitle => 'Displaying a drawer within app bar'; @override - String get demoNavigationDrawerDescription => 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; + String get demoNavigationDrawerDescription => + 'A Material Design panel that slides in horizontally from the edge of the screen to show navigation links in an application.'; @override String get demoNavigationDrawerUserName => 'User name'; @@ -3373,7 +3491,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoNavigationDrawerToPageTwo => 'Item two'; @override - String get demoNavigationDrawerText => 'Swipe from the edge or tap the upper-left icon to see the drawer'; + String get demoNavigationDrawerText => + 'Swipe from the edge or tap the upper-left icon to see the drawer'; @override String get demoNavigationRailTitle => 'Navigation rail'; @@ -3382,7 +3501,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoNavigationRailSubtitle => 'Displaying a navigation rail within an app'; @override - String get demoNavigationRailDescription => 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; + String get demoNavigationRailDescription => + 'A material widget that is meant to be displayed at the left or right of an app to navigate between a small number of views, typically between three and five.'; @override String get demoNavigationRailFirst => 'First'; @@ -3403,7 +3523,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoFullscreenDialogTitle => 'Full screen'; @override - String get demoFullscreenDialogDescription => 'The fullscreenDialog property specifies whether the incoming page is a full-screen modal dialogue'; + String get demoFullscreenDialogDescription => + 'The fullscreenDialog property specifies whether the incoming page is a full-screen modal dialogue'; @override String get demoCupertinoActivityIndicatorTitle => 'Activity indicator'; @@ -3412,7 +3533,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoActivityIndicatorSubtitle => 'iOS-style activity indicators'; @override - String get demoCupertinoActivityIndicatorDescription => 'An iOS-style activity indicator that spins clockwise.'; + String get demoCupertinoActivityIndicatorDescription => + 'An iOS-style activity indicator that spins clockwise.'; @override String get demoCupertinoButtonsTitle => 'Buttons'; @@ -3421,7 +3543,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoButtonsSubtitle => 'iOS-style buttons'; @override - String get demoCupertinoButtonsDescription => 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; + String get demoCupertinoButtonsDescription => + 'An iOS-style button. It takes in text and/or an icon that fades out and in on touch. May optionally have a background.'; @override String get demoCupertinoContextMenuTitle => 'Context menu'; @@ -3430,7 +3553,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoContextMenuSubtitle => 'iOS-style context menu'; @override - String get demoCupertinoContextMenuDescription => 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; + String get demoCupertinoContextMenuDescription => + 'An iOS-style full screen contextual menu that appears when an element is long-pressed.'; @override String get demoCupertinoContextMenuActionOne => 'Action one'; @@ -3439,7 +3563,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoContextMenuActionTwo => 'Action two'; @override - String get demoCupertinoContextMenuActionText => 'Tap and hold the Flutter logo to see the context menu.'; + String get demoCupertinoContextMenuActionText => + 'Tap and hold the Flutter logo to see the context menu.'; @override String get demoCupertinoAlertsTitle => 'Alerts'; @@ -3451,7 +3576,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoAlertTitle => 'Alert'; @override - String get demoCupertinoAlertDescription => 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title, optional content and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; + String get demoCupertinoAlertDescription => + 'An alert dialogue informs the user about situations that require acknowledgement. An alert dialogue has an optional title, optional content and an optional list of actions. The title is displayed above the content and the actions are displayed below the content.'; @override String get demoCupertinoAlertWithTitleTitle => 'Alert with title'; @@ -3466,7 +3592,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoActionSheetTitle => 'Action Sheet'; @override - String get demoCupertinoActionSheetDescription => 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message and a list of actions.'; + String get demoCupertinoActionSheetDescription => + 'An action sheet is a specific style of alert that presents the user with a set of two or more choices related to the current context. An action sheet can have a title, an additional message and a list of actions.'; @override String get demoCupertinoNavigationBarTitle => 'Navigation bar'; @@ -3475,7 +3602,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoNavigationBarSubtitle => 'iOS-style navigation bar'; @override - String get demoCupertinoNavigationBarDescription => 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; + String get demoCupertinoNavigationBarDescription => + 'An iOS-styled navigation bar. The navigation bar is a toolbar that minimally consists of a page title, in the middle of the toolbar.'; @override String get demoCupertinoPickerTitle => 'Pickers'; @@ -3484,7 +3612,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoPickerSubtitle => 'iOS-style pickers'; @override - String get demoCupertinoPickerDescription => 'An iOS-style picker widget that can be used to select strings, dates, times or both date and time.'; + String get demoCupertinoPickerDescription => + 'An iOS-style picker widget that can be used to select strings, dates, times or both date and time.'; @override String get demoCupertinoPickerTimer => 'Timer'; @@ -3508,7 +3637,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoPullToRefreshSubtitle => 'iOS-style pull to refresh control'; @override - String get demoCupertinoPullToRefreshDescription => 'A widget implementing the iOS-style pull to refresh content control.'; + String get demoCupertinoPullToRefreshDescription => + 'A widget implementing the iOS-style pull to refresh content control.'; @override String get demoCupertinoSegmentedControlTitle => 'Segmented control'; @@ -3517,7 +3647,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoSegmentedControlSubtitle => 'iOS-style segmented control'; @override - String get demoCupertinoSegmentedControlDescription => 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; + String get demoCupertinoSegmentedControlDescription => + 'Used to select between a number of mutually exclusive options. When one option in the segmented control is selected, the other options in the segmented control cease to be selected.'; @override String get demoCupertinoSliderTitle => 'Slider'; @@ -3526,7 +3657,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoSliderSubtitle => 'iOS-style slider'; @override - String get demoCupertinoSliderDescription => 'A slider can be used to select from either a continuous or a discrete set of values.'; + String get demoCupertinoSliderDescription => + 'A slider can be used to select from either a continuous or a discrete set of values.'; @override String demoCupertinoSliderContinuous(Object value) { @@ -3542,7 +3674,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoSwitchSubtitle => 'iOS-style switch'; @override - String get demoCupertinoSwitchDescription => 'A switch is used to toggle the on/off state of a single setting.'; + String get demoCupertinoSwitchDescription => + 'A switch is used to toggle the on/off state of a single setting.'; @override String get demoCupertinoTabBarTitle => 'Tab bar'; @@ -3551,7 +3684,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoTabBarSubtitle => 'iOS-style bottom tab bar'; @override - String get demoCupertinoTabBarDescription => 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; + String get demoCupertinoTabBarDescription => + 'An iOS-style bottom navigation tab bar. Displays multiple tabs with one tab being active, the first tab by default.'; @override String get cupertinoTabBarHomeTab => 'Home'; @@ -3569,7 +3703,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoTextFieldSubtitle => 'iOS-style text fields'; @override - String get demoCupertinoTextFieldDescription => 'A text field allows the user to enter text, either with a hardware keyboard or with an on-screen keyboard.'; + String get demoCupertinoTextFieldDescription => + 'A text field allows the user to enter text, either with a hardware keyboard or with an on-screen keyboard.'; @override String get demoCupertinoTextFieldPIN => 'PIN'; @@ -3581,7 +3716,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCupertinoSearchTextFieldSubtitle => 'iOS-style search text field'; @override - String get demoCupertinoSearchTextFieldDescription => 'A search text field that lets the user search by entering text and that can offer and filter suggestions.'; + String get demoCupertinoSearchTextFieldDescription => + 'A search text field that lets the user search by entering text and that can offer and filter suggestions.'; @override String get demoCupertinoSearchTextFieldPlaceholder => 'Enter some text'; @@ -3623,7 +3759,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoContainerTransformTitle => 'Container transform'; @override - String get demoContainerTransformDescription => 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; + String get demoContainerTransformDescription => + 'The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements'; @override String get demoContainerTransformModalBottomSheetTitle => 'Fade mode'; @@ -3650,7 +3787,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoMotionListTileTitle => 'List item'; @override - String get demoSharedAxisDescription => 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y or z axis to reinforce the relationship between elements.'; + String get demoSharedAxisDescription => + 'The shared axis pattern is used for transitions between the UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y or z axis to reinforce the relationship between elements.'; @override String get demoSharedXAxisTitle => 'Shared x-axis'; @@ -3665,7 +3803,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSharedXAxisCoursePageTitle => 'Streamline your courses'; @override - String get demoSharedXAxisCoursePageSubtitle => 'Bundled categories appear as groups in your feed. You can always change this later.'; + String get demoSharedXAxisCoursePageSubtitle => + 'Bundled categories appear as groups in your feed. You can always change this later.'; @override String get demoSharedXAxisArtsAndCraftsCourseTitle => 'Arts and crafts'; @@ -3785,7 +3924,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoFadeThroughTitle => 'Fade through'; @override - String get demoFadeThroughDescription => 'The fade-through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; + String get demoFadeThroughDescription => + 'The fade-through pattern is used for transitions between UI elements that do not have a strong relationship to each other.'; @override String get demoFadeThroughAlbumsDestination => 'Albums'; @@ -3803,7 +3943,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoFadeScaleTitle => 'Fade'; @override - String get demoFadeScaleDescription => 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialogue that fades in the centre of the screen.'; + String get demoFadeScaleDescription => + 'The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialogue that fades in the centre of the screen.'; @override String get demoFadeScaleShowAlertDialogButton => 'SHOW MODAL'; @@ -3830,7 +3971,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoColorsSubtitle => 'All of the predefined colours'; @override - String get demoColorsDescription => "Colour and colour swatch constants which represent Material Design's colour palette."; + String get demoColorsDescription => + "Colour and colour swatch constants which represent Material Design's colour palette."; @override String get demoTypographyTitle => 'Typography'; @@ -3839,7 +3981,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTypographySubtitle => 'All of the predefined text styles'; @override - String get demoTypographyDescription => 'Definitions for the various typographical styles found in Material Design.'; + String get demoTypographyDescription => + 'Definitions for the various typographical styles found in Material Design.'; @override String get demo2dTransformationsTitle => '2D transformations'; @@ -3848,7 +3991,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demo2dTransformationsSubtitle => 'Pan, zoom, rotate'; @override - String get demo2dTransformationsDescription => 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan, pinch to zoom, rotate with two fingers. Press the reset button to return to the starting orientation.'; + String get demo2dTransformationsDescription => + 'Tap to edit tiles, and use gestures to move around the scene. Drag to pan, pinch to zoom, rotate with two fingers. Press the reset button to return to the starting orientation.'; @override String get demo2dTransformationsResetTooltip => 'Reset transformations'; @@ -3869,13 +4013,15 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoBottomSheetPersistentTitle => 'Persistent bottom sheet'; @override - String get demoBottomSheetPersistentDescription => 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; + String get demoBottomSheetPersistentDescription => + 'A persistent bottom sheet shows information that supplements the primary content of the app. A persistent bottom sheet remains visible even when the user interacts with other parts of the app.'; @override String get demoBottomSheetModalTitle => 'Modal bottom sheet'; @override - String get demoBottomSheetModalDescription => 'A modal bottom sheet is an alternative to a menu or a dialogue and prevents the user from interacting with the rest of the app.'; + String get demoBottomSheetModalDescription => + 'A modal bottom sheet is an alternative to a menu or a dialogue and prevents the user from interacting with the rest of the app.'; @override String get demoBottomSheetAddLabel => 'Add'; @@ -3898,7 +4044,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoListsSubtitle => 'Scrolling list layouts'; @override - String get demoListsDescription => 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; + String get demoListsDescription => + 'A single fixed-height row that typically contains some text as well as a leading or trailing icon.'; @override String get demoOneLineListsTitle => 'One line'; @@ -3919,13 +4066,15 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoCircularProgressIndicatorTitle => 'Circular progress indicator'; @override - String get demoCircularProgressIndicatorDescription => 'A material design circular progress indicator, which spins to indicate that the application is busy.'; + String get demoCircularProgressIndicatorDescription => + 'A material design circular progress indicator, which spins to indicate that the application is busy.'; @override String get demoLinearProgressIndicatorTitle => 'Linear progress indicator'; @override - String get demoLinearProgressIndicatorDescription => 'A material design linear progress indicator, also known as a progress bar.'; + String get demoLinearProgressIndicatorDescription => + 'A material design linear progress indicator, also known as a progress bar.'; @override String get demoPickersTitle => 'Pickers'; @@ -3937,19 +4086,22 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoDatePickerTitle => 'Date picker'; @override - String get demoDatePickerDescription => 'Shows a dialogue containing a material design date picker.'; + String get demoDatePickerDescription => + 'Shows a dialogue containing a material design date picker.'; @override String get demoTimePickerTitle => 'Time picker'; @override - String get demoTimePickerDescription => 'Shows a dialogue containing a material design time picker.'; + String get demoTimePickerDescription => + 'Shows a dialogue containing a material design time picker.'; @override String get demoDateRangePickerTitle => 'Date range picker'; @override - String get demoDateRangePickerDescription => 'Shows a dialogue containing a Material Design date range picker.'; + String get demoDateRangePickerDescription => + 'Shows a dialogue containing a Material Design date range picker.'; @override String get demoPickersShowPicker => 'SHOW PICKER'; @@ -3967,7 +4119,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTabsSubtitle => 'Tabs with independently scrollable views'; @override - String get demoTabsDescription => 'Tabs organise content across different screens, data sets and other interactions.'; + String get demoTabsDescription => + 'Tabs organise content across different screens, data sets and other interactions.'; @override String get demoSnackbarsTitle => 'Snackbars'; @@ -3976,7 +4129,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSnackbarsSubtitle => 'Snackbars show messages at the bottom of the screen'; @override - String get demoSnackbarsDescription => "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; + String get demoSnackbarsDescription => + "Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn't interrupt the user experience, and they don't require user input to disappear."; @override String get demoSnackbarsButtonLabel => 'SHOW A SNACKBAR'; @@ -4000,19 +4154,22 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoSelectionControlsCheckboxTitle => 'Tick box'; @override - String get demoSelectionControlsCheckboxDescription => "Tick boxes allow the user to select multiple options from a set. A normal tick box's value is true or false and a tristate tick box's value can also be null."; + String get demoSelectionControlsCheckboxDescription => + "Tick boxes allow the user to select multiple options from a set. A normal tick box's value is true or false and a tristate tick box's value can also be null."; @override String get demoSelectionControlsRadioTitle => 'Radio'; @override - String get demoSelectionControlsRadioDescription => 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side by side.'; + String get demoSelectionControlsRadioDescription => + 'Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side by side.'; @override String get demoSelectionControlsSwitchTitle => 'Switch'; @override - String get demoSelectionControlsSwitchDescription => "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; + String get demoSelectionControlsSwitchDescription => + "On/off switches toggle the state of a single settings option. The option that the switch controls, as well as the state it's in, should be made clear from the corresponding inline label."; @override String get demoBottomTextFieldsTitle => 'Text fields'; @@ -4024,7 +4181,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTextFieldSubtitle => 'Single line of editable text and numbers'; @override - String get demoTextFieldDescription => 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogues.'; + String get demoTextFieldDescription => + 'Text fields allow users to enter text into a UI. They typically appear in forms and dialogues.'; @override String get demoTextFieldShowPasswordLabel => 'Show password'; @@ -4069,7 +4227,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTextFieldEmail => 'Email'; @override - String get demoTextFieldTellUsAboutYourself => 'Tell us about yourself (e.g. write down what you do or what hobbies you have)'; + String get demoTextFieldTellUsAboutYourself => + 'Tell us about yourself (e.g. write down what you do or what hobbies you have)'; @override String get demoTextFieldKeepItShort => 'Keep it short, this is just a demo.'; @@ -4110,7 +4269,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTooltipSubtitle => 'Short message displayed on long press or hover'; @override - String get demoTooltipDescription => 'Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.'; + String get demoTooltipDescription => + 'Tooltips provide text labels that help to explain the function of a button or other user interface action. Tooltips display informative text when users hover over, focus on or long press an element.'; @override String get demoTooltipInstructions => 'Long press or hover to display the tooltip.'; @@ -4183,7 +4343,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get dialogLocationTitle => "Use Google's location service?"; @override - String get dialogLocationDescription => 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; + String get dialogLocationDescription => + 'Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.'; @override String get dialogCancel => 'CANCEL'; @@ -4228,10 +4389,12 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get cupertinoAlertDiscard => 'Discard'; @override - String get cupertinoAlertLocationTitle => "Allow 'Maps' to access your location while you are using the app?"; + String get cupertinoAlertLocationTitle => + "Allow 'Maps' to access your location while you are using the app?"; @override - String get cupertinoAlertLocationDescription => 'Your current location will be displayed on the map and used for directions, nearby search results and estimated travel times.'; + String get cupertinoAlertLocationDescription => + 'Your current location will be displayed on the map and used for directions, nearby search results and estimated travel times.'; @override String get cupertinoAlertAllow => 'Allow'; @@ -4243,7 +4406,8 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get cupertinoAlertFavoriteDessert => 'Select Favourite Dessert'; @override - String get cupertinoAlertDessertDescription => 'Please select your favourite type of dessert from the list below. Your selection will be used to customise the suggested list of eateries in your area.'; + String get cupertinoAlertDessertDescription => + 'Please select your favourite type of dessert from the list below. Your selection will be used to customise the suggested list of eateries in your area.'; @override String get cupertinoAlertCheesecake => 'Cheesecake'; @@ -5042,13 +5206,15 @@ class GalleryLocalizationsEnIs extends GalleryLocalizationsEn { String get demoTwoPaneSmallScreenLabel => 'Small screen'; @override - String get demoTwoPaneSmallScreenDescription => 'This is how TwoPane behaves on a small screen device.'; + String get demoTwoPaneSmallScreenDescription => + 'This is how TwoPane behaves on a small screen device.'; @override String get demoTwoPaneTabletLabel => 'Tablet/Desktop'; @override - String get demoTwoPaneTabletDescription => 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; + String get demoTwoPaneTabletDescription => + 'This is how TwoPane behaves on a larger screen like a tablet or desktop.'; @override String get demoTwoPaneTitle => 'TwoPane'; diff --git a/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart b/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart index 283c018f357e1703d06c74c40a8b20271a46343d..87b3a53ba6868262c55a53ae6d5d2e46a5687980 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/layout/adaptive.dart @@ -15,8 +15,7 @@ const double maxHomeItemWidth = 1400.0; /// where only part of the display is available to said widgets. /// /// Used to build adaptive and responsive layouts. -bool isDisplayDesktop(BuildContext context) => - getWindowType(context) >= AdaptiveWindowType.medium; +bool isDisplayDesktop(BuildContext context) => getWindowType(context) >= AdaptiveWindowType.medium; /// Returns boolean value whether the window is considered medium size. /// diff --git a/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart b/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart index 43773e65c48ef4b8cf9966b147d3fc84cf907b53..d53b6fa56a9976eb5c8402840ece3419b5a4735a 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/layout/highlight_focus.dart @@ -56,18 +56,13 @@ class _HighlightFocusState extends State { @override Widget build(BuildContext context) { - final Color highlightColor = widget.highlightColor ?? - Theme.of(context).colorScheme.primary.withOpacity(0.5); - final Color borderColor = - widget.borderColor ?? Theme.of(context).colorScheme.onPrimary; + final Color highlightColor = + widget.highlightColor ?? Theme.of(context).colorScheme.primary.withOpacity(0.5); + final Color borderColor = widget.borderColor ?? Theme.of(context).colorScheme.onPrimary; final BoxDecoration highlightedDecoration = BoxDecoration( color: highlightColor, - border: Border.all( - color: borderColor, - width: 2, - strokeAlign: BorderSide.strokeAlignOutside, - ), + border: Border.all(color: borderColor, width: 2, strokeAlign: BorderSide.strokeAlignOutside), ); return Focus( diff --git a/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart b/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart index 6c573752f091551fc84f0ed0a07816a118fb7a22..fadf935cf39594a4f1d3855df8e3977df32d88f5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/layout/letter_spacing.dart @@ -6,5 +6,4 @@ import 'package:flutter/foundation.dart'; /// Using letter spacing in Flutter for Web can cause a performance drop, /// see https://github.com/flutter/flutter/issues/51234. -double letterSpacingOrNone(double letterSpacing) => - kIsWeb ? 0.0 : letterSpacing; +double letterSpacingOrNone(double letterSpacing) => kIsWeb ? 0.0 : letterSpacing; diff --git a/flutter/dev/integration_tests/new_gallery/lib/main.dart b/flutter/dev/integration_tests/new_gallery/lib/main.dart index 315fe00b8fb8f0e6d6bd6beeb28bde0a3e21b355..23d7455b05339d97ad4307f78f04907018dcf4e1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/main.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/main.dart @@ -25,11 +25,7 @@ void main() async { } class GalleryApp extends StatelessWidget { - const GalleryApp({ - super.key, - this.initialRoute, - this.isTestMode = false, - }); + const GalleryApp({super.key, this.initialRoute, this.isTestMode = false}); final String? initialRoute; final bool isTestMode; @@ -54,25 +50,24 @@ class GalleryApp extends StatelessWidget { title: 'Flutter Gallery', debugShowCheckedModeBanner: false, themeMode: options.themeMode, - theme: GalleryThemeData.lightThemeData.copyWith( - platform: options.platform, - ), - darkTheme: GalleryThemeData.darkThemeData.copyWith( - platform: options.platform, - ), + theme: GalleryThemeData.lightThemeData.copyWith(platform: options.platform), + darkTheme: GalleryThemeData.darkThemeData.copyWith(platform: options.platform), localizationsDelegates: const >[ ...GalleryLocalizations.localizationsDelegates, - LocaleNamesLocalizationsDelegate() + LocaleNamesLocalizationsDelegate(), ], initialRoute: initialRoute, supportedLocales: GalleryLocalizations.supportedLocales, locale: options.locale, - localeListResolutionCallback: (List? locales, Iterable supportedLocales) { + localeListResolutionCallback: ( + List? locales, + Iterable supportedLocales, + ) { deviceLocale = locales?.first; return basicLocaleListResolution(locales, supportedLocales); }, - onGenerateRoute: (RouteSettings settings) => - RouteConfiguration.onGenerateRoute(settings), + onGenerateRoute: + (RouteSettings settings) => RouteConfiguration.onGenerateRoute(settings), ); }, ), @@ -83,18 +78,12 @@ class GalleryApp extends StatelessWidget { // ignore: unreachable_from_main class RootPage extends StatelessWidget { // ignore: unreachable_from_main - const RootPage({ - super.key, - }); + const RootPage({super.key}); @override Widget build(BuildContext context) { return ApplyTextOptions( - child: SplashPage( - child: Backdrop( - isDesktop: isDisplayDesktop(context), - ), - ), + child: SplashPage(child: Backdrop(isDesktop: isDisplayDesktop(context))), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart index 7a7b2ce1199e32c3ef2993bcb86fda727eac1165..80a75b066401c1d3d1deec9d862fe8eacbf25f4b 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/about.dart @@ -8,9 +8,7 @@ import 'package:url_launcher/url_launcher.dart'; import '../gallery_localizations.dart'; -void showAboutDialog({ - required BuildContext context, -}) { +void showAboutDialog({required BuildContext context}) { showDialog( context: context, builder: (BuildContext context) { @@ -28,8 +26,7 @@ class _AboutDialog extends StatelessWidget { Widget build(BuildContext context) { final ColorScheme colorScheme = Theme.of(context).colorScheme; final TextTheme textTheme = Theme.of(context).textTheme; - final TextStyle bodyTextStyle = - textTheme.bodyLarge!.apply(color: colorScheme.onPrimary); + final TextStyle bodyTextStyle = textTheme.bodyLarge!.apply(color: colorScheme.onPrimary); final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; const String name = 'Flutter Gallery'; // Don't need to localize. @@ -52,71 +49,59 @@ class _AboutDialog extends StatelessWidget { children: [ FutureBuilder( future: getVersionNumber(), - builder: (BuildContext context, AsyncSnapshot snapshot) => SelectableText( - snapshot.hasData ? '$name ${snapshot.data}' : name, - style: textTheme.headlineMedium!.apply( - color: colorScheme.onPrimary, - ), - ), + builder: + (BuildContext context, AsyncSnapshot snapshot) => SelectableText( + snapshot.hasData ? '$name ${snapshot.data}' : name, + style: textTheme.headlineMedium!.apply(color: colorScheme.onPrimary), + ), ), const SizedBox(height: 24), SelectableText.rich( TextSpan( children: [ + TextSpan(style: bodyTextStyle, text: seeSourceFirst), TextSpan( - style: bodyTextStyle, - text: seeSourceFirst, - ), - TextSpan( - style: bodyTextStyle.copyWith( - color: colorScheme.primary, - ), + style: bodyTextStyle.copyWith(color: colorScheme.primary), text: repoText, - recognizer: TapGestureRecognizer() - ..onTap = () async { - final Uri url = - Uri.parse('https://github.com/flutter/gallery/'); - if (await canLaunchUrl(url)) { - await launchUrl(url); - } - }, - ), - TextSpan( - style: bodyTextStyle, - text: seeSourceSecond, + recognizer: + TapGestureRecognizer() + ..onTap = () async { + final Uri url = Uri.parse('https://github.com/flutter/gallery/'); + if (await canLaunchUrl(url)) { + await launchUrl(url); + } + }, ), + TextSpan(style: bodyTextStyle, text: seeSourceSecond), ], ), ), const SizedBox(height: 18), - SelectableText( - legalese, - style: bodyTextStyle, - ), + SelectableText(legalese, style: bodyTextStyle), ], ), ), actions: [ TextButton( onPressed: () { - Navigator.of(context).push(MaterialPageRoute( - builder: (BuildContext context) => Theme( - data: Theme.of(context).copyWith( - textTheme: Typography.material2018( - platform: Theme.of(context).platform, - ).black, - cardColor: Colors.white, - ), - child: const LicensePage( - applicationName: name, - applicationLegalese: legalese, - ), + Navigator.of(context).push( + MaterialPageRoute( + builder: + (BuildContext context) => Theme( + data: Theme.of(context).copyWith( + textTheme: + Typography.material2018(platform: Theme.of(context).platform).black, + cardColor: Colors.white, + ), + child: const LicensePage( + applicationName: name, + applicationLegalese: legalese, + ), + ), ), - )); + ); }, - child: Text( - MaterialLocalizations.of(context).viewLicensesButtonLabel, - ), + child: Text(MaterialLocalizations.of(context).viewLicensesButtonLabel), ), TextButton( onPressed: () { diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart index d39c5536f1ecbc283ab6e52a78348d6773a7ab37..dd423af0c94359edca9a041bd99a1a412af24ed5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/backdrop.dart @@ -19,12 +19,7 @@ const double _settingsButtonHeightDesktop = 56; const double _settingsButtonHeightMobile = 40; class Backdrop extends StatefulWidget { - const Backdrop({ - super.key, - required this.isDesktop, - this.settingsPage, - this.homePage, - }); + const Backdrop({super.key, required this.isDesktop, this.settingsPage, this.homePage}); final bool isDesktop; final Widget? settingsPage; @@ -46,20 +41,17 @@ class _BackdropState extends State with TickerProviderStateMixin { void initState() { super.initState(); _settingsPanelController = AnimationController( - vsync: this, - duration: widget.isDesktop - ? settingsPanelMobileAnimationDuration - : settingsPanelDesktopAnimationDuration); - _iconController = AnimationController( vsync: this, - duration: const Duration(milliseconds: 500), + duration: + widget.isDesktop + ? settingsPanelMobileAnimationDuration + : settingsPanelDesktopAnimationDuration, ); + _iconController = AnimationController(vsync: this, duration: const Duration(milliseconds: 500)); _settingsPageFocusNode = FocusNode(); _isSettingsOpenNotifier = ValueNotifier(false); - _settingsPage = widget.settingsPage ?? - SettingsPage( - animationController: _settingsPanelController, - ); + _settingsPage = + widget.settingsPage ?? SettingsPage(animationController: _settingsPanelController); _homePage = widget.homePage ?? const HomePage(); } @@ -84,25 +76,19 @@ class _BackdropState extends State with TickerProviderStateMixin { _isSettingsOpenNotifier.value = !_isSettingsOpenNotifier.value; } - Animation _slideDownSettingsPageAnimation( - BoxConstraints constraints) { + Animation _slideDownSettingsPageAnimation(BoxConstraints constraints) { return RelativeRectTween( begin: RelativeRect.fromLTRB(0, -constraints.maxHeight, 0, 0), end: RelativeRect.fill, ).animate( CurvedAnimation( parent: _settingsPanelController, - curve: const Interval( - 0.0, - 0.4, - curve: Curves.ease, - ), + curve: const Interval(0.0, 0.4, curve: Curves.ease), ), ); } - Animation _slideDownHomePageAnimation( - BoxConstraints constraints) { + Animation _slideDownHomePageAnimation(BoxConstraints constraints) { return RelativeRectTween( begin: RelativeRect.fill, end: RelativeRect.fromLTRB( @@ -114,11 +100,7 @@ class _BackdropState extends State with TickerProviderStateMixin { ).animate( CurvedAnimation( parent: _settingsPanelController, - curve: const Interval( - 0.0, - 0.4, - curve: Curves.ease, - ), + curve: const Interval(0.0, 0.4, curve: Curves.ease), ), ); } @@ -131,18 +113,19 @@ class _BackdropState extends State with TickerProviderStateMixin { builder: (BuildContext context, bool isSettingsOpen, Widget? child) { return ExcludeSemantics( excluding: !isSettingsOpen, - child: isSettingsOpen - ? KeyboardListener( - includeSemantics: false, - focusNode: _settingsPageFocusNode, - onKeyEvent: (KeyEvent event) { - if (event.logicalKey == LogicalKeyboardKey.escape) { - _toggleSettings(); - } - }, - child: FocusScope(child: _settingsPage), - ) - : ExcludeFocus(child: _settingsPage), + child: + isSettingsOpen + ? KeyboardListener( + includeSemantics: false, + focusNode: _settingsPageFocusNode, + onKeyEvent: (KeyEvent event) { + if (event.logicalKey == LogicalKeyboardKey.escape) { + _toggleSettings(); + } + }, + child: FocusScope(child: _settingsPage), + ) + : ExcludeFocus(child: _settingsPage), ); }, ); @@ -170,10 +153,7 @@ class _BackdropState extends State with TickerProviderStateMixin { ), // Slides the home page up and down below the bottom of the // screen. - PositionedTransition( - rect: _slideDownHomePageAnimation(constraints), - child: homePage, - ), + PositionedTransition(rect: _slideDownHomePageAnimation(constraints), child: homePage), ], if (isDesktop) ...[ Semantics(sortKey: const OrdinalSortKey(2), child: homePage), @@ -195,9 +175,10 @@ class _BackdropState extends State with TickerProviderStateMixin { Semantics( sortKey: const OrdinalSortKey(3), child: ScaleTransition( - alignment: Directionality.of(context) == TextDirection.ltr - ? Alignment.topRight - : Alignment.topLeft, + alignment: + Directionality.of(context) == TextDirection.ltr + ? Alignment.topRight + : Alignment.topLeft, scale: CurvedAnimation( parent: _settingsPanelController, curve: Curves.fastOutSlowIn, @@ -234,9 +215,7 @@ class _BackdropState extends State with TickerProviderStateMixin { @override Widget build(BuildContext context) { - return LayoutBuilder( - builder: _buildStack, - ); + return LayoutBuilder(builder: _buildStack); } } @@ -271,13 +250,12 @@ class _SettingsIcon extends AnimatedWidget { label: _settingsSemanticLabel(isSettingsOpenNotifier.value, context), child: SizedBox( width: _settingsButtonWidth, - height: isDesktop - ? _settingsButtonHeightDesktop - : _settingsButtonHeightMobile + safeAreaTopPadding, + height: + isDesktop + ? _settingsButtonHeightDesktop + : _settingsButtonHeightMobile + safeAreaTopPadding, child: Material( - borderRadius: const BorderRadiusDirectional.only( - bottomStart: Radius.circular(10), - ), + borderRadius: const BorderRadiusDirectional.only(bottomStart: Radius.circular(10)), color: isSettingsOpenNotifier.value & !animationController.isAnimating ? Colors.transparent diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart index 09437fc0010cc662a1adbae209f98a4e19e7f234..706ddea6848377fe997d8856eaeddcf4357905e1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/category_list_item.dart @@ -34,10 +34,8 @@ class CategoryListItem extends StatefulWidget { State createState() => _CategoryListItemState(); } -class _CategoryListItemState extends State - with SingleTickerProviderStateMixin { - static final Animatable _easeInTween = - CurveTween(curve: Curves.easeIn); +class _CategoryListItemState extends State with SingleTickerProviderStateMixin { + static final Animatable _easeInTween = CurveTween(curve: Curves.easeIn); static const Duration _expandDuration = Duration(milliseconds: 200); late AnimationController _controller; late Animation _childrenHeightFactor; @@ -59,10 +57,7 @@ class _CategoryListItemState extends State _childrenHeightFactor = _controller.drive(_easeInTween); _headerChevronOpacity = _controller.drive(_easeInTween); - _headerHeight = Tween( - begin: 80, - end: 96, - ).animate(_controller); + _headerHeight = Tween(begin: 80, end: 96).animate(_controller); _headerMargin = EdgeInsetsGeometryTween( begin: const EdgeInsets.fromLTRB(32, 8, 32, 8), end: EdgeInsets.zero, @@ -121,12 +116,7 @@ class _CategoryListItemState extends State ), Padding( padding: _childrenPadding.value, - child: ClipRect( - child: Align( - heightFactor: _childrenHeightFactor.value, - child: child, - ), - ), + child: ClipRect(child: Align(heightFactor: _childrenHeightFactor.value, child: child)), ), ], ); @@ -137,12 +127,10 @@ class _CategoryListItemState extends State return AnimatedBuilder( animation: _controller.view, builder: _buildHeaderWithChildren, - child: _controller.isDismissed - ? null - : _ExpandedCategoryDemos( - category: widget.category, - demos: widget.demos, - ), + child: + _controller.isDismissed + ? null + : _ExpandedCategoryDemos(category: widget.category, demos: widget.demos), ); } } @@ -192,10 +180,7 @@ class _CategoryHeader extends StatelessWidget { Padding( padding: imagePadding, child: FadeInImage( - image: AssetImage( - imageString, - package: 'flutter_gallery_assets', - ), + image: AssetImage(imageString, package: 'flutter_gallery_assets'), placeholder: MemoryImage(kTransparentImage), fadeInDuration: entranceAnimationDuration, width: 64, @@ -206,13 +191,10 @@ class _CategoryHeader extends StatelessWidget { Padding( padding: const EdgeInsetsDirectional.only(start: 8), child: Text( - category.displayTitle( - GalleryLocalizations.of(context)!, - )!, - style: - Theme.of(context).textTheme.headlineSmall!.apply( - color: colorScheme.onSurface, - ), + category.displayTitle(GalleryLocalizations.of(context)!)!, + style: Theme.of( + context, + ).textTheme.headlineSmall!.apply(color: colorScheme.onSurface), ), ), ], @@ -220,18 +202,13 @@ class _CategoryHeader extends StatelessWidget { ), Opacity( opacity: chevronOpacity, - child: chevronOpacity != 0 - ? Padding( - padding: const EdgeInsetsDirectional.only( - start: 8, - end: 32, - ), - child: Icon( - Icons.keyboard_arrow_up, - color: colorScheme.onSurface, - ), - ) - : null, + child: + chevronOpacity != 0 + ? Padding( + padding: const EdgeInsetsDirectional.only(start: 8, end: 32), + child: Icon(Icons.keyboard_arrow_up, color: colorScheme.onSurface), + ) + : null, ), ], ), @@ -243,10 +220,7 @@ class _CategoryHeader extends StatelessWidget { } class _ExpandedCategoryDemos extends StatelessWidget { - const _ExpandedCategoryDemos({ - required this.category, - required this.demos, - }); + const _ExpandedCategoryDemos({required this.category, required this.demos}); final GalleryDemoCategory category; final List demos; @@ -257,10 +231,7 @@ class _ExpandedCategoryDemos extends StatelessWidget { // Makes integration tests possible. key: ValueKey('${category.name}DemoList'), children: [ - for (final GalleryDemo demo in demos) - CategoryDemoItem( - demo: demo, - ), + for (final GalleryDemo demo in demos) CategoryDemoItem(demo: demo), const SizedBox(height: 12), // Extra space below. ], ); @@ -283,9 +254,7 @@ class CategoryDemoItem extends StatelessWidget { child: MergeSemantics( child: InkWell( onTap: () { - Navigator.of(context).restorablePushNamed( - '${DemoPage.baseRoute}/${demo.slug}', - ); + Navigator.of(context).restorablePushNamed('${DemoPage.baseRoute}/${demo.slug}'); }, child: Padding( padding: EdgeInsetsDirectional.only( @@ -296,10 +265,7 @@ class CategoryDemoItem extends StatelessWidget { child: Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Icon( - demo.icon, - color: colorScheme.primary, - ), + Icon(demo.icon, color: colorScheme.primary), const SizedBox(width: 40), Flexible( child: Column( @@ -307,8 +273,7 @@ class CategoryDemoItem extends StatelessWidget { children: [ Text( demo.title, - style: textTheme.titleMedium! - .apply(color: colorScheme.onSurface), + style: textTheme.titleMedium!.apply(color: colorScheme.onSurface), ), Text( demo.subtitle, diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart index 937a1cb7beb87c19521b80aa7087a5f67a7a85ec..ea9eaa867e89b627cdf773c588684c9c9f01e260 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/demo.dart @@ -20,19 +20,10 @@ import '../themes/gallery_theme_data.dart'; import '../themes/material_demo_theme_data.dart'; import 'splash.dart'; -enum _DemoState { - normal, - options, - info, - code, - fullscreen, -} +enum _DemoState { normal, options, info, code, fullscreen } class DemoPage extends StatefulWidget { - const DemoPage({ - super.key, - required this.slug, - }); + const DemoPage({super.key, required this.slug}); static const String baseRoute = '/demo'; final String? slug; @@ -61,19 +52,13 @@ class _DemoPageState extends State { Navigator.of(context).pop(); } return ScaffoldMessenger( - child: GalleryDemoPage( - restorationId: widget.slug!, - demo: slugToDemoMap[widget.slug]!, - )); + child: GalleryDemoPage(restorationId: widget.slug!, demo: slugToDemoMap[widget.slug]!), + ); } } class GalleryDemoPage extends StatefulWidget { - const GalleryDemoPage({ - super.key, - required this.restorationId, - required this.demo, - }); + const GalleryDemoPage({super.key, required this.restorationId, required this.demo}); final String restorationId; final GalleryDemo demo; @@ -148,17 +133,15 @@ class _GalleryDemoPageState extends State if (_demoStateIndex.value == newStateIndex && isDisplayDesktop(context)) { if (_demoStateIndex.value == _DemoState.fullscreen.index) { setStateAndUpdate(() { - _demoStateIndex.value = - _hasOptions ? _DemoState.options.index : _DemoState.info.index; + _demoStateIndex.value = _hasOptions ? _DemoState.options.index : _DemoState.info.index; }); } return; } setStateAndUpdate(() { - _demoStateIndex.value = _demoStateIndex.value == newStateIndex - ? _DemoState.normal.index - : newStateIndex; + _demoStateIndex.value = + _demoStateIndex.value == newStateIndex ? _DemoState.normal.index : newStateIndex; }); } @@ -174,10 +157,7 @@ class _GalleryDemoPageState extends State return SimpleDialog( title: Text(GalleryLocalizations.of(context)!.demoInvalidURL), children: [ - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: Text(url), - ), + Padding(padding: const EdgeInsets.symmetric(horizontal: 16), child: Text(url)), ], ); }, @@ -187,15 +167,12 @@ class _GalleryDemoPageState extends State void _resolveState(BuildContext context) { final bool isDesktop = isDisplayDesktop(context); - if (_DemoState.values[_demoStateIndex.value] == _DemoState.fullscreen && - !isDesktop) { + if (_DemoState.values[_demoStateIndex.value] == _DemoState.fullscreen && !isDesktop) { // Do not allow fullscreen state for mobile. _demoStateIndex.value = _DemoState.normal.index; - } else if (_DemoState.values[_demoStateIndex.value] == _DemoState.normal && - isDesktop) { + } else if (_DemoState.values[_demoStateIndex.value] == _DemoState.normal && isDesktop) { // Do not allow normal state for desktop. - _demoStateIndex.value = - _hasOptions ? _DemoState.options.index : _DemoState.info.index; + _demoStateIndex.value = _hasOptions ? _DemoState.options.index : _DemoState.info.index; } else if (isDesktop != _isDesktop) { _isDesktop = isDesktop; // When going from desktop to mobile, return to normal state. @@ -243,9 +220,7 @@ class _GalleryDemoPageState extends State onTap: () => _handleTap(_DemoState.options), child: Icon( Icons.tune, - color: currentDemoState == _DemoState.options - ? selectedIconColor - : iconColor, + color: currentDemoState == _DemoState.options ? selectedIconColor : iconColor, ), ), tooltip: localizations.demoOptionsTooltip, @@ -254,17 +229,13 @@ class _GalleryDemoPageState extends State IconButton( icon: const Icon(Icons.info), tooltip: localizations.demoInfoTooltip, - color: currentDemoState == _DemoState.info - ? selectedIconColor - : iconColor, + color: currentDemoState == _DemoState.info ? selectedIconColor : iconColor, onPressed: () => _handleTap(_DemoState.info), ), IconButton( icon: const Icon(Icons.code), tooltip: localizations.demoCodeTooltip, - color: currentDemoState == _DemoState.code - ? selectedIconColor - : iconColor, + color: currentDemoState == _DemoState.code ? selectedIconColor : iconColor, onPressed: () => _handleTap(_DemoState.code), ), IconButton( @@ -277,9 +248,7 @@ class _GalleryDemoPageState extends State IconButton( icon: const Icon(Icons.fullscreen), tooltip: localizations.demoFullscreenTooltip, - color: currentDemoState == _DemoState.fullscreen - ? selectedIconColor - : iconColor, + color: currentDemoState == _DemoState.fullscreen ? selectedIconColor : iconColor, onPressed: () => _handleTap(_DemoState.fullscreen), ), SizedBox(width: appBarPadding), @@ -288,7 +257,8 @@ class _GalleryDemoPageState extends State final MediaQueryData mediaQuery = MediaQuery.of(context); final double bottomSafeArea = mediaQuery.padding.bottom; - final double contentHeight = mediaQuery.size.height - + final double contentHeight = + mediaQuery.size.height - mediaQuery.padding.top - mediaQuery.padding.bottom - appBar.preferredSize.height; @@ -335,9 +305,7 @@ class _GalleryDemoPageState extends State constantStyle: codeTheme.copyWith(color: const Color(0xFFFF8383)), child: _DemoSectionCode( maxHeight: maxSectionHeight, - codeWidget: CodeDisplayPage( - _currentConfig.code, - ), + codeWidget: CodeDisplayPage(_currentConfig.code), ), ); case _DemoState.normal: @@ -347,10 +315,7 @@ class _GalleryDemoPageState extends State Widget body; Widget demoContent = ScaffoldMessenger( - child: DemoWrapper( - height: contentHeight, - buildRoute: _currentConfig.buildRoute, - ), + child: DemoWrapper(height: contentHeight, buildRoute: _currentConfig.buildRoute), ); if (isDesktop) { final bool isFullScreen = currentDemoState == _DemoState.fullscreen; @@ -364,10 +329,7 @@ class _GalleryDemoPageState extends State ); body = SafeArea( - child: Padding( - padding: const EdgeInsets.only(top: 56), - child: sectionAndDemo, - ), + child: Padding(padding: const EdgeInsets.only(top: 56), child: sectionAndDemo), ); } else { section = AnimatedSize( @@ -380,22 +342,19 @@ class _GalleryDemoPageState extends State final bool isDemoNormal = currentDemoState == _DemoState.normal; // Add a tap gesture to collapse the currently opened section. demoContent = Semantics( - label: - '${GalleryLocalizations.of(context)!.demo}, ${widget.demo.title}', + label: '${GalleryLocalizations.of(context)!.demo}, ${widget.demo.title}', child: MouseRegion( cursor: isDemoNormal ? MouseCursor.defer : SystemMouseCursors.click, child: GestureDetector( - onTap: isDemoNormal - ? null - : () { - setStateAndUpdate(() { - _demoStateIndex.value = _DemoState.normal.index; - }); - }, - child: Semantics( - excludeSemantics: !isDemoNormal, - child: demoContent, - ), + onTap: + isDemoNormal + ? null + : () { + setStateAndUpdate(() { + _demoStateIndex.value = _DemoState.normal.index; + }); + }, + child: Semantics(excludeSemantics: !isDemoNormal, child: demoContent), ), ), ); @@ -420,62 +379,48 @@ class _GalleryDemoPageState extends State if (isDesktop) { page = AnimatedBuilder( - animation: _codeBackgroundColorController, - builder: (BuildContext context, Widget? child) { - final Brightness themeBrightness = switch (GalleryOptions.of(context).themeMode) { - ThemeMode.system => MediaQuery.of(context).platformBrightness, - ThemeMode.light => Brightness.light, - ThemeMode.dark => Brightness.dark, - }; - - Widget contents = Container( - padding: EdgeInsets.symmetric(horizontal: horizontalPadding), - child: ApplyTextOptions( - child: Scaffold( - appBar: appBar, - body: body, - backgroundColor: Colors.transparent, - ), - ), - ); + animation: _codeBackgroundColorController, + builder: (BuildContext context, Widget? child) { + final Brightness themeBrightness = switch (GalleryOptions.of(context).themeMode) { + ThemeMode.system => MediaQuery.of(context).platformBrightness, + ThemeMode.light => Brightness.light, + ThemeMode.dark => Brightness.dark, + }; + + Widget contents = Container( + padding: EdgeInsets.symmetric(horizontal: horizontalPadding), + child: ApplyTextOptions( + child: Scaffold(appBar: appBar, body: body, backgroundColor: Colors.transparent), + ), + ); - if (themeBrightness == Brightness.light) { - // If it is currently in light mode, add a - // dark background for code. - final Widget codeBackground = SafeArea( + if (themeBrightness == Brightness.light) { + // If it is currently in light mode, add a + // dark background for code. + final Widget codeBackground = SafeArea( + child: Container( + padding: const EdgeInsets.only(top: 56), child: Container( - padding: const EdgeInsets.only(top: 56), - child: Container( - color: ColorTween( - begin: Colors.transparent, - end: GalleryThemeData.darkThemeData.canvasColor, - ).animate(_codeBackgroundColorController).value, - ), + color: + ColorTween( + begin: Colors.transparent, + end: GalleryThemeData.darkThemeData.canvasColor, + ).animate(_codeBackgroundColorController).value, ), - ); + ), + ); - contents = Stack( - children: [ - codeBackground, - contents, - ], - ); - } + contents = Stack(children: [codeBackground, contents]); + } - return ColoredBox( - color: colorScheme.background, - child: contents, - ); - }); + return ColoredBox(color: colorScheme.background, child: contents); + }, + ); } else { page = ColoredBox( color: colorScheme.background, child: ApplyTextOptions( - child: Scaffold( - appBar: appBar, - body: body, - resizeToAvoidBottomInset: false, - ), + child: Scaffold(appBar: appBar, body: body, resizeToAvoidBottomInset: false), ), ); } @@ -485,9 +430,7 @@ class _GalleryDemoPageState extends State page = MediaQuery.removePadding( removeTop: true, context: context, - child: SplashPage( - child: page, - ), + child: SplashPage(child: page), ); } @@ -524,25 +467,16 @@ class _DemoSectionOptions extends StatelessWidget { mainAxisSize: MainAxisSize.min, children: [ Padding( - padding: const EdgeInsetsDirectional.only( - start: 24, - top: 12, - end: 24, - ), + padding: const EdgeInsetsDirectional.only(start: 24, top: 12, end: 24), child: Text( GalleryLocalizations.of(context)!.demoOptionsTooltip, style: textTheme.headlineMedium!.apply( color: colorScheme.onSurface, - fontSizeDelta: - isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + fontSizeDelta: isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, ), ), ), - Divider( - thickness: 1, - height: 16, - color: colorScheme.onSurface, - ), + Divider(thickness: 1, height: 16, color: colorScheme.onSurface), Flexible( child: ListView( shrinkWrap: true, @@ -567,11 +501,7 @@ class _DemoSectionOptions extends StatelessWidget { } class _DemoSectionOptionsItem extends StatelessWidget { - const _DemoSectionOptionsItem({ - required this.title, - required this.isSelected, - this.onTap, - }); + const _DemoSectionOptionsItem({required this.title, required this.isSelected, this.onTap}); final String title; final bool isSelected; @@ -591,9 +521,8 @@ class _DemoSectionOptionsItem extends StatelessWidget { child: Text( title, style: Theme.of(context).textTheme.bodyMedium!.apply( - color: - isSelected ? colorScheme.primary : colorScheme.onSurface, - ), + color: isSelected ? colorScheme.primary : colorScheme.onSurface, + ), ), ), ), @@ -622,12 +551,7 @@ class _DemoSectionInfo extends StatelessWidget { return Align( alignment: AlignmentDirectional.topStart, child: Container( - padding: const EdgeInsetsDirectional.only( - start: 24, - top: 12, - end: 24, - bottom: 32, - ), + padding: const EdgeInsetsDirectional.only(start: 24, top: 12, end: 24, bottom: 32), constraints: BoxConstraints(maxHeight: maxHeight, maxWidth: maxWidth), child: SingleChildScrollView( child: Column( @@ -638,16 +562,13 @@ class _DemoSectionInfo extends StatelessWidget { title, style: textTheme.headlineMedium!.apply( color: colorScheme.onSurface, - fontSizeDelta: - isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + fontSizeDelta: isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, ), ), const SizedBox(height: 12), SelectableText( description, - style: textTheme.bodyMedium!.apply( - color: colorScheme.onSurface, - ), + style: textTheme.bodyMedium!.apply(color: colorScheme.onSurface), ), ], ), @@ -658,11 +579,7 @@ class _DemoSectionInfo extends StatelessWidget { } class DemoWrapper extends StatelessWidget { - const DemoWrapper({ - super.key, - required this.height, - required this.buildRoute, - }); + const DemoWrapper({super.key, required this.height, required this.buildRoute}); final double height; final WidgetBuilder buildRoute; @@ -683,11 +600,8 @@ class DemoWrapper extends StatelessWidget { platform: GalleryOptions.of(context).platform, ), child: CupertinoTheme( - data: const CupertinoThemeData() - .copyWith(brightness: Brightness.light), - child: ApplyTextOptions( - child: Builder(builder: buildRoute), - ), + data: const CupertinoThemeData().copyWith(brightness: Brightness.light), + child: ApplyTextOptions(child: Builder(builder: buildRoute)), ), ), ), @@ -696,10 +610,7 @@ class DemoWrapper extends StatelessWidget { } class _DemoSectionCode extends StatelessWidget { - const _DemoSectionCode({ - this.maxHeight, - this.codeWidget, - }); + const _DemoSectionCode({this.maxHeight, this.codeWidget}); final double? maxHeight; final Widget? codeWidget; @@ -738,10 +649,7 @@ class CodeDisplayPage extends StatelessWidget { void showSnackBarOnCopySuccess(dynamic result) { ScaffoldMessenger.of(context).showSnackBar( SnackBar( - content: Text( - GalleryLocalizations.of(context)! - .demoCodeViewerCopiedToClipboardMessage, - ), + content: Text(GalleryLocalizations.of(context)!.demoCodeViewerCopiedToClipboardMessage), ), ); } @@ -750,8 +658,9 @@ class CodeDisplayPage extends StatelessWidget { ScaffoldMessenger.of(context).showSnackBar( SnackBar( content: Text( - GalleryLocalizations.of(context)! - .demoCodeViewerFailedToCopyToClipboardMessage(exception), + GalleryLocalizations.of( + context, + )!.demoCodeViewerFailedToCopyToClipboardMessage(exception), ), ), ); @@ -761,9 +670,10 @@ class CodeDisplayPage extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( - padding: isDesktop - ? const EdgeInsets.only(bottom: 8) - : const EdgeInsets.symmetric(vertical: 8), + padding: + isDesktop + ? const EdgeInsets.only(bottom: 8) + : const EdgeInsets.symmetric(vertical: 8), child: ElevatedButton( style: ElevatedButton.styleFrom( backgroundColor: Colors.white.withOpacity(0.15), @@ -773,16 +683,15 @@ class CodeDisplayPage extends StatelessWidget { ), ), onPressed: () async { - await Clipboard.setData(ClipboardData(text: plainTextCode)) - .then(showSnackBarOnCopySuccess) - .catchError(showSnackBarOnCopyFailure); + await Clipboard.setData( + ClipboardData(text: plainTextCode), + ).then(showSnackBarOnCopySuccess).catchError(showSnackBarOnCopyFailure); }, child: Text( GalleryLocalizations.of(context)!.demoCodeViewerCopyAll, - style: Theme.of(context).textTheme.labelLarge!.copyWith( - color: Colors.white, - fontWeight: FontWeight.w500, - ), + style: Theme.of( + context, + ).textTheme.labelLarge!.copyWith(color: Colors.white, fontWeight: FontWeight.w500), ), ), ), @@ -790,10 +699,7 @@ class CodeDisplayPage extends StatelessWidget { child: SingleChildScrollView( child: Container( padding: const EdgeInsets.symmetric(vertical: 8), - child: SelectableText.rich( - richTextCode, - textDirection: TextDirection.ltr, - ), + child: SelectableText.rich(richTextCode, textDirection: TextDirection.ltr), ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart index cf77e9e0e5c32d6aa09719e5a19424aa09ae5451..cdc4adbefc2d037d63211bd783767f2e4040fdae 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/home.dart @@ -47,10 +47,7 @@ class HomePage extends StatelessWidget { final List carouselCards = [ _CarouselCard( demo: studyDemos['reply'], - asset: const AssetImage( - 'assets/studies/reply_card.png', - package: 'flutter_gallery_assets', - ), + asset: const AssetImage('assets/studies/reply_card.png', package: 'flutter_gallery_assets'), assetColor: const Color(0xFF344955), assetDark: const AssetImage( 'assets/studies/reply_card_dark.png', @@ -78,10 +75,7 @@ class HomePage extends StatelessWidget { _CarouselCard( demo: studyDemos['rally'], textColor: RallyColors.accountColors[0], - asset: const AssetImage( - 'assets/studies/rally_card.png', - package: 'flutter_gallery_assets', - ), + asset: const AssetImage('assets/studies/rally_card.png', package: 'flutter_gallery_assets'), assetColor: const Color(0xFFD1F2E6), assetDark: const AssetImage( 'assets/studies/rally_card_dark.png', @@ -92,10 +86,7 @@ class HomePage extends StatelessWidget { ), _CarouselCard( demo: studyDemos['crane'], - asset: const AssetImage( - 'assets/studies/crane_card.png', - package: 'flutter_gallery_assets', - ), + asset: const AssetImage('assets/studies/crane_card.png', package: 'flutter_gallery_assets'), assetColor: const Color(0xFFFBF6F8), assetDark: const AssetImage( 'assets/studies/crane_card_dark.png', @@ -170,15 +161,10 @@ class HomePage extends StatelessWidget { // Makes integration tests possible. key: const ValueKey('HomeListView'), primary: true, - padding: const EdgeInsetsDirectional.only( - top: firstHeaderDesktopTopPadding, - ), + padding: const EdgeInsetsDirectional.only(top: firstHeaderDesktopTopPadding), children: [ _DesktopHomeItem(child: _GalleryHeader()), - _DesktopCarousel( - height: _carouselHeight(0.7, context), - children: carouselCards, - ), + _DesktopCarousel(height: _carouselHeight(0.7, context), children: carouselCards), _DesktopHomeItem(child: _CategoriesHeader()), SizedBox( height: 585, @@ -204,16 +190,16 @@ class HomePage extends StatelessWidget { }, excludeFromSemantics: true, child: FadeInImage( - image: Theme.of(context).colorScheme.brightness == - Brightness.dark - ? const AssetImage( - 'assets/logo/flutter_logo.png', - package: 'flutter_gallery_assets', - ) - : const AssetImage( - 'assets/logo/flutter_logo_color.png', - package: 'flutter_gallery_assets', - ), + image: + Theme.of(context).colorScheme.brightness == Brightness.dark + ? const AssetImage( + 'assets/logo/flutter_logo.png', + package: 'flutter_gallery_assets', + ) + : const AssetImage( + 'assets/logo/flutter_logo_color.png', + package: 'flutter_gallery_assets', + ), placeholder: MemoryImage(kTransparentImage), fadeInDuration: entranceAnimationDuration, ), @@ -242,8 +228,7 @@ class HomePage extends StatelessWidget { return Scaffold( body: _AnimatedHomePage( restorationId: 'animated_page', - isSplashPageAnimationFinished: - SplashPageAnimation.of(context)!.isFinished, + isSplashPageAnimationFinished: SplashPageAnimation.of(context)!.isFinished, carouselCards: carouselCards, ), ); @@ -253,9 +238,7 @@ class HomePage extends StatelessWidget { List spaceBetween(double paddingBetween, List children) { return [ for (int index = 0; index < children.length; index++) ...[ - Flexible( - child: children[index], - ), + Flexible(child: children[index]), if (index < children.length - 1) SizedBox(width: paddingBetween), ], ]; @@ -300,10 +283,9 @@ class Header extends StatelessWidget { child: SelectableText( text, style: Theme.of(context).textTheme.headlineMedium!.apply( - color: color, - fontSizeDelta: - isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, - ), + color: color, + fontSizeDelta: isDisplayDesktop(context) ? desktopDisplay1FontDelta : 0, + ), ), ), ); @@ -358,12 +340,9 @@ class _AnimatedHomePageState extends State<_AnimatedHomePage> _animationController.value = 1.0; } else { // Start our animation halfway through the splash page animation. - _launchTimer = Timer( - halfSplashPageAnimationDuration, - () { - _animationController.forward(); - }, - ); + _launchTimer = Timer(halfSplashPageAnimationDuration, () { + _animationController.forward(); + }); } } @@ -392,8 +371,7 @@ class _AnimatedHomePageState extends State<_AnimatedHomePage> children: [ const SizedBox(height: 8), Container( - margin: - const EdgeInsets.symmetric(horizontal: _horizontalPadding), + margin: const EdgeInsets.symmetric(horizontal: _horizontalPadding), child: _GalleryHeader(), ), _MobileCarousel( @@ -402,59 +380,53 @@ class _AnimatedHomePageState extends State<_AnimatedHomePage> children: widget.carouselCards, ), Container( - margin: - const EdgeInsets.symmetric(horizontal: _horizontalPadding), + margin: const EdgeInsets.symmetric(horizontal: _horizontalPadding), child: _CategoriesHeader(), ), _AnimatedCategoryItem( startDelayFraction: 0.00, controller: _animationController, child: CategoryListItem( - key: const PageStorageKey( - GalleryDemoCategory.material, - ), - restorationId: 'home_material_category_list', - category: GalleryDemoCategory.material, - imageString: 'assets/icons/material/material.png', - demos: Demos.materialDemos(localizations), - initiallyExpanded: - _isMaterialListExpanded.value || isTestMode, - onTap: (bool shouldOpenList) { - _isMaterialListExpanded.value = shouldOpenList; - }), + key: const PageStorageKey(GalleryDemoCategory.material), + restorationId: 'home_material_category_list', + category: GalleryDemoCategory.material, + imageString: 'assets/icons/material/material.png', + demos: Demos.materialDemos(localizations), + initiallyExpanded: _isMaterialListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isMaterialListExpanded.value = shouldOpenList; + }, + ), ), _AnimatedCategoryItem( startDelayFraction: 0.05, controller: _animationController, child: CategoryListItem( - key: const PageStorageKey( - GalleryDemoCategory.cupertino, - ), - restorationId: 'home_cupertino_category_list', - category: GalleryDemoCategory.cupertino, - imageString: 'assets/icons/cupertino/cupertino.png', - demos: Demos.cupertinoDemos(localizations), - initiallyExpanded: - _isCupertinoListExpanded.value || isTestMode, - onTap: (bool shouldOpenList) { - _isCupertinoListExpanded.value = shouldOpenList; - }), + key: const PageStorageKey(GalleryDemoCategory.cupertino), + restorationId: 'home_cupertino_category_list', + category: GalleryDemoCategory.cupertino, + imageString: 'assets/icons/cupertino/cupertino.png', + demos: Demos.cupertinoDemos(localizations), + initiallyExpanded: _isCupertinoListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isCupertinoListExpanded.value = shouldOpenList; + }, + ), ), _AnimatedCategoryItem( startDelayFraction: 0.10, controller: _animationController, child: CategoryListItem( - key: const PageStorageKey( - GalleryDemoCategory.other, - ), - restorationId: 'home_other_category_list', - category: GalleryDemoCategory.other, - imageString: 'assets/icons/reference/reference.png', - demos: Demos.otherDemos(localizations), - initiallyExpanded: _isOtherListExpanded.value || isTestMode, - onTap: (bool shouldOpenList) { - _isOtherListExpanded.value = shouldOpenList; - }), + key: const PageStorageKey(GalleryDemoCategory.other), + restorationId: 'home_other_category_list', + category: GalleryDemoCategory.other, + imageString: 'assets/icons/reference/reference.png', + demos: Demos.otherDemos(localizations), + initiallyExpanded: _isOtherListExpanded.value || isTestMode, + onTap: (bool shouldOpenList) { + _isOtherListExpanded.value = shouldOpenList; + }, + ), ), ], ), @@ -490,9 +462,7 @@ class _DesktopHomeItem extends StatelessWidget { return Align( child: Container( constraints: const BoxConstraints(maxWidth: maxHomeItemWidth), - padding: const EdgeInsets.symmetric( - horizontal: _horizontalDesktopPadding, - ), + padding: const EdgeInsets.symmetric(horizontal: _horizontalDesktopPadding), child: child, ), ); @@ -500,11 +470,7 @@ class _DesktopHomeItem extends StatelessWidget { } class _DesktopCategoryItem extends StatelessWidget { - const _DesktopCategoryItem({ - required this.category, - required this.asset, - required this.demos, - }); + const _DesktopCategoryItem({required this.category, required this.asset, required this.demos}); final GalleryDemoCategory category; final ImageProvider asset; @@ -523,22 +489,15 @@ class _DesktopCategoryItem extends StatelessWidget { policy: WidgetOrderTraversalPolicy(), child: Column( children: [ - _DesktopCategoryHeader( - category: category, - asset: asset, - ), - Divider( - height: 2, - thickness: 2, - color: colorScheme.background, - ), + _DesktopCategoryHeader(category: category, asset: asset), + Divider(height: 2, thickness: 2, color: colorScheme.background), Flexible( child: ListView.builder( // Makes integration tests possible. key: ValueKey('${category.name}DemoList'), primary: false, - itemBuilder: (BuildContext context, int index) => - CategoryDemoItem(demo: demos[index]), + itemBuilder: + (BuildContext context, int index) => CategoryDemoItem(demo: demos[index]), itemCount: demos.length, ), ), @@ -551,10 +510,7 @@ class _DesktopCategoryItem extends StatelessWidget { } class _DesktopCategoryHeader extends StatelessWidget { - const _DesktopCategoryHeader({ - required this.category, - required this.asset, - }); + const _DesktopCategoryHeader({required this.category, required this.asset}); final GalleryDemoCategory category; final ImageProvider asset; @@ -586,9 +542,9 @@ class _DesktopCategoryHeader extends StatelessWidget { header: true, child: SelectableText( category.displayTitle(GalleryLocalizations.of(context)!)!, - style: Theme.of(context).textTheme.headlineSmall!.apply( - color: colorScheme.onSurface, - ), + style: Theme.of( + context, + ).textTheme.headlineSmall!.apply(color: colorScheme.onSurface), ), ), ), @@ -607,19 +563,16 @@ class _AnimatedCategoryItem extends StatelessWidget { required double startDelayFraction, required this.controller, required this.child, - }) : topPaddingAnimation = Tween( - begin: 60.0, - end: 0.0, - ).animate( - CurvedAnimation( - parent: controller, - curve: Interval( - 0.000 + startDelayFraction, - 0.400 + startDelayFraction, - curve: Curves.ease, - ), - ), - ); + }) : topPaddingAnimation = Tween(begin: 60.0, end: 0.0).animate( + CurvedAnimation( + parent: controller, + curve: Interval( + 0.000 + startDelayFraction, + 0.400 + startDelayFraction, + curve: Curves.ease, + ), + ), + ); final Widget child; final AnimationController controller; @@ -630,10 +583,7 @@ class _AnimatedCategoryItem extends StatelessWidget { return AnimatedBuilder( animation: controller, builder: (BuildContext context, Widget? child) { - return Padding( - padding: EdgeInsets.only(top: topPaddingAnimation.value), - child: child, - ); + return Padding(padding: EdgeInsets.only(top: topPaddingAnimation.value), child: child); }, child: child, ); @@ -642,22 +592,13 @@ class _AnimatedCategoryItem extends StatelessWidget { /// Animates the carousel to come in from the right. class _AnimatedCarousel extends StatelessWidget { - _AnimatedCarousel({ - required this.child, - required this.controller, - }) : startPositionAnimation = Tween( - begin: 1.0, - end: 0.0, - ).animate( - CurvedAnimation( - parent: controller, - curve: const Interval( - 0.200, - 0.800, - curve: Curves.ease, - ), - ), - ); + _AnimatedCarousel({required this.child, required this.controller}) + : startPositionAnimation = Tween(begin: 1.0, end: 0.0).animate( + CurvedAnimation( + parent: controller, + curve: const Interval(0.200, 0.800, curve: Curves.ease), + ), + ); final Widget child; final AnimationController controller; @@ -665,48 +606,41 @@ class _AnimatedCarousel extends StatelessWidget { @override Widget build(BuildContext context) { - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Stack( - children: [ - SizedBox(height: _carouselHeight(.4, context)), - AnimatedBuilder( - animation: controller, - builder: (BuildContext context, Widget? child) { - return PositionedDirectional( - start: constraints.maxWidth * startPositionAnimation.value, - child: child!, - ); - }, - child: SizedBox( - height: _carouselHeight(.4, context), - width: constraints.maxWidth, - child: child, + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Stack( + children: [ + SizedBox(height: _carouselHeight(.4, context)), + AnimatedBuilder( + animation: controller, + builder: (BuildContext context, Widget? child) { + return PositionedDirectional( + start: constraints.maxWidth * startPositionAnimation.value, + child: child!, + ); + }, + child: SizedBox( + height: _carouselHeight(.4, context), + width: constraints.maxWidth, + child: child, + ), ), - ), - ], - ); - }); + ], + ); + }, + ); } } /// Animates a carousel card to come in from the right. class _AnimatedCarouselCard extends StatelessWidget { - _AnimatedCarouselCard({ - required this.child, - required this.controller, - }) : startPaddingAnimation = Tween( - begin: _horizontalPadding, - end: 0.0, - ).animate( - CurvedAnimation( - parent: controller, - curve: const Interval( - 0.900, - 1.000, - curve: Curves.ease, - ), - ), - ); + _AnimatedCarouselCard({required this.child, required this.controller}) + : startPaddingAnimation = Tween(begin: _horizontalPadding, end: 0.0).animate( + CurvedAnimation( + parent: controller, + curve: const Interval(0.900, 1.000, curve: Curves.ease), + ), + ); final Widget child; final AnimationController controller; @@ -718,9 +652,7 @@ class _AnimatedCarouselCard extends StatelessWidget { animation: controller, builder: (BuildContext context, Widget? child) { return Padding( - padding: EdgeInsetsDirectional.only( - start: startPaddingAnimation.value, - ), + padding: EdgeInsetsDirectional.only(start: startPaddingAnimation.value), child: child, ); }, @@ -793,20 +725,14 @@ class _MobileCarouselState extends State<_MobileCarousel> value = (1 - (value.abs() * .3)).clamp(0, 1).toDouble(); value = Curves.easeOut.transform(value); - return Transform.scale( - scale: value, - child: child, - ); + return Transform.scale(scale: value, child: child); }, child: widget.children[index], ); // We only want the second card to be animated. if (index == 1) { - return _AnimatedCarouselCard( - controller: widget.animationController, - child: carouselCard, - ); + return _AnimatedCarouselCard(controller: widget.animationController, child: carouselCard); } else { return carouselCard; } @@ -874,8 +800,7 @@ class _DesktopCarouselState extends State<_DesktopCarousel> { // Only check this after the _controller has been attached to the ListView. if (_controller.hasClients) { showPreviousButton = _controller.offset > 0; - showNextButton = - _controller.offset < _controller.position.maxScrollExtent; + showNextButton = _controller.offset < _controller.position.maxScrollExtent; } final bool isDesktop = isDisplayDesktop(context); @@ -888,9 +813,10 @@ class _DesktopCarouselState extends State<_DesktopCarousel> { children: [ ListView.builder( padding: EdgeInsets.symmetric( - horizontal: isDesktop - ? _horizontalDesktopPadding - _carouselItemDesktopMargin - : _horizontalPadding - _carouselItemMobileMargin, + horizontal: + isDesktop + ? _horizontalDesktopPadding - _carouselItemDesktopMargin + : _horizontalPadding - _carouselItemMobileMargin, ), scrollDirection: Axis.horizontal, primary: false, @@ -898,10 +824,11 @@ class _DesktopCarouselState extends State<_DesktopCarousel> { controller: _controller, itemExtent: _carouselItemWidth, itemCount: widget.children.length, - itemBuilder: (BuildContext context, int index) => Padding( - padding: const EdgeInsets.symmetric(vertical: 8.0), - child: widget.children[index], - ), + itemBuilder: + (BuildContext context, int index) => Padding( + padding: const EdgeInsets.symmetric(vertical: 8.0), + child: widget.children[index], + ), ), if (showPreviousButton) _DesktopPageButton( @@ -940,11 +867,7 @@ class _SnappingScrollPhysics extends ScrollPhysics { return _SnappingScrollPhysics(parent: buildParent(ancestor)); } - double _getTargetPixels( - ScrollMetrics position, - Tolerance tolerance, - double velocity, - ) { + double _getTargetPixels(ScrollMetrics position, Tolerance tolerance, double velocity) { final double itemWidth = position.viewportDimension / 4; double item = position.pixels / itemWidth; if (velocity < -tolerance.velocity) { @@ -952,17 +875,11 @@ class _SnappingScrollPhysics extends ScrollPhysics { } else if (velocity > tolerance.velocity) { item += 0.5; } - return math.min( - item.roundToDouble() * itemWidth, - position.maxScrollExtent, - ); + return math.min(item.roundToDouble() * itemWidth, position.maxScrollExtent); } @override - Simulation? createBallisticSimulation( - ScrollMetrics position, - double velocity, - ) { + Simulation? createBallisticSimulation(ScrollMetrics position, double velocity) { if ((velocity <= 0.0 && position.pixels <= position.minScrollExtent) || (velocity >= 0.0 && position.pixels >= position.maxScrollExtent)) { return super.createBallisticSimulation(position, velocity); @@ -986,10 +903,7 @@ class _SnappingScrollPhysics extends ScrollPhysics { } class _DesktopPageButton extends StatelessWidget { - const _DesktopPageButton({ - this.isEnd = false, - this.onTap, - }); + const _DesktopPageButton({this.isEnd = false, this.onTap}); final bool isEnd; final GestureTapCallback? onTap; @@ -1000,20 +914,16 @@ class _DesktopPageButton extends StatelessWidget { const double padding = _horizontalDesktopPadding - buttonSize / 2; return ExcludeSemantics( child: Align( - alignment: isEnd - ? AlignmentDirectional.centerEnd - : AlignmentDirectional.centerStart, + alignment: isEnd ? AlignmentDirectional.centerEnd : AlignmentDirectional.centerStart, child: Container( width: buttonSize, height: buttonSize, - margin: EdgeInsetsDirectional.only( - start: isEnd ? 0 : padding, - end: isEnd ? padding : 0, - ), + margin: EdgeInsetsDirectional.only(start: isEnd ? 0 : padding, end: isEnd ? padding : 0), child: Tooltip( - message: isEnd - ? MaterialLocalizations.of(context).nextPageTooltip - : MaterialLocalizations.of(context).previousPageTooltip, + message: + isEnd + ? MaterialLocalizations.of(context).nextPageTooltip + : MaterialLocalizations.of(context).previousPageTooltip, child: Material( color: Colors.black.withOpacity(0.5), shape: const CircleBorder(), @@ -1063,9 +973,8 @@ class _CarouselCard extends StatelessWidget { return Container( padding: EdgeInsets.symmetric( - horizontal: isDesktop - ? _carouselItemDesktopMargin - : _carouselItemMobileMargin), + horizontal: isDesktop ? _carouselItemDesktopMargin : _carouselItemMobileMargin, + ), margin: const EdgeInsets.symmetric(vertical: 16.0), height: _carouselHeight(0.7, context), width: _carouselItemWidth, @@ -1113,8 +1022,9 @@ class _CarouselCard extends StatelessWidget { color: Colors.transparent, child: InkWell( onTap: () { - Navigator.of(context) - .popUntil((Route route) => route.settings.name == '/'); + Navigator.of( + context, + ).popUntil((Route route) => route.settings.name == '/'); Navigator.of(context).restorablePushNamed(studyRoute); }, ), @@ -1128,10 +1038,9 @@ class _CarouselCard extends StatelessWidget { } double _carouselHeight(double scaleFactor, BuildContext context) => math.max( - _carouselHeightMin * - GalleryOptions.of(context).textScaleFactor(context) * - scaleFactor, - _carouselHeightMin); + _carouselHeightMin * GalleryOptions.of(context).textScaleFactor(context) * scaleFactor, + _carouselHeightMin, +); /// Wrap the studies with this to display a back button and allow the user to /// exit them at any time. @@ -1161,20 +1070,16 @@ class _StudyWrapperState extends State { children: [ Semantics( sortKey: const OrdinalSortKey(1), - child: RestorationScope( - restorationId: 'study_wrapper', - child: widget.study, - ), + child: RestorationScope(restorationId: 'study_wrapper', child: widget.study), ), SafeArea( child: Align( alignment: widget.alignment, child: Padding( padding: EdgeInsets.symmetric( - horizontal: 16.0, - vertical: widget.hasBottomNavBar - ? kBottomNavigationBarHeight + 16.0 - : 16.0), + horizontal: 16.0, + vertical: widget.hasBottomNavBar ? kBottomNavigationBarHeight + 16.0 : 16.0, + ), child: Semantics( sortKey: const OrdinalSortKey(0), label: GalleryLocalizations.of(context)!.backToGallery, @@ -1185,8 +1090,9 @@ class _StudyWrapperState extends State { heroTag: _BackButtonHeroTag(), key: const ValueKey('Back'), onPressed: () { - Navigator.of(context) - .popUntil((Route route) => route.settings.name == '/'); + Navigator.of( + context, + ).popUntil((Route route) => route.settings.name == '/'); }, icon: IconTheme( data: IconThemeData(color: colorScheme.onPrimary), @@ -1194,8 +1100,7 @@ class _StudyWrapperState extends State { ), label: Text( MaterialLocalizations.of(context).backButtonTooltip, - style: textTheme.labelLarge! - .apply(color: colorScheme.onPrimary), + style: textTheme.labelLarge!.apply(color: colorScheme.onPrimary), ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart index 74bbf85f29e61425275281d5bd92215debea78f2..3412b0cffdd97b7e23f6ec20cf58fb434e6c05e8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/settings.dart @@ -17,19 +17,10 @@ import 'about.dart' as about; import 'home.dart'; import 'settings_list_item.dart'; -enum _ExpandableSetting { - textScale, - textDirection, - locale, - platform, - theme, -} +enum _ExpandableSetting { textScale, textDirection, locale, platform, theme } class SettingsPage extends StatefulWidget { - const SettingsPage({ - super.key, - required this.animationController, - }); + const SettingsPage({super.key, required this.animationController}); final AnimationController animationController; @@ -68,11 +59,7 @@ class _SettingsPageState extends State { _staggerSettingsItemsAnimation = CurvedAnimation( parent: widget.animationController, - curve: const Interval( - 0.4, - 1.0, - curve: Curves.ease, - ), + curve: const Interval(0.4, 1.0, curve: Curves.ease), ); } @@ -104,10 +91,7 @@ class _SettingsPageState extends State { case 'fil': return DisplayOption('Filipino', subtitle: 'Filipino'); case 'es_419': - return DisplayOption( - 'español (Latinoamérica)', - subtitle: 'Spanish (Latin America)', - ); + return DisplayOption('español (Latinoamérica)', subtitle: 'Spanish (Latin America)'); } } @@ -117,24 +101,27 @@ class _SettingsPageState extends State { /// Create a sorted — by native name – map of supported locales to their /// intended display string, with a system option as the first element. LinkedHashMap _getLocaleOptions() { - final LinkedHashMap localeOptions = LinkedHashMap.of({ - systemLocaleOption: DisplayOption( - GalleryLocalizations.of(context)!.settingsSystemDefault + - (deviceLocale != null - ? ' - ${_getLocaleDisplayOption(context, deviceLocale).title}' - : ''), - ), - }); - final List supportedLocales = - List.from(GalleryLocalizations.supportedLocales); + final LinkedHashMap localeOptions = + LinkedHashMap.of({ + systemLocaleOption: DisplayOption( + GalleryLocalizations.of(context)!.settingsSystemDefault + + (deviceLocale != null + ? ' - ${_getLocaleDisplayOption(context, deviceLocale).title}' + : ''), + ), + }); + final List supportedLocales = List.from(GalleryLocalizations.supportedLocales); supportedLocales.removeWhere((Locale locale) => locale == deviceLocale); - final List> displayLocales = Map.fromIterable( - supportedLocales, - value: (dynamic locale) => - _getLocaleDisplayOption(context, locale as Locale?), - ).entries.toList() - ..sort((MapEntry l1, MapEntry l2) => compareAsciiUpperCase(l1.value.title, l2.value.title)); + final List> displayLocales = + Map.fromIterable( + supportedLocales, + value: (dynamic locale) => _getLocaleDisplayOption(context, locale as Locale?), + ).entries.toList() + ..sort( + (MapEntry l1, MapEntry l2) => + compareAsciiUpperCase(l1.value.title, l2.value.title), + ); localeOptions.addAll(LinkedHashMap.fromEntries(displayLocales)); return localeOptions; @@ -150,69 +137,49 @@ class _SettingsPageState extends State { final List settingsListItems = [ SettingsListItem( title: localizations.settingsTextScaling, - selectedOption: options.textScaleFactor( - context, - useSentinel: true, - ), + selectedOption: options.textScaleFactor(context, useSentinel: true), optionsMap: LinkedHashMap.of({ - systemTextScaleFactorOption: DisplayOption( - localizations.settingsSystemDefault, - ), - 0.8: DisplayOption( - localizations.settingsTextScalingSmall, - ), - 1.0: DisplayOption( - localizations.settingsTextScalingNormal, - ), - 2.0: DisplayOption( - localizations.settingsTextScalingLarge, - ), - 3.0: DisplayOption( - localizations.settingsTextScalingHuge, - ), + systemTextScaleFactorOption: DisplayOption(localizations.settingsSystemDefault), + 0.8: DisplayOption(localizations.settingsTextScalingSmall), + 1.0: DisplayOption(localizations.settingsTextScalingNormal), + 2.0: DisplayOption(localizations.settingsTextScalingLarge), + 3.0: DisplayOption(localizations.settingsTextScalingHuge), }), - onOptionChanged: (double? newTextScale) => GalleryOptions.update( - context, - options.copyWith(textScaleFactor: newTextScale), - ), + onOptionChanged: + (double? newTextScale) => + GalleryOptions.update(context, options.copyWith(textScaleFactor: newTextScale)), onTapSetting: () => onTapSetting(_ExpandableSetting.textScale), isExpanded: _expandedSettingId == _ExpandableSetting.textScale, ), SettingsListItem( title: localizations.settingsTextDirection, selectedOption: options.customTextDirection, - optionsMap: LinkedHashMap.of({ - CustomTextDirection.localeBased: DisplayOption( - localizations.settingsTextDirectionLocaleBased, - ), - CustomTextDirection.ltr: DisplayOption( - localizations.settingsTextDirectionLTR, - ), - CustomTextDirection.rtl: DisplayOption( - localizations.settingsTextDirectionRTL, - ), - }), - onOptionChanged: (CustomTextDirection? newTextDirection) => GalleryOptions.update( - context, - options.copyWith(customTextDirection: newTextDirection), + optionsMap: LinkedHashMap.of( + { + CustomTextDirection.localeBased: DisplayOption( + localizations.settingsTextDirectionLocaleBased, + ), + CustomTextDirection.ltr: DisplayOption(localizations.settingsTextDirectionLTR), + CustomTextDirection.rtl: DisplayOption(localizations.settingsTextDirectionRTL), + }, ), + onOptionChanged: + (CustomTextDirection? newTextDirection) => GalleryOptions.update( + context, + options.copyWith(customTextDirection: newTextDirection), + ), onTapSetting: () => onTapSetting(_ExpandableSetting.textDirection), isExpanded: _expandedSettingId == _ExpandableSetting.textDirection, ), SettingsListItem( title: localizations.settingsLocale, - selectedOption: options.locale == deviceLocale - ? systemLocaleOption - : options.locale, + selectedOption: options.locale == deviceLocale ? systemLocaleOption : options.locale, optionsMap: _getLocaleOptions(), onOptionChanged: (Locale? newLocale) { if (newLocale == systemLocaleOption) { newLocale = deviceLocale; } - GalleryOptions.update( - context, - options.copyWith(locale: newLocale), - ); + GalleryOptions.update(context, options.copyWith(locale: newLocale)); }, onTapSetting: () => onTapSetting(_ExpandableSetting.locale), isExpanded: _expandedSettingId == _ExpandableSetting.locale, @@ -220,17 +187,17 @@ class _SettingsPageState extends State { SettingsListItem( title: localizations.settingsPlatformMechanics, selectedOption: options.platform, - optionsMap: LinkedHashMap.of({ - TargetPlatform.android: DisplayOption('Android'), - TargetPlatform.iOS: DisplayOption('iOS'), - TargetPlatform.macOS: DisplayOption('macOS'), - TargetPlatform.linux: DisplayOption('Linux'), - TargetPlatform.windows: DisplayOption('Windows'), - }), - onOptionChanged: (TargetPlatform? newPlatform) => GalleryOptions.update( - context, - options.copyWith(platform: newPlatform), - ), + optionsMap: + LinkedHashMap.of({ + TargetPlatform.android: DisplayOption('Android'), + TargetPlatform.iOS: DisplayOption('iOS'), + TargetPlatform.macOS: DisplayOption('macOS'), + TargetPlatform.linux: DisplayOption('Linux'), + TargetPlatform.windows: DisplayOption('Windows'), + }), + onOptionChanged: + (TargetPlatform? newPlatform) => + GalleryOptions.update(context, options.copyWith(platform: newPlatform)), onTapSetting: () => onTapSetting(_ExpandableSetting.platform), isExpanded: _expandedSettingId == _ExpandableSetting.platform, ), @@ -238,49 +205,36 @@ class _SettingsPageState extends State { title: localizations.settingsTheme, selectedOption: options.themeMode, optionsMap: LinkedHashMap.of({ - ThemeMode.system: DisplayOption( - localizations.settingsSystemDefault, - ), - ThemeMode.dark: DisplayOption( - localizations.settingsDarkTheme, - ), - ThemeMode.light: DisplayOption( - localizations.settingsLightTheme, - ), + ThemeMode.system: DisplayOption(localizations.settingsSystemDefault), + ThemeMode.dark: DisplayOption(localizations.settingsDarkTheme), + ThemeMode.light: DisplayOption(localizations.settingsLightTheme), }), - onOptionChanged: (ThemeMode? newThemeMode) => GalleryOptions.update( - context, - options.copyWith(themeMode: newThemeMode), - ), + onOptionChanged: + (ThemeMode? newThemeMode) => + GalleryOptions.update(context, options.copyWith(themeMode: newThemeMode)), onTapSetting: () => onTapSetting(_ExpandableSetting.theme), isExpanded: _expandedSettingId == _ExpandableSetting.theme, ), ToggleSetting( text: GalleryLocalizations.of(context)!.settingsSlowMotion, value: options.timeDilation != 1.0, - onChanged: (bool isOn) => GalleryOptions.update( - context, - options.copyWith(timeDilation: isOn ? 5.0 : 1.0), - ), + onChanged: + (bool isOn) => + GalleryOptions.update(context, options.copyWith(timeDilation: isOn ? 5.0 : 1.0)), ), ]; return Material( color: colorScheme.secondaryContainer, child: Padding( - padding: isDesktop - ? EdgeInsets.zero - : const EdgeInsets.only( - bottom: galleryHeaderHeight, - ), + padding: isDesktop ? EdgeInsets.zero : const EdgeInsets.only(bottom: galleryHeaderHeight), // Remove ListView top padding as it is already accounted for. child: MediaQuery.removePadding( removeTop: isDesktop, context: context, child: ListView( children: [ - if (isDesktop) - const SizedBox(height: firstHeaderDesktopTopPadding), + if (isDesktop) const SizedBox(height: firstHeaderDesktopTopPadding), Padding( padding: const EdgeInsets.symmetric(horizontal: 32), child: ExcludeSemantics( @@ -338,8 +292,7 @@ class SettingsFeedback extends StatelessWidget { title: GalleryLocalizations.of(context)!.settingsFeedback, icon: Icons.feedback, onTap: () async { - final Uri url = - Uri.parse('https://github.com/flutter/gallery/issues/new/choose/'); + final Uri url = Uri.parse('https://github.com/flutter/gallery/issues/new/choose/'); if (await canLaunchUrl(url)) { await launchUrl(url); } @@ -366,9 +319,9 @@ class SettingsAttribution extends StatelessWidget { child: SelectableText( GalleryLocalizations.of(context)!.settingsAttribution, style: Theme.of(context).textTheme.bodyLarge!.copyWith( - fontSize: 12, - color: Theme.of(context).colorScheme.onSecondary, - ), + fontSize: 12, + color: Theme.of(context).colorScheme.onSecondary, + ), textAlign: isDesktop ? TextAlign.end : TextAlign.start, ), ), @@ -377,12 +330,7 @@ class SettingsAttribution extends StatelessWidget { } class _SettingsLink extends StatelessWidget { - - const _SettingsLink({ - required this.title, - this.icon, - this.onTap, - }); + const _SettingsLink({required this.title, this.icon, this.onTap}); final String title; final IconData? icon; final GestureTapCallback? onTap; @@ -396,29 +344,17 @@ class _SettingsLink extends StatelessWidget { return InkWell( onTap: onTap, child: Padding( - padding: EdgeInsets.symmetric( - horizontal: isDesktop ? 24 : 32, - ), + padding: EdgeInsets.symmetric(horizontal: isDesktop ? 24 : 32), child: Row( mainAxisSize: MainAxisSize.min, children: [ - Icon( - icon, - color: colorScheme.onSecondary.withOpacity(0.5), - size: 24, - ), + Icon(icon, color: colorScheme.onSecondary.withOpacity(0.5), size: 24), Flexible( child: Padding( - padding: const EdgeInsetsDirectional.only( - start: 16, - top: 12, - bottom: 12, - ), + padding: const EdgeInsetsDirectional.only(start: 16, top: 12, bottom: 12), child: Text( title, - style: textTheme.titleSmall!.apply( - color: colorScheme.onSecondary, - ), + style: textTheme.titleSmall!.apply(color: colorScheme.onSecondary), textAlign: isDesktop ? TextAlign.end : TextAlign.start, ), ), @@ -432,10 +368,7 @@ class _SettingsLink extends StatelessWidget { /// Animate the settings list items to stagger in from above. class _AnimateSettingsListItems extends StatelessWidget { - const _AnimateSettingsListItems({ - required this.animation, - required this.children, - }); + const _AnimateSettingsListItems({required this.animation, required this.children}); final Animation animation; final List children; @@ -443,10 +376,7 @@ class _AnimateSettingsListItems extends StatelessWidget { @override Widget build(BuildContext context) { const double dividingPadding = 4.0; - final Tween dividerTween = Tween( - begin: 0, - end: dividingPadding, - ); + final Tween dividerTween = Tween(begin: 0, end: dividingPadding); return Padding( padding: const EdgeInsets.symmetric(vertical: 16.0), @@ -457,9 +387,7 @@ class _AnimateSettingsListItems extends StatelessWidget { animation: animation, builder: (BuildContext context, Widget? child) { return Padding( - padding: EdgeInsets.only( - top: dividerTween.animate(animation).value, - ), + padding: EdgeInsets.only(top: dividerTween.animate(animation).value), child: child, ); }, diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart index 5a5cb6c4ea797800dcf127c8a465e06b781a3c07..d5a4b43cf8163031e923e77ef259cca4a039e50e 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/icon.dart @@ -13,9 +13,7 @@ class SettingsIcon extends StatelessWidget { @override Widget build(BuildContext context) { - return CustomPaint( - painter: _SettingsIconPainter(time: time, context: context), - ); + return CustomPaint(painter: _SettingsIconPainter(time: time, context: context)); } } @@ -62,19 +60,14 @@ class _SettingsIconPainter extends CustomPainter { /// Black or white paint, depending on brightness. Paint get _monoPaint { final Color monoColor = - Theme.of(context).colorScheme.brightness == Brightness.light - ? Colors.black - : Colors.white; + Theme.of(context).colorScheme.brightness == Brightness.light ? Colors.black : Colors.white; return Paint()..color = monoColor; } /// Pink paint with horizontal gradient. Paint get _pinkPaint { const LinearGradient shader = LinearGradient(colors: [pinkLeft, pinkRight]); - final Rect shaderRect = _fixedRect.translate( - _size(-(stickLength - colorLength(time)) / 2), - 0, - ); + final Rect shaderRect = _fixedRect.translate(_size(-(stickLength - colorLength(time)) / 2), 0); return Paint()..shader = shader.createShader(shaderRect); } @@ -82,10 +75,7 @@ class _SettingsIconPainter extends CustomPainter { /// Teal paint with horizontal gradient. Paint get _tealPaint { const LinearGradient shader = LinearGradient(colors: [tealLeft, tealRight]); - final Rect shaderRect = _fixedRect.translate( - _size((stickLength - colorLength(time)) / 2), - 0, - ); + final Rect shaderRect = _fixedRect.translate(_size((stickLength - colorLength(time)) / 2), 0); return Paint()..shader = shader.createShader(shaderRect); } @@ -113,15 +103,9 @@ class _SettingsIconPainter extends CustomPainter { _canvas.translate(center.dx, center.dy); _canvas.rotate(angle); - final Rect leftOval = Rect.fromCircle( - center: Offset(-stretch + radius, 0), - radius: radius, - ); + final Rect leftOval = Rect.fromCircle(center: Offset(-stretch + radius, 0), radius: radius); - final Rect rightOval = Rect.fromCircle( - center: Offset(stretch - radius, 0), - radius: radius, - ); + final Rect rightOval = Rect.fromCircle(center: Offset(stretch - radius, 0), radius: radius); _canvas.drawPath( Path() diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart index ffd59a8697ad98c325ecc6d8da4b196f6dbd9a0d..2da2accb9b3c918ea2fd0c72839c952e3841f632 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_icon/metrics.dart @@ -41,49 +41,30 @@ bool isTransitionPhase(double time) => time < _colorKnobContractionEnds; // Curve easing. const Cubic _curve = Curves.easeInOutCubic; -double _progress( - double time, { - required double begin, - required double end, -}) => +double _progress(double time, {required double begin, required double end}) => _curve.transform(((time - begin) / (end - begin)).clamp(0, 1).toDouble()); -double _monoKnobProgress(double time) => _progress( - time, - begin: 0, - end: _monoKnobExpansionEnds, - ); +double _monoKnobProgress(double time) => _progress(time, begin: 0, end: _monoKnobExpansionEnds); -double _colorKnobProgress(double time) => _progress( - time, - begin: _colorKnobContractionBegins, - end: _colorKnobContractionEnds, - ); +double _colorKnobProgress(double time) => + _progress(time, begin: _colorKnobContractionBegins, end: _colorKnobContractionEnds); -double _rotationProgress(double time) => _progress( - time, - begin: _colorKnobContractionEnds, - end: 1, - ); +double _rotationProgress(double time) => _progress(time, begin: _colorKnobContractionEnds, end: 1); // Changing lengths: mono. double monoLength(double time) => _monoKnobProgress(time) * (stickLength - knobDiameter) + knobDiameter; -double _monoLengthLeft(double time) => - min(monoLength(time) - knobRadius, stickRadius); +double _monoLengthLeft(double time) => min(monoLength(time) - knobRadius, stickRadius); -double _monoLengthRight(double time) => - monoLength(time) - _monoLengthLeft(time); +double _monoLengthRight(double time) => monoLength(time) - _monoLengthLeft(time); double _monoHorizontalOffset(double time) => (_monoLengthRight(time) - _monoLengthLeft(time)) / 2 - knobDeviation; -Offset upperMonoOffset(double time) => - upperKnobCenter + Offset(_monoHorizontalOffset(time), 0); +Offset upperMonoOffset(double time) => upperKnobCenter + Offset(_monoHorizontalOffset(time), 0); -Offset lowerMonoOffset(double time) => - lowerKnobCenter + Offset(-_monoHorizontalOffset(time), 0); +Offset lowerMonoOffset(double time) => lowerKnobCenter + Offset(-_monoHorizontalOffset(time), 0); // Changing lengths: color. double colorLength(double time) => (1 - _colorKnobProgress(time)) * stickLength; diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart index 6fcfebe761567c176b2ba42199b721705868ec1e..c8c618020d22be35efec630552ad2dc149c80105 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/settings_list_item.dart @@ -11,14 +11,12 @@ final BorderRadius settingItemBorderRadius = BorderRadius.circular(10); const EdgeInsetsDirectional settingItemHeaderMargin = EdgeInsetsDirectional.fromSTEB(32, 0, 32, 8); class DisplayOption { - DisplayOption(this.title, {this.subtitle}); final String title; final String? subtitle; } class ToggleSetting extends StatelessWidget { - const ToggleSetting({ super.key, required this.text, @@ -54,9 +52,7 @@ class ToggleSetting extends StatelessWidget { children: [ SelectableText( text, - style: textTheme.titleMedium!.apply( - color: colorScheme.onSurface, - ), + style: textTheme.titleMedium!.apply(color: colorScheme.onSurface), ), ], ), @@ -64,11 +60,7 @@ class ToggleSetting extends StatelessWidget { ), Padding( padding: const EdgeInsetsDirectional.only(end: 8), - child: Switch( - activeColor: colorScheme.primary, - value: value, - onChanged: onChanged, - ), + child: Switch(activeColor: colorScheme.primary, value: value, onChanged: onChanged), ), ], ), @@ -102,8 +94,7 @@ class SettingsListItem extends StatefulWidget { class _SettingsListItemState extends State> with SingleTickerProviderStateMixin { - static final Animatable _easeInTween = - CurveTween(curve: Curves.easeIn); + static final Animatable _easeInTween = CurveTween(curve: Curves.easeIn); static const Duration _expandDuration = Duration(milliseconds: 150); late AnimationController _controller; late Animation _childrenHeightFactor; @@ -123,8 +114,7 @@ class _SettingsListItemState extends State> super.initState(); _controller = AnimationController(duration: _expandDuration, vsync: this); _childrenHeightFactor = _controller.drive(_easeInTween); - _headerChevronRotation = - Tween(begin: 0, end: 0.5).animate(_controller); + _headerChevronRotation = Tween(begin: 0, end: 0.5).animate(_controller); _headerMargin = EdgeInsetsGeometryTween( begin: settingItemHeaderMargin, end: EdgeInsets.zero, @@ -133,8 +123,7 @@ class _SettingsListItemState extends State> begin: const EdgeInsetsDirectional.fromSTEB(16, 10, 0, 10), end: const EdgeInsetsDirectional.fromSTEB(32, 18, 32, 20), ).animate(_controller); - _headerSubtitleHeight = - _controller.drive(Tween(begin: 1.0, end: 0.0)); + _headerSubtitleHeight = _controller.drive(Tween(begin: 1.0, end: 0.0)); _childrenPadding = EdgeInsetsGeometryTween( begin: const EdgeInsets.symmetric(horizontal: 32), end: EdgeInsets.zero, @@ -186,12 +175,7 @@ class _SettingsListItemState extends State> ), Padding( padding: _childrenPadding.value, - child: ClipRect( - child: Align( - heightFactor: _childrenHeightFactor.value, - child: child, - ), - ), + child: ClipRect(child: Align(heightFactor: _childrenHeightFactor.value, child: child)), ), ], ); @@ -210,10 +194,7 @@ class _SettingsListItemState extends State> margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40), decoration: BoxDecoration( border: BorderDirectional( - start: BorderSide( - width: 2, - color: theme.colorScheme.background, - ), + start: BorderSide(width: 2, color: theme.colorScheme.background), ), ), child: ListView.builder( @@ -237,10 +218,7 @@ class _SettingsListItemState extends State> displayOption.subtitle!, style: theme.textTheme.bodyLarge!.copyWith( fontSize: 12, - color: Theme.of(context) - .colorScheme - .onPrimary - .withOpacity(0.8), + color: Theme.of(context).colorScheme.onPrimary.withOpacity(0.8), ), ), ], @@ -302,9 +280,7 @@ class _CategoryHeader extends StatelessWidget { children: [ Text( title, - style: textTheme.titleMedium!.apply( - color: colorScheme.onSurface, - ), + style: textTheme.titleMedium!.apply(color: colorScheme.onSurface), ), SizeTransition( sizeFactor: subtitleHeight, @@ -312,25 +288,20 @@ class _CategoryHeader extends StatelessWidget { subtitle, maxLines: 1, overflow: TextOverflow.ellipsis, - style: textTheme.labelSmall!.apply( - color: colorScheme.primary, - ), + style: textTheme.labelSmall!.apply(color: colorScheme.primary), ), - ) + ), ], ), ), ), Padding( - padding: const EdgeInsetsDirectional.only( - start: 8, - end: 24, - ), + padding: const EdgeInsetsDirectional.only(start: 8, end: 24), child: RotationTransition( turns: chevronRotation, child: const Icon(Icons.arrow_drop_down), ), - ) + ), ], ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart b/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart index d7914048fafd802ce4279a8eb50b43531d21859d..51e144e624d0f7c8e8599791bb0d438ced5d663c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/pages/splash.dart @@ -14,11 +14,7 @@ const double homePeekDesktop = 210.0; const double homePeekMobile = 60.0; class SplashPageAnimation extends InheritedWidget { - const SplashPageAnimation({ - super.key, - required this.isFinished, - required super.child, - }); + const SplashPageAnimation({super.key, required this.isFinished, required super.child}); final bool isFinished; @@ -31,10 +27,7 @@ class SplashPageAnimation extends InheritedWidget { } class SplashPage extends StatefulWidget { - const SplashPage({ - super.key, - required this.child, - }); + const SplashPage({super.key, required this.child}); final Widget child; @@ -42,8 +35,7 @@ class SplashPage extends StatefulWidget { State createState() => _SplashPageState(); } -class _SplashPageState extends State - with SingleTickerProviderStateMixin { +class _SplashPageState extends State with SingleTickerProviderStateMixin { late AnimationController _controller; late int _effect; final Random _random = Random(); @@ -77,11 +69,10 @@ class _SplashPageState extends State // If the number of included effects changes, this number should be changed. _effect = _random.nextInt(_effectDurations.length) + 1; - _controller = - AnimationController(duration: splashPageAnimationDuration, vsync: this) - ..addListener(() { - setState(() {}); - }); + _controller = AnimationController(duration: splashPageAnimationDuration, vsync: this) + ..addListener(() { + setState(() {}); + }); } @override @@ -90,12 +81,9 @@ class _SplashPageState extends State super.dispose(); } - Animation _getPanelAnimation( - BuildContext context, - BoxConstraints constraints, - ) { - final double height = constraints.biggest.height - - (isDisplayDesktop(context) ? homePeekDesktop : homePeekMobile); + Animation _getPanelAnimation(BuildContext context, BoxConstraints constraints) { + final double height = + constraints.biggest.height - (isDisplayDesktop(context) ? homePeekDesktop : homePeekMobile); return RelativeRectTween( begin: RelativeRect.fill, end: RelativeRect.fromLTRB(0, height, 0, 0), @@ -135,9 +123,7 @@ class _SplashPageState extends State frontLayer = Padding( padding: const EdgeInsets.only(top: 136), child: ClipRRect( - borderRadius: const BorderRadius.vertical( - top: Radius.circular(40), - ), + borderRadius: const BorderRadius.vertical(top: Radius.circular(40)), child: frontLayer, ), ); @@ -150,10 +136,7 @@ class _SplashPageState extends State effect: _effect, onTap: _controller.forward, ), - PositionedTransition( - rect: animation, - child: frontLayer, - ), + PositionedTransition(rect: animation, child: frontLayer), ], ); }, @@ -164,11 +147,7 @@ class _SplashPageState extends State } class _SplashBackLayer extends StatelessWidget { - const _SplashBackLayer({ - required this.isSplashCollapsed, - required this.effect, - this.onTap, - }); + const _SplashBackLayer({required this.isSplashCollapsed, required this.effect, this.onTap}); final bool isSplashCollapsed; final int effect; @@ -191,10 +170,7 @@ class _SplashBackLayer extends StatelessWidget { alignment: Alignment.topCenter, child: MouseRegion( cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: onTap, - child: flutterLogo, - ), + child: GestureDetector(onTap: onTap, child: flutterLogo), ), ), ); @@ -202,12 +178,7 @@ class _SplashBackLayer extends StatelessWidget { } else { child = Stack( children: [ - Center( - child: Image.asset( - effectAsset, - package: 'flutter_gallery_assets', - ), - ), + Center(child: Image.asset(effectAsset, package: 'flutter_gallery_assets')), Center(child: flutterLogo), ], ); @@ -219,9 +190,7 @@ class _SplashBackLayer extends StatelessWidget { color: const Color(0xFF030303), child: Padding( padding: EdgeInsets.only( - bottom: isDisplayDesktop(context) - ? homePeekDesktop - : homePeekMobile, + bottom: isDisplayDesktop(context) ? homePeekDesktop : homePeekMobile, ), child: child, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/routes.dart b/flutter/dev/integration_tests/new_gallery/lib/routes.dart index d5cc07f1f06c74b072285c62125eda1ce69e99ad..b56d6f0ef1c8060dcc733b09577c25c7a7e2447c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/routes.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/routes.dart @@ -55,60 +55,47 @@ class RouteConfiguration { ), Path( r'^' + rally_routes.homeRoute, - (BuildContext context, String? match) => StudyWrapper( - study: DeferredWidget(rally.loadLibrary, - () => rally.RallyApp()), // ignore: prefer_const_constructors - ), + (BuildContext context, String? match) => + StudyWrapper(study: DeferredWidget(rally.loadLibrary, () => rally.RallyApp())), ), Path( r'^' + shrine_routes.homeRoute, - (BuildContext context, String? match) => StudyWrapper( - study: DeferredWidget(shrine.loadLibrary, - () => shrine.ShrineApp()), // ignore: prefer_const_constructors - ), + (BuildContext context, String? match) => + StudyWrapper(study: DeferredWidget(shrine.loadLibrary, () => shrine.ShrineApp())), ), Path( r'^' + crane_routes.defaultRoute, (BuildContext context, String? match) => StudyWrapper( - study: DeferredWidget(crane.loadLibrary, - () => crane.CraneApp(), // ignore: prefer_const_constructors - placeholder: const DeferredLoadingPlaceholder(name: 'Crane')), + study: DeferredWidget( + crane.loadLibrary, + () => crane.CraneApp(), + placeholder: const DeferredLoadingPlaceholder(name: 'Crane'), + ), ), ), Path( r'^' + fortnightly_routes.defaultRoute, (BuildContext context, String? match) => StudyWrapper( - study: DeferredWidget( - fortnightly.loadLibrary, - // ignore: prefer_const_constructors - () => fortnightly.FortnightlyApp()), + study: DeferredWidget(fortnightly.loadLibrary, () => fortnightly.FortnightlyApp()), ), ), Path( r'^' + reply_routes.homeRoute, - // ignore: prefer_const_constructors (BuildContext context, String? match) => const StudyWrapper(study: reply.ReplyApp(), hasBottomNavBar: true), ), Path( r'^' + starter_app_routes.defaultRoute, - (BuildContext context, String? match) => const StudyWrapper( - study: starter_app.StarterApp(), - ), - ), - Path( - r'^/', - (BuildContext context, String? match) => const RootPage(), + (BuildContext context, String? match) => const StudyWrapper(study: starter_app.StarterApp()), ), + Path(r'^/', (BuildContext context, String? match) => const RootPage()), ]; /// The route generator callback used when the app is navigated to a named /// route. Set it on the [MaterialApp.onGenerateRoute] or /// [WidgetsApp.onGenerateRoute] to make use of the [paths] for route /// matching. - static Route? onGenerateRoute( - RouteSettings settings, - ) { + static Route? onGenerateRoute(RouteSettings settings) { for (final Path path in paths) { final RegExp regExpPattern = RegExp(path.pattern); if (regExpPattern.hasMatch(settings.name!)) { @@ -133,10 +120,7 @@ class RouteConfiguration { } class NoAnimationMaterialPageRoute extends MaterialPageRoute { - NoAnimationMaterialPageRoute({ - required super.builder, - super.settings, - }); + NoAnimationMaterialPageRoute({required super.builder, super.settings}); @override Widget buildTransitions( @@ -150,17 +134,16 @@ class NoAnimationMaterialPageRoute extends MaterialPageRoute { } class TwoPanePageRoute extends OverlayRoute { - TwoPanePageRoute({ - required this.builder, - super.settings, - }); + TwoPanePageRoute({required this.builder, super.settings}); final WidgetBuilder builder; @override Iterable createOverlayEntries() sync* { - yield OverlayEntry(builder: (BuildContext context) { - return builder.call(context); - }); + yield OverlayEntry( + builder: (BuildContext context) { + return builder.call(context); + }, + ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart index c576b734efcf1ab9a71d94a8729223287f5c84ed..ebdcb04ce3b314699907035bc7b772c1066c67b9 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/app.dart @@ -32,9 +32,7 @@ class CraneApp extends StatelessWidget { routes: { CraneApp.defaultRoute: (BuildContext context) => const _Home(), }, - theme: craneTheme.copyWith( - platform: GalleryOptions.of(context).platform, - ), + theme: craneTheme.copyWith(platform: GalleryOptions.of(context).platform), ); } } @@ -47,11 +45,7 @@ class _Home extends StatelessWidget { return const ApplyTextOptions( child: Backdrop( frontLayer: SizedBox(), - backLayerItems: [ - FlyForm(), - SleepForm(), - EatForm(), - ], + backLayerItems: [FlyForm(), SleepForm(), EatForm()], frontTitle: Text('CRANE'), backTitle: Text('MENU'), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart index 3252a71817578b247e81e2508029f7394a5daf60..023438e0647509503af981214375c13efc8d7994 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backdrop.dart @@ -64,14 +64,8 @@ class _FrontLayerState extends State<_FrontLayer> { return Align( alignment: AlignmentDirectional.centerStart, child: Padding( - padding: const EdgeInsets.only( - top: 20, - bottom: 22, - ), - child: SelectableText( - widget.title, - style: Theme.of(context).textTheme.titleSmall, - ), + padding: const EdgeInsets.only(top: 20, bottom: 22), + child: SelectableText(widget.title, style: Theme.of(context).textTheme.titleSmall), ), ); } @@ -85,9 +79,7 @@ class _FrontLayerState extends State<_FrontLayer> { return FocusTraversalGroup( policy: ReadingOrderTraversalPolicy(), child: Padding( - padding: isDesktop - ? EdgeInsets.zero - : EdgeInsets.only(top: widget.mobileTopOffset), + padding: isDesktop ? EdgeInsets.zero : EdgeInsets.only(top: widget.mobileTopOffset), child: PhysicalShape( elevation: 16, color: cranePrimaryWhite, @@ -100,12 +92,12 @@ class _FrontLayerState extends State<_FrontLayer> { ), ), child: Padding( - padding: isDesktop - ? EdgeInsets.symmetric( - horizontal: - isSmallDesktop ? appPaddingSmall : appPaddingLarge) - .add(bottomPadding) - : const EdgeInsets.symmetric(horizontal: 20).add(bottomPadding), + padding: + isDesktop + ? EdgeInsets.symmetric( + horizontal: isSmallDesktop ? appPaddingSmall : appPaddingLarge, + ).add(bottomPadding) + : const EdgeInsets.symmetric(horizontal: 20).add(bottomPadding), child: Column( children: [ _header(), @@ -115,8 +107,9 @@ class _FrontLayerState extends State<_FrontLayer> { restorationId: widget.restorationId, crossAxisCount: crossAxisCount, crossAxisSpacing: 16.0, - itemBuilder: (BuildContext context, int index) => - DestinationCard(destination: destinations![index]), + itemBuilder: + (BuildContext context, int index) => + DestinationCard(destination: destinations![index]), itemCount: destinations!.length, ), ), @@ -136,7 +129,6 @@ class _FrontLayerState extends State<_FrontLayer> { /// can make a selection. The user can also configure the titles for when the /// front or back layer is showing. class Backdrop extends StatefulWidget { - const Backdrop({ super.key, required this.frontLayer, @@ -153,8 +145,7 @@ class Backdrop extends StatefulWidget { State createState() => _BackdropState(); } -class _BackdropState extends State - with TickerProviderStateMixin, RestorationMixin { +class _BackdropState extends State with TickerProviderStateMixin, RestorationMixin { final RestorableInt tabIndex = RestorableInt(0); late TabController _tabController; late Animation _flyLayerHorizontalOffset; @@ -190,13 +181,16 @@ class _BackdropState extends State final Animation tabControllerAnimation = _tabController.animation!; _flyLayerHorizontalOffset = tabControllerAnimation.drive( - Tween(begin: Offset.zero, end: const Offset(-0.05, 0))); + Tween(begin: Offset.zero, end: const Offset(-0.05, 0)), + ); _sleepLayerHorizontalOffset = tabControllerAnimation.drive( - Tween(begin: const Offset(0.05, 0), end: Offset.zero)); + Tween(begin: const Offset(0.05, 0), end: Offset.zero), + ); - _eatLayerHorizontalOffset = tabControllerAnimation.drive(Tween( - begin: const Offset(0.10, 0), end: const Offset(0.05, 0))); + _eatLayerHorizontalOffset = tabControllerAnimation.drive( + Tween(begin: const Offset(0.10, 0), end: const Offset(0.05, 0)), + ); } @override @@ -207,8 +201,7 @@ class _BackdropState extends State } void _handleTabs(int tabIndex) { - _tabController.animateTo(tabIndex, - duration: const Duration(milliseconds: 300)); + _tabController.animateTo(tabIndex, duration: const Duration(milliseconds: 300)); } @override @@ -229,71 +222,68 @@ class _BackdropState extends State systemOverlayStyle: SystemUiOverlayStyle.light, elevation: 0, titleSpacing: 0, - flexibleSpace: CraneAppBar( - tabController: _tabController, - tabHandler: _handleTabs, - ), + flexibleSpace: CraneAppBar(tabController: _tabController, tabHandler: _handleTabs), ), body: Stack( children: [ - BackLayer( - tabController: _tabController, - backLayerItems: widget.backLayerItems, - ), + BackLayer(tabController: _tabController, backLayerItems: widget.backLayerItems), Container( margin: EdgeInsets.only( - top: isDesktop - ? (isDisplaySmallDesktop(context) - ? textFieldHeight * 3 - : textFieldHeight * 2) + - 20 * textScaleFactor / 2 - : 175 + 140 * textScaleFactor / 2, + top: + isDesktop + ? (isDisplaySmallDesktop(context) + ? textFieldHeight * 3 + : textFieldHeight * 2) + + 20 * textScaleFactor / 2 + : 175 + 140 * textScaleFactor / 2, ), // To display the middle front layer higher than the others, // we allow the TabBarView to overflow by an offset // (doubled because it technically overflows top & bottom). // The other front layers are top padded by this offset. - child: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return OverflowBox( - maxHeight: - constraints.maxHeight + _sleepLayerTopOffset * 2, - child: TabBarView( - physics: isDesktop - ? const NeverScrollableScrollPhysics() - : null, // use default TabBarView physics - controller: _tabController, - children: [ - SlideTransition( - position: _flyLayerHorizontalOffset, - child: _FrontLayer( - title: localizations.craneFlySubhead, - index: 0, - mobileTopOffset: _sleepLayerTopOffset, - restorationId: 'fly-subhead', + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return OverflowBox( + maxHeight: constraints.maxHeight + _sleepLayerTopOffset * 2, + child: TabBarView( + physics: + isDesktop + ? const NeverScrollableScrollPhysics() + : null, // use default TabBarView physics + controller: _tabController, + children: [ + SlideTransition( + position: _flyLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneFlySubhead, + index: 0, + mobileTopOffset: _sleepLayerTopOffset, + restorationId: 'fly-subhead', + ), ), - ), - SlideTransition( - position: _sleepLayerHorizontalOffset, - child: _FrontLayer( - title: localizations.craneSleepSubhead, - index: 1, - mobileTopOffset: 0, - restorationId: 'sleep-subhead', + SlideTransition( + position: _sleepLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneSleepSubhead, + index: 1, + mobileTopOffset: 0, + restorationId: 'sleep-subhead', + ), ), - ), - SlideTransition( - position: _eatLayerHorizontalOffset, - child: _FrontLayer( - title: localizations.craneEatSubhead, - index: 2, - mobileTopOffset: _sleepLayerTopOffset, - restorationId: 'eat-subhead', + SlideTransition( + position: _eatLayerHorizontalOffset, + child: _FrontLayer( + title: localizations.craneEatSubhead, + index: 2, + mobileTopOffset: _sleepLayerTopOffset, + restorationId: 'eat-subhead', + ), ), - ), - ], - ), - ); - }), + ], + ), + ); + }, + ), ), ], ), @@ -305,12 +295,7 @@ class _BackdropState extends State } class CraneAppBar extends StatefulWidget { - - const CraneAppBar({ - super.key, - this.tabHandler, - required this.tabController, - }); + const CraneAppBar({super.key, this.tabHandler, required this.tabController}); final void Function(int)? tabHandler; final TabController tabController; @@ -329,8 +314,7 @@ class _CraneAppBarState extends State { return SafeArea( child: Padding( padding: EdgeInsets.symmetric( - horizontal: - isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, + horizontal: isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, ), child: Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, @@ -338,17 +322,11 @@ class _CraneAppBarState extends State { const ExcludeSemantics( child: FadeInImagePlaceholder( image: ResizeImage( - AssetImage( - 'crane/logo/logo.png', - package: 'flutter_gallery_assets', - ), - width: 40, - height: 60, - ), - placeholder: SizedBox( + AssetImage('crane/logo/logo.png', package: 'flutter_gallery_assets'), width: 40, height: 60, ), + placeholder: SizedBox(width: 40, height: 60), width: 40, height: 60, ), @@ -357,9 +335,7 @@ class _CraneAppBarState extends State { child: Padding( padding: const EdgeInsetsDirectional.only(start: 24), child: Theme( - data: Theme.of(context).copyWith( - splashColor: Colors.transparent, - ), + data: Theme.of(context).copyWith(splashColor: Colors.transparent), child: TabBar( indicator: BorderTabIndicator( indicatorHeight: isDesktop ? 28 : 32, @@ -373,10 +349,11 @@ class _CraneAppBarState extends State { labelColor: cranePrimaryWhite, physics: const BouncingScrollPhysics(), unselectedLabelColor: cranePrimaryWhite.withOpacity(.6), - onTap: (int index) => widget.tabController.animateTo( - index, - duration: const Duration(milliseconds: 300), - ), + onTap: + (int index) => widget.tabController.animateTo( + index, + duration: const Duration(milliseconds: 300), + ), tabs: [ Tab(text: localizations.craneFly), Tab(text: localizations.craneSleep), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart index 14eb6db2b4ded72fb3e8fa8f6e21e35be0fa6452..2f51fb080e9a2808706e7af473435efc4a5496f3 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/backlayer.dart @@ -5,18 +5,12 @@ import 'package:flutter/material.dart'; abstract class BackLayerItem extends StatefulWidget { - const BackLayerItem({super.key, required this.index}); final int index; } class BackLayer extends StatefulWidget { - - const BackLayer({ - super.key, - required this.backLayerItems, - required this.tabController, - }); + const BackLayer({super.key, required this.backLayerItems, required this.tabController}); final List backLayerItems; final TabController tabController; @@ -38,10 +32,7 @@ class _BackLayerState extends State { index: tabIndex, children: [ for (final BackLayerItem backLayerItem in widget.backLayerItems) - ExcludeFocus( - excluding: backLayerItem.index != tabIndex, - child: backLayerItem, - ) + ExcludeFocus(excluding: backLayerItem.index != tabIndex, child: backLayerItem), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart index 7b5eb055980bbbdf66092f4eedcfc116d84ea873..c31c07075425b1289c007dc68019b4686dc7efc5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/border_tab_indicator.dart @@ -5,10 +5,8 @@ import 'package:flutter/material.dart'; class BorderTabIndicator extends Decoration { - const BorderTabIndicator({ - required this.indicatorHeight, - required this.textScaleFactor, - }) : super(); + const BorderTabIndicator({required this.indicatorHeight, required this.textScaleFactor}) + : super(); final double indicatorHeight; final double textScaleFactor; @@ -25,8 +23,8 @@ class BorderPainter extends BoxPainter { this.indicatorHeight, this.textScaleFactor, VoidCallback? onChanged, - ) : assert(indicatorHeight >= 0), - super(onChanged); + ) : assert(indicatorHeight >= 0), + super(onChanged); final BorderTabIndicator decoration; final double indicatorHeight; @@ -36,16 +34,16 @@ class BorderPainter extends BoxPainter { void paint(Canvas canvas, Offset offset, ImageConfiguration configuration) { assert(configuration.size != null); final double horizontalInset = 16 - 4 * textScaleFactor; - final Rect rect = Offset(offset.dx + horizontalInset, - (configuration.size!.height / 2) - indicatorHeight / 2 - 1) & + final Rect rect = + Offset( + offset.dx + horizontalInset, + (configuration.size!.height / 2) - indicatorHeight / 2 - 1, + ) & Size(configuration.size!.width - 2 * horizontalInset, indicatorHeight); final Paint paint = Paint(); paint.color = Colors.white; paint.style = PaintingStyle.stroke; paint.strokeWidth = 2; - canvas.drawRRect( - RRect.fromRectAndRadius(rect, const Radius.circular(56)), - paint, - ); + canvas.drawRRect(RRect.fromRectAndRadius(rect, const Radius.circular(56)), paint); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart index 9a69842acdac4a994745a2a2a664a908803b05d4..33218834d3ba7bf5be445b71c6ac8ecf26c9ee9d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/fly_form.dart @@ -17,7 +17,8 @@ class FlyForm extends BackLayerItem { class _FlyFormState extends State with RestorationMixin { final RestorableTextEditingController travelerController = RestorableTextEditingController(); - final RestorableTextEditingController countryDestinationController = RestorableTextEditingController(); + final RestorableTextEditingController countryDestinationController = + RestorableTextEditingController(); final RestorableTextEditingController destinationController = RestorableTextEditingController(); final RestorableTextEditingController dateController = RestorableTextEditingController(); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart index 70d5202671bedfdf2c9f276d9ad60bcd4dd0261b..765535da07595415cf87cbba9d5b00f2bbde0a61 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/header_form.dart @@ -11,7 +11,6 @@ const double appPaddingLarge = 120.0; const double appPaddingSmall = 24.0; class HeaderFormField { - const HeaderFormField({ required this.index, required this.iconData, @@ -25,7 +24,6 @@ class HeaderFormField { } class HeaderForm extends StatelessWidget { - const HeaderForm({super.key, required this.fields}); final List fields; @@ -36,48 +34,49 @@ class HeaderForm extends StatelessWidget { return Padding( padding: EdgeInsets.symmetric( - horizontal: - isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, + horizontal: isDesktop && !isSmallDesktop ? appPaddingLarge : appPaddingSmall, ), - child: isDesktop - ? LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - int crossAxisCount = isSmallDesktop ? 2 : 4; - if (fields.length < crossAxisCount) { - crossAxisCount = fields.length; - } - final double itemWidth = constraints.maxWidth / crossAxisCount; - return GridView.count( - crossAxisCount: crossAxisCount, - childAspectRatio: itemWidth / textFieldHeight, - physics: const NeverScrollableScrollPhysics(), + child: + isDesktop + ? LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + int crossAxisCount = isSmallDesktop ? 2 : 4; + if (fields.length < crossAxisCount) { + crossAxisCount = fields.length; + } + final double itemWidth = constraints.maxWidth / crossAxisCount; + return GridView.count( + crossAxisCount: crossAxisCount, + childAspectRatio: itemWidth / textFieldHeight, + physics: const NeverScrollableScrollPhysics(), + children: [ + for (final HeaderFormField field in fields) + if ((field.index + 1) % crossAxisCount == 0) + _HeaderTextField(field: field) + else + Padding( + padding: const EdgeInsetsDirectional.only(end: 16), + child: _HeaderTextField(field: field), + ), + ], + ); + }, + ) + : Column( + mainAxisSize: MainAxisSize.min, children: [ for (final HeaderFormField field in fields) - if ((field.index + 1) % crossAxisCount == 0) - _HeaderTextField(field: field) - else - Padding( - padding: const EdgeInsetsDirectional.only(end: 16), - child: _HeaderTextField(field: field), - ), + Padding( + padding: const EdgeInsets.only(bottom: 8), + child: _HeaderTextField(field: field), + ), ], - ); - }) - : Column( - mainAxisSize: MainAxisSize.min, - children: [ - for (final HeaderFormField field in fields) - Padding( - padding: const EdgeInsets.only(bottom: 8), - child: _HeaderTextField(field: field), - ) - ], - ), + ), ); } } class _HeaderTextField extends StatelessWidget { - const _HeaderTextField({required this.field}); final HeaderFormField field; @@ -86,8 +85,7 @@ class _HeaderTextField extends StatelessWidget { return TextField( controller: field.textController, cursorColor: Theme.of(context).colorScheme.secondary, - style: - Theme.of(context).textTheme.bodyLarge!.copyWith(color: Colors.white), + style: Theme.of(context).textTheme.bodyLarge!.copyWith(color: Colors.white), onTap: () {}, decoration: InputDecoration( border: OutlineInputBorder( @@ -99,11 +97,7 @@ class _HeaderTextField extends StatelessWidget { filled: true, hintText: field.title, floatingLabelBehavior: FloatingLabelBehavior.never, - prefixIcon: Icon( - field.iconData, - size: 24, - color: Theme.of(context).iconTheme.color, - ), + prefixIcon: Icon(field.iconData, size: 24, color: Theme.of(context).iconTheme.color), ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart index c5abd5f5224fb8718de9aa84731bca94f76b65ed..40f39195ee4288afab231284f064a3b76f5f7e07 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/item_cards.dart @@ -12,10 +12,7 @@ import 'model/destination.dart'; const double mobileThumbnailSize = 60.0; class DestinationCard extends StatelessWidget { - const DestinationCard({ - super.key, - required this.destination, - }); + const DestinationCard({super.key, required this.destination}); final Destination destination; @@ -24,58 +21,55 @@ class DestinationCard extends StatelessWidget { final bool isDesktop = isDisplayDesktop(context); final TextTheme textTheme = Theme.of(context).textTheme; - final Widget card = isDesktop - ? Padding( - padding: const EdgeInsets.only(bottom: 40), - child: Semantics( - container: true, - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - ClipRRect( + final Widget card = + isDesktop + ? Padding( + padding: const EdgeInsets.only(bottom: 40), + child: Semantics( + container: true, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + ClipRRect( + borderRadius: const BorderRadius.all(Radius.circular(4)), + child: _DestinationImage(destination: destination), + ), + Padding( + padding: const EdgeInsets.only(top: 20, bottom: 10), + child: SelectableText(destination.destination, style: textTheme.titleMedium), + ), + SelectableText( + destination.subtitle(context), + semanticsLabel: destination.subtitleSemantics(context), + style: textTheme.titleSmall, + ), + ], + ), + ), + ) + : Column( + mainAxisSize: MainAxisSize.min, + children: [ + ListTile( + contentPadding: const EdgeInsetsDirectional.only(end: 8), + leading: ClipRRect( borderRadius: const BorderRadius.all(Radius.circular(4)), - child: _DestinationImage(destination: destination), - ), - Padding( - padding: const EdgeInsets.only(top: 20, bottom: 10), - child: SelectableText( - destination.destination, - style: textTheme.titleMedium, + child: SizedBox( + width: mobileThumbnailSize, + height: mobileThumbnailSize, + child: _DestinationImage(destination: destination), ), ), - SelectableText( + title: SelectableText(destination.destination, style: textTheme.titleMedium), + subtitle: SelectableText( destination.subtitle(context), semanticsLabel: destination.subtitleSemantics(context), style: textTheme.titleSmall, ), - ], - ), - ), - ) - : Column( - mainAxisSize: MainAxisSize.min, - children: [ - ListTile( - contentPadding: const EdgeInsetsDirectional.only(end: 8), - leading: ClipRRect( - borderRadius: const BorderRadius.all(Radius.circular(4)), - child: SizedBox( - width: mobileThumbnailSize, - height: mobileThumbnailSize, - child: _DestinationImage(destination: destination), - ), - ), - title: SelectableText(destination.destination, - style: textTheme.titleMedium), - subtitle: SelectableText( - destination.subtitle(context), - semanticsLabel: destination.subtitleSemantics(context), - style: textTheme.titleSmall, ), - ), - const Divider(thickness: 1), - ], - ); + const Divider(thickness: 1), + ], + ); return HighlightFocus( debugLabel: 'DestinationCard: ${destination.destination}', @@ -87,9 +81,7 @@ class DestinationCard extends StatelessWidget { } class _DestinationImage extends StatelessWidget { - const _DestinationImage({ - required this.destination, - }); + const _DestinationImage({required this.destination}); final Destination destination; @@ -102,23 +94,22 @@ class _DestinationImage extends StatelessWidget { child: ExcludeSemantics( child: FadeInImagePlaceholder( image: ResizeImage( - AssetImage( - destination.assetName, - package: 'flutter_gallery_assets', - ), + AssetImage(destination.assetName, package: 'flutter_gallery_assets'), width: isDesktop ? null : mobileThumbnailSize.toInt(), height: isDesktop ? null : mobileThumbnailSize.toInt(), ), fit: BoxFit.cover, width: isDesktop ? null : mobileThumbnailSize, height: isDesktop ? null : mobileThumbnailSize, - placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Container( - color: Colors.black.withOpacity(0.1), - width: constraints.maxWidth, - height: constraints.maxWidth / destination.imageAspectRatio, - ); - }), + placeholder: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / destination.imageAspectRatio, + ); + }, + ), ), ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart index ac09c42438d15bd0a722e3529e159a13df36c600..ddbbbc08a6ecd0b38fd74779f397ad44b3a3a5a2 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/destination.dart @@ -55,8 +55,7 @@ class FlyDestination extends Destination { return stopsText; } else { final TextDirection? textDirection = GalleryOptions.of(context).resolvedTextDirection(); - final String durationText = - formattedDuration(context, duration!, abbreviated: true); + final String durationText = formattedDuration(context, duration!, abbreviated: true); return textDirection == TextDirection.ltr ? '$stopsText · $durationText' : '$durationText · $stopsText'; @@ -70,8 +69,7 @@ class FlyDestination extends Destination { if (duration == null) { return stopsText; } else { - final String durationText = - formattedDuration(context, duration!, abbreviated: false); + final String durationText = formattedDuration(context, duration!, abbreviated: false); return '$stopsText, $durationText'; } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart index cacc0f9636dcb231efbeb3ac02b4fb7b15e3e90d..6f3c20178956189e470f79eab9e7b3ee8e0c0f48 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/model/formatters.dart @@ -6,8 +6,7 @@ import 'package:flutter/material.dart'; import '../../../gallery_localizations.dart'; // Duration of time (e.g. 16h 12m) -String formattedDuration(BuildContext context, Duration duration, - {bool? abbreviated}) { +String formattedDuration(BuildContext context, Duration duration, {bool? abbreviated}) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final String hoursShortForm = localizations.craneHours(duration.inHours); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart index c6b4fc98ef49ab8f238f12735aafe2a7dc73500a..e57efa845946cf551c42f40929f116730f6a2149 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/crane/theme.dart @@ -15,7 +15,7 @@ IconThemeData _customIconTheme(IconThemeData original, Color color) { } ThemeData _buildCraneTheme() { - final ThemeData base = ThemeData.light(); + final ThemeData base = ThemeData(); return base.copyWith( colorScheme: const ColorScheme.light().copyWith( @@ -29,9 +29,7 @@ ThemeData _buildCraneTheme() { cardColor: cranePrimaryWhite, highlightColor: Colors.transparent, textTheme: _buildCraneTextTheme(base.textTheme), - textSelectionTheme: const TextSelectionThemeData( - selectionColor: cranePurple700, - ), + textSelectionTheme: const TextSelectionThemeData(selectionColor: cranePurple700), primaryTextTheme: _buildCraneTextTheme(base.primaryTextTheme), iconTheme: _customIconTheme(base.iconTheme, craneWhite60), primaryIconTheme: _customIconTheme(base.iconTheme, cranePrimaryWhite), @@ -41,30 +39,12 @@ ThemeData _buildCraneTheme() { TextTheme _buildCraneTextTheme(TextTheme base) { return GoogleFonts.ralewayTextTheme( base.copyWith( - displayLarge: base.displayLarge!.copyWith( - fontWeight: FontWeight.w300, - fontSize: 96, - ), - displayMedium: base.displayMedium!.copyWith( - fontWeight: FontWeight.w400, - fontSize: 60, - ), - displaySmall: base.displaySmall!.copyWith( - fontWeight: FontWeight.w600, - fontSize: 48, - ), - headlineMedium: base.headlineMedium!.copyWith( - fontWeight: FontWeight.w600, - fontSize: 34, - ), - headlineSmall: base.headlineSmall!.copyWith( - fontWeight: FontWeight.w600, - fontSize: 24, - ), - titleLarge: base.titleLarge!.copyWith( - fontWeight: FontWeight.w600, - fontSize: 20, - ), + displayLarge: base.displayLarge!.copyWith(fontWeight: FontWeight.w300, fontSize: 96), + displayMedium: base.displayMedium!.copyWith(fontWeight: FontWeight.w400, fontSize: 60), + displaySmall: base.displaySmall!.copyWith(fontWeight: FontWeight.w600, fontSize: 48), + headlineMedium: base.headlineMedium!.copyWith(fontWeight: FontWeight.w600, fontSize: 34), + headlineSmall: base.headlineSmall!.copyWith(fontWeight: FontWeight.w600, fontSize: 24), + titleLarge: base.titleLarge!.copyWith(fontWeight: FontWeight.w600, fontSize: 20), titleMedium: base.titleMedium!.copyWith( fontWeight: FontWeight.w500, fontSize: 16, @@ -75,14 +55,8 @@ TextTheme _buildCraneTextTheme(TextTheme base) { fontSize: 12, color: craneGrey, ), - bodyLarge: base.bodyLarge!.copyWith( - fontWeight: FontWeight.w500, - fontSize: 16, - ), - bodyMedium: base.bodyMedium!.copyWith( - fontWeight: FontWeight.w400, - fontSize: 14, - ), + bodyLarge: base.bodyLarge!.copyWith(fontWeight: FontWeight.w500, fontSize: 16), + bodyMedium: base.bodyMedium!.copyWith(fontWeight: FontWeight.w400, fontSize: 14), labelLarge: base.labelLarge!.copyWith( fontWeight: FontWeight.w600, fontSize: 13, @@ -93,10 +67,7 @@ TextTheme _buildCraneTextTheme(TextTheme base) { fontSize: 12, color: craneGrey, ), - labelSmall: base.labelSmall!.copyWith( - fontWeight: FontWeight.w600, - fontSize: 12, - ), + labelSmall: base.labelSmall!.copyWith(fontWeight: FontWeight.w600, fontSize: 12), ), ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart index 3aa46e9183a69412cb7973158001d04abacfdff9..5e7925c627036c1317254547d445b524d63a58f5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/app.dart @@ -21,16 +21,15 @@ class FortnightlyApp extends StatelessWidget { @override Widget build(BuildContext context) { - final StatelessWidget home = isDisplayDesktop(context) - ? const _FortnightlyHomeDesktop() - : const _FortnightlyHomeMobile(); + final StatelessWidget home = + isDisplayDesktop(context) + ? const _FortnightlyHomeDesktop() + : const _FortnightlyHomeMobile(); return MaterialApp( restorationScopeId: 'fortnightly_app', title: _fortnightlyTitle, debugShowCheckedModeBanner: false, - theme: buildTheme(context).copyWith( - platform: GalleryOptions.of(context).platform, - ), + theme: buildTheme(context).copyWith(platform: GalleryOptions.of(context).platform), home: ApplyTextOptions(child: home), routes: { FortnightlyApp.defaultRoute: (BuildContext context) => ApplyTextOptions(child: home), @@ -50,11 +49,7 @@ class _FortnightlyHomeMobile extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( - drawer: const Drawer( - child: SafeArea( - child: NavigationMenu(isCloseable: true), - ), - ), + drawer: const Drawer(child: SafeArea(child: NavigationMenu(isCloseable: true))), appBar: AppBar( automaticallyImplyLeading: false, title: Semantics( @@ -82,10 +77,7 @@ class _FortnightlyHomeMobile extends StatelessWidget { children: [ const HashtagBar(), for (final Widget item in buildArticlePreviewItems(context)) - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: item, - ), + Padding(padding: const EdgeInsets.symmetric(horizontal: 16), child: item), ], ), ), @@ -125,10 +117,7 @@ class _FortnightlyHomeDesktop extends StatelessWidget { ), ), spacer, - const Flexible( - flex: 2, - child: HashtagBar(), - ), + const Flexible(flex: 2, child: HashtagBar()), spacer, Flexible( fit: FlexFit.tight, @@ -136,8 +125,7 @@ class _FortnightlyHomeDesktop extends StatelessWidget { alignment: AlignmentDirectional.centerEnd, child: IconButton( icon: const Icon(Icons.search), - tooltip: GalleryLocalizations.of(context)! - .shrineTooltipSearch, + tooltip: GalleryLocalizations.of(context)!.shrineTooltipSearch, onPressed: () {}, ), ), @@ -148,17 +136,9 @@ class _FortnightlyHomeDesktop extends StatelessWidget { Flexible( child: Row( children: [ - const SizedBox( - width: menuWidth, - child: NavigationMenu(), - ), + const SizedBox(width: menuWidth, child: NavigationMenu()), spacer, - Flexible( - flex: 2, - child: ListView( - children: buildArticlePreviewItems(context), - ), - ), + Flexible(flex: 2, child: ListView(children: buildArticlePreviewItems(context))), spacer, Flexible( fit: FlexFit.tight, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart index d8cc8b4709d3e13ef70180a154cac376887edec9..93440b4a796cf96ae16d50cf6c442f151f3c1ecc 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/fortnightly/shared.dart @@ -28,11 +28,7 @@ class ArticleData { } class HorizontalArticlePreview extends StatelessWidget { - const HorizontalArticlePreview({ - super.key, - required this.data, - this.minutes, - }); + const HorizontalArticlePreview({super.key, required this.data, this.minutes}); final ArticleData data; final int? minutes; @@ -48,15 +44,9 @@ class HorizontalArticlePreview extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - SelectableText( - data.category, - style: textTheme.titleMedium, - ), + SelectableText(data.category, style: textTheme.titleMedium), const SizedBox(height: 12), - SelectableText( - data.title, - style: textTheme.headlineSmall!.copyWith(fontSize: 16), - ), + SelectableText(data.title, style: textTheme.headlineSmall!.copyWith(fontSize: 16)), ], ), ), @@ -108,38 +98,28 @@ class VerticalArticlePreview extends StatelessWidget { SizedBox( width: double.infinity, child: FadeInImagePlaceholder( - image: AssetImage( - data.imageUrl, - package: 'flutter_gallery_assets', + image: AssetImage(data.imageUrl, package: 'flutter_gallery_assets'), + placeholder: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / data.imageAspectRatio, + ); + }, ), - placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Container( - color: Colors.black.withOpacity(0.1), - width: constraints.maxWidth, - height: constraints.maxWidth / data.imageAspectRatio, - ); - }), fit: BoxFit.fitWidth, width: double.infinity, excludeFromSemantics: true, ), ), const SizedBox(height: 12), - SelectableText( - data.category, - style: textTheme.titleMedium, - ), + SelectableText(data.category, style: textTheme.titleMedium), const SizedBox(height: 12), - SelectableText( - data.title, - style: headlineTextStyle ?? textTheme.headlineSmall, - ), + SelectableText(data.title, style: headlineTextStyle ?? textTheme.headlineSmall), if (showSnippet) ...[ const SizedBox(height: 4), - SelectableText( - data.snippet!, - style: textTheme.bodyMedium, - ), + SelectableText(data.snippet!, style: textTheme.bodyMedium), ], ], ), @@ -190,10 +170,7 @@ List buildArticlePreviewItems(BuildContext context) { ), ), sectionDivider, - SelectableText( - localizations.fortnightlyLatestUpdates, - style: textTheme.titleLarge, - ), + SelectableText(localizations.fortnightlyLatestUpdates, style: textTheme.titleLarge), articleDivider, HorizontalArticlePreview( data: ArticleData( @@ -305,6 +282,7 @@ class NavigationMenu extends StatelessWidget { Row( children: [ IconButton( + key: StandardComponentType.closeButton.key, icon: const Icon(Icons.close), tooltip: MaterialLocalizations.of(context).closeButtonTooltip, onPressed: () => Navigator.pop(context), @@ -317,10 +295,7 @@ class NavigationMenu extends StatelessWidget { ], ), const SizedBox(height: 32), - MenuItem( - localizations.fortnightlyMenuFrontPage, - header: true, - ), + MenuItem(localizations.fortnightlyMenuFrontPage, header: true), MenuItem(localizations.fortnightlyMenuWorld), MenuItem(localizations.fortnightlyMenuUS), MenuItem(localizations.fortnightlyMenuPolitics), @@ -356,9 +331,9 @@ class MenuItem extends StatelessWidget { child: SelectableText( title, style: Theme.of(context).textTheme.titleMedium!.copyWith( - fontWeight: header ? FontWeight.w700 : FontWeight.w600, - fontSize: 16, - ), + fontWeight: header ? FontWeight.w700 : FontWeight.w600, + fontSize: 16, + ), ), ), ], @@ -368,12 +343,7 @@ class MenuItem extends StatelessWidget { } class StockItem extends StatelessWidget { - const StockItem({ - super.key, - required this.ticker, - required this.price, - required this.percent, - }); + const StockItem({super.key, required this.ticker, required this.price, required this.percent}); final String ticker; final String price; @@ -406,9 +376,7 @@ class StockItem extends StatelessWidget { percent > 0 ? '+' : '-', style: textTheme.titleSmall!.copyWith( fontSize: 12, - color: percent > 0 - ? const Color(0xff20CF63) - : const Color(0xff661FFF), + color: percent > 0 ? const Color(0xff20CF63) : const Color(0xff661FFF), ), ), const SizedBox(width: 4), @@ -420,7 +388,7 @@ class StockItem extends StatelessWidget { ), ), ], - ) + ), ], ); } @@ -442,58 +410,36 @@ List buildStockItems(BuildContext context) { 'fortnightly/fortnightly_chart.png', package: 'flutter_gallery_assets', ), - placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Container( - color: Colors.black.withOpacity(0.1), - width: constraints.maxWidth, - height: constraints.maxWidth / imageAspectRatio, - ); - }), + placeholder: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / imageAspectRatio, + ); + }, + ), width: double.infinity, fit: BoxFit.contain, excludeFromSemantics: true, ), ), articleDivider, - const StockItem( - ticker: 'DIJA', - price: '7,031.21', - percent: -0.48, - ), + const StockItem(ticker: 'DIJA', price: '7,031.21', percent: -0.48), articleDivider, - const StockItem( - ticker: 'SP', - price: '1,967.84', - percent: -0.23, - ), + const StockItem(ticker: 'SP', price: '1,967.84', percent: -0.23), articleDivider, - const StockItem( - ticker: 'Nasdaq', - price: '6,211.46', - percent: 0.52, - ), + const StockItem(ticker: 'Nasdaq', price: '6,211.46', percent: 0.52), articleDivider, - const StockItem( - ticker: 'Nikkei', - price: '5,891', - percent: 1.16, - ), + const StockItem(ticker: 'Nikkei', price: '5,891', percent: 1.16), articleDivider, - const StockItem( - ticker: 'DJ Total', - price: '89.02', - percent: 0.80, - ), + const StockItem(ticker: 'DJ Total', price: '89.02', percent: 0.80), articleDivider, ]; } class VideoPreview extends StatelessWidget { - const VideoPreview({ - super.key, - required this.data, - required this.time, - }); + const VideoPreview({super.key, required this.data, required this.time}); final ArticleData data; final String time; @@ -508,17 +454,16 @@ class VideoPreview extends StatelessWidget { SizedBox( width: double.infinity, child: FadeInImagePlaceholder( - image: AssetImage( - data.imageUrl, - package: 'flutter_gallery_assets', + image: AssetImage(data.imageUrl, package: 'flutter_gallery_assets'), + placeholder: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Container( + color: Colors.black.withOpacity(0.1), + width: constraints.maxWidth, + height: constraints.maxWidth / data.imageAspectRatio, + ); + }, ), - placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Container( - color: Colors.black.withOpacity(0.1), - width: constraints.maxWidth, - height: constraints.maxWidth / data.imageAspectRatio, - ); - }), fit: BoxFit.contain, width: double.infinity, excludeFromSemantics: true, @@ -527,18 +472,12 @@ class VideoPreview extends StatelessWidget { const SizedBox(height: 4), Row( children: [ - Expanded( - child: SelectableText( - data.category, - style: textTheme.titleMedium, - ), - ), - SelectableText(time, style: textTheme.bodyLarge) + Expanded(child: SelectableText(data.category, style: textTheme.titleMedium)), + SelectableText(time, style: textTheme.bodyLarge), ], ), const SizedBox(height: 4), - SelectableText(data.title, - style: textTheme.headlineSmall!.copyWith(fontSize: 16)), + SelectableText(data.title, style: textTheme.headlineSmall!.copyWith(fontSize: 16)), ], ); } @@ -570,7 +509,7 @@ List buildVideoPreviewItems(BuildContext context) { } ThemeData buildTheme(BuildContext context) { - final TextTheme lightTextTheme = ThemeData.light().textTheme; + final TextTheme lightTextTheme = ThemeData().textTheme; return ThemeData( scaffoldBackgroundColor: Colors.white, appBarTheme: AppBarTheme( @@ -600,10 +539,7 @@ ThemeData buildTheme(BuildContext context) { textStyle: lightTextTheme.headlineSmall, ), // (caption 2), preview category, stock ticker - titleMedium: GoogleFonts.robotoCondensed( - fontWeight: FontWeight.w700, - fontSize: 16, - ), + titleMedium: GoogleFonts.robotoCondensed(fontWeight: FontWeight.w700, fontSize: 16), titleSmall: GoogleFonts.libreFranklin( fontWeight: FontWeight.w400, fontSize: 14, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart index 0a6c02d894e1bd85b0ba34e80947e558722a0c28..6358e44805e575850c8f7254e49a58afd60620cf 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/app.dart @@ -25,10 +25,11 @@ class RallyApp extends StatelessWidget { static const String loginRoute = routes.loginRoute; static const String homeRoute = routes.homeRoute; - static const SharedAxisPageTransitionsBuilder sharedZAxisTransitionBuilder = SharedAxisPageTransitionsBuilder( - fillColor: RallyColors.primaryBackground, - transitionType: SharedAxisTransitionType.scaled, - ); + static const SharedAxisPageTransitionsBuilder sharedZAxisTransitionBuilder = + SharedAxisPageTransitionsBuilder( + fillColor: RallyColors.primaryBackground, + transitionType: SharedAxisTransitionType.scaled, + ); @override Widget build(BuildContext context) { @@ -68,18 +69,13 @@ class RallyApp extends StatelessWidget { focusColor: RallyColors.focusColor, textTheme: _buildRallyTextTheme(base.textTheme), inputDecorationTheme: const InputDecorationTheme( - labelStyle: TextStyle( - color: RallyColors.gray, - fontWeight: FontWeight.w500, - ), + labelStyle: TextStyle(color: RallyColors.gray, fontWeight: FontWeight.w500), filled: true, fillColor: RallyColors.inputBackground, focusedBorder: InputBorder.none, ), visualDensity: VisualDensity.standard, - colorScheme: base.colorScheme.copyWith( - primary: RallyColors.primaryBackground, - ), + colorScheme: base.colorScheme.copyWith(primary: RallyColors.primaryBackground), ); } @@ -106,9 +102,6 @@ class RallyApp extends StatelessWidget { letterSpacing: letterSpacingOrNone(1.4), ), ) - .apply( - displayColor: Colors.white, - bodyColor: Colors.white, - ); + .apply(displayColor: Colors.white, bodyColor: Colors.white); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart index 8386e6e94716c8a0bf50a1a7a78f7fd382b8e190..219c0c82d288a079b0baecfa137ed2b228882e26 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/line_chart.dart @@ -14,10 +14,7 @@ import '../data.dart'; import '../formatters.dart'; class RallyLineChart extends StatelessWidget { - const RallyLineChart({ - super.key, - this.events = const [], - }); + const RallyLineChart({super.key, this.events = const []}); final List events; @@ -31,9 +28,8 @@ class RallyLineChart extends StatelessWidget { labelStyle: Theme.of(context).textTheme.bodyMedium!, textDirection: GalleryOptions.of(context).resolvedTextDirection(), textScaleFactor: reducedTextScale(context), - padding: isDisplayDesktop(context) - ? const EdgeInsets.symmetric(vertical: 22) - : EdgeInsets.zero, + padding: + isDisplayDesktop(context) ? const EdgeInsets.symmetric(vertical: 22) : EdgeInsets.zero, ), ); } @@ -103,18 +99,9 @@ class RallyLineChartPainter extends CustomPainter { final double ticksHeight = 3 * space; final double ticksTop = size.height - labelHeight - ticksHeight - space; final double labelsTop = size.height - labelHeight; - _drawLine( - canvas, - Rect.fromLTWH(0, 0, size.width, size.height - labelHeight - ticksHeight), - ); - _drawXAxisTicks( - canvas, - Rect.fromLTWH(0, ticksTop, size.width, ticksHeight), - ); - _drawXAxisLabels( - canvas, - Rect.fromLTWH(0, labelsTop, size.width, labelHeight), - ); + _drawLine(canvas, Rect.fromLTWH(0, 0, size.width, size.height - labelHeight - ticksHeight)); + _drawXAxisTicks(canvas, Rect.fromLTWH(0, ticksTop, size.width, ticksHeight)); + _drawXAxisLabels(canvas, Rect.fromLTWH(0, labelsTop, size.width, labelHeight)); } // Since we're only using fixed dummy data, we can set this to false. In a @@ -134,24 +121,20 @@ class RallyLineChartPainter extends CustomPainter { final int numItemsPerGroup = amounts.length ~/ numGroups; // For each group we calculate the median value. - final List medians = List.generate( - numGroups, - (int i) { - final int middleIndex = i * numItemsPerGroup + numItemsPerGroup ~/ 2; - if (numItemsPerGroup.isEven) { - return (amounts[middleIndex] + amounts[middleIndex + 1]) / 2; - } else { - return amounts[middleIndex]; - } - }, - ); + final List medians = List.generate(numGroups, (int i) { + final int middleIndex = i * numItemsPerGroup + numItemsPerGroup ~/ 2; + if (numItemsPerGroup.isEven) { + return (amounts[middleIndex] + amounts[middleIndex + 1]) / 2; + } else { + return amounts[middleIndex]; + } + }); // Return a list of [CustomPainterSemantics] with the length of // [numGroups], all have the same width with the median amount as label. return List.generate(numGroups, (int i) { return CustomPainterSemantics( - rect: Offset((i / numGroups) * size.width, 0) & - Size(size.width / numGroups, size.height), + rect: Offset((i / numGroups) * size.width, 0) & Size(size.width / numGroups, size.height), properties: SemanticsProperties( label: numberFormat.format(medians[i]), textDirection: textDirection, @@ -174,12 +157,11 @@ class RallyLineChartPainter extends CustomPainter { final List amounts = []; for (int i = 0; i < numDays; i++) { final int endMillis = startMillis + millisInDay * 1; - final List filteredEvents = events.where( - (DetailedEventData e) { - return startMillis <= e.date.millisecondsSinceEpoch && - e.date.millisecondsSinceEpoch < endMillis; - }, - ).toList(); + final List filteredEvents = + events.where((DetailedEventData e) { + return startMillis <= e.date.millisecondsSinceEpoch && + e.date.millisecondsSinceEpoch < endMillis; + }).toList(); lastAmount += sumOf(filteredEvents, (DetailedEventData e) => e.amount); amounts.add(lastAmount); startMillis = endMillis; @@ -188,10 +170,11 @@ class RallyLineChartPainter extends CustomPainter { } void _drawLine(Canvas canvas, Rect rect) { - final Paint linePaint = Paint() - ..color = RallyColors.accountColor(2) - ..style = PaintingStyle.stroke - ..strokeWidth = 2; + final Paint linePaint = + Paint() + ..color = RallyColors.accountColor(2) + ..style = PaintingStyle.stroke + ..strokeWidth = 2; // Try changing this value between 1, 7, 15, etc. const int smoothing = 1; @@ -205,12 +188,7 @@ class RallyLineChartPainter extends CustomPainter { } // Add last point of the graph to make sure we take up the full width. - points.add( - Offset( - rect.width, - (maxAmount - amounts[numDays - 1]) / maxAmount * rect.height, - ), - ); + points.add(Offset(rect.width, (maxAmount - amounts[numDays - 1]) / maxAmount * rect.height)); final Path path = Path(); path.moveTo(points[0].dx, points[0].dy); @@ -256,21 +234,15 @@ class RallyLineChartPainter extends CustomPainter { // We use toUpperCase to format the dates. This function uses the language // independent Unicode mapping and thus only works in some languages. final TextPainter leftLabel = TextPainter( - text: TextSpan( - text: dateFormat.format(startDate).toUpperCase(), - style: unselectedLabelStyle, - ), + text: TextSpan(text: dateFormat.format(startDate).toUpperCase(), style: unselectedLabelStyle), textDirection: textDirection, ); leftLabel.layout(); - leftLabel.paint(canvas, - Offset(rect.left + space / 2 + padding.vertical, rect.topCenter.dy)); + leftLabel.paint(canvas, Offset(rect.left + space / 2 + padding.vertical, rect.topCenter.dy)); final TextPainter centerLabel = TextPainter( text: TextSpan( - text: dateFormat - .format(DateTime(startDate.year, startDate.month + 1)) - .toUpperCase(), + text: dateFormat.format(DateTime(startDate.year, startDate.month + 1)).toUpperCase(), style: selectedLabelStyle, ), textDirection: textDirection, @@ -282,9 +254,7 @@ class RallyLineChartPainter extends CustomPainter { final TextPainter rightLabel = TextPainter( text: TextSpan( - text: dateFormat - .format(DateTime(startDate.year, startDate.month + 2)) - .toUpperCase(), + text: dateFormat.format(DateTime(startDate.year, startDate.month + 2)).toUpperCase(), style: unselectedLabelStyle, ), textDirection: textDirection, @@ -292,8 +262,7 @@ class RallyLineChartPainter extends CustomPainter { rightLabel.layout(); rightLabel.paint( canvas, - Offset(rect.right - centerLabel.width - space / 2 - padding.vertical, - rect.topCenter.dy), + Offset(rect.right - centerLabel.width - space / 2 - padding.vertical, rect.topCenter.dy), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart index 1e3d896f6cc49dae194927ea75484b3527c0ed48..0d5e8e29b1b0e82b667e5b3da6d2c51c451d68e8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/pie_chart.dart @@ -15,10 +15,7 @@ import '../formatters.dart'; /// A colored piece of the [RallyPieChart]. class RallyPieChartSegment { - const RallyPieChartSegment({ - required this.color, - required this.value, - }); + const RallyPieChartSegment({required this.color, required this.value}); final Color color; final double value; @@ -27,42 +24,25 @@ class RallyPieChartSegment { /// The max height and width of the [RallyPieChart]. const double pieChartMaxSize = 500.0; -List buildSegmentsFromAccountItems( - List items) { - return List.generate( - items.length, - (int i) { - return RallyPieChartSegment( - color: RallyColors.accountColor(i), - value: items[i].primaryAmount, - ); - }, - ); +List buildSegmentsFromAccountItems(List items) { + return List.generate(items.length, (int i) { + return RallyPieChartSegment(color: RallyColors.accountColor(i), value: items[i].primaryAmount); + }); } List buildSegmentsFromBillItems(List items) { - return List.generate( - items.length, - (int i) { - return RallyPieChartSegment( - color: RallyColors.billColor(i), - value: items[i].primaryAmount, - ); - }, - ); + return List.generate(items.length, (int i) { + return RallyPieChartSegment(color: RallyColors.billColor(i), value: items[i].primaryAmount); + }); } -List buildSegmentsFromBudgetItems( - List items) { - return List.generate( - items.length, - (int i) { - return RallyPieChartSegment( - color: RallyColors.budgetColor(i), - value: items[i].primaryAmount - items[i].amountUsed, - ); - }, - ); +List buildSegmentsFromBudgetItems(List items) { + return List.generate(items.length, (int i) { + return RallyPieChartSegment( + color: RallyColors.budgetColor(i), + value: items[i].primaryAmount - items[i].amountUsed, + ); + }); } /// An animated circular pie chart to represent pieces of a whole, which can @@ -85,30 +65,21 @@ class RallyPieChart extends StatefulWidget { State createState() => _RallyPieChartState(); } -class _RallyPieChartState extends State - with SingleTickerProviderStateMixin { +class _RallyPieChartState extends State with SingleTickerProviderStateMixin { late AnimationController controller; late Animation animation; @override void initState() { super.initState(); - controller = AnimationController( - duration: const Duration(milliseconds: 600), - vsync: this, - ); + controller = AnimationController(duration: const Duration(milliseconds: 600), vsync: this); animation = CurvedAnimation( - parent: TweenSequence(>[ - TweenSequenceItem( - tween: Tween(begin: 0, end: 0), - weight: 1, - ), - TweenSequenceItem( - tween: Tween(begin: 0, end: 1), - weight: 1.5, - ), - ]).animate(controller), - curve: Curves.decelerate); + parent: TweenSequence(>[ + TweenSequenceItem(tween: Tween(begin: 0, end: 0), weight: 1), + TweenSequenceItem(tween: Tween(begin: 0, end: 1), weight: 1.5), + ]).animate(controller), + curve: Curves.decelerate, + ); controller.forward(); } @@ -155,44 +126,44 @@ class _AnimatedRallyPieChart extends AnimatedWidget { letterSpacing: letterSpacingOrNone(0.5), ); - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - // When the widget is larger, we increase the font size. - TextStyle? headlineStyle = constraints.maxHeight >= pieChartMaxSize - ? textTheme.headlineSmall!.copyWith(fontSize: 70) - : textTheme.headlineSmall; - - // With a large text scale factor, we set a max font size. - if (GalleryOptions.of(context).textScaleFactor(context) > 1.0) { - headlineStyle = headlineStyle!.copyWith( - fontSize: headlineStyle.fontSize! / reducedTextScale(context), - ); - } - - return DecoratedBox( - decoration: _RallyPieChartOutlineDecoration( - maxFraction: animation.value, - total: total, - segments: segments, - ), - child: Container( - height: constraints.maxHeight, - alignment: Alignment.center, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - centerLabel, - style: labelTextStyle, - ), - SelectableText( - usdWithSignFormat(context).format(centerAmount), - style: headlineStyle, - ), - ], + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + // When the widget is larger, we increase the font size. + TextStyle? headlineStyle = + constraints.maxHeight >= pieChartMaxSize + ? textTheme.headlineSmall!.copyWith(fontSize: 70) + : textTheme.headlineSmall; + + // With a large text scale factor, we set a max font size. + if (GalleryOptions.of(context).textScaleFactor(context) > 1.0) { + headlineStyle = headlineStyle!.copyWith( + fontSize: headlineStyle.fontSize! / reducedTextScale(context), + ); + } + + return DecoratedBox( + decoration: _RallyPieChartOutlineDecoration( + maxFraction: animation.value, + total: total, + segments: segments, ), - ), - ); - }); + child: Container( + height: constraints.maxHeight, + alignment: Alignment.center, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(centerLabel, style: labelTextStyle), + SelectableText( + usdWithSignFormat(context).format(centerAmount), + style: headlineStyle, + ), + ], + ), + ), + ); + }, + ); } } @@ -235,11 +206,7 @@ class _RallyPieChartOutlineBoxPainter extends BoxPainter { // Create two padded reacts to draw arcs in: one for colored arcs and one for // inner bg arc. const double strokeWidth = 4.0; - final double outerRadius = math.min( - configuration.size!.width, - configuration.size!.height, - ) / - 2; + final double outerRadius = math.min(configuration.size!.width, configuration.size!.height) / 2; final Rect outerRect = Rect.fromCircle( center: configuration.size!.center(offset), radius: outerRadius - strokeWidth * 3, @@ -265,8 +232,10 @@ class _RallyPieChartOutlineBoxPainter extends BoxPainter { final double remaining = wholeAmount - cumulativeTotal; if (remaining > 0) { final Paint paint = Paint()..color = Colors.black; - final double startAngle = - _calculateStartAngle(cumulativeTotal, spaceRadians * segments.length); + final double startAngle = _calculateStartAngle( + cumulativeTotal, + spaceRadians * segments.length, + ); final double sweepAngle = _calculateSweepAngle(remaining, -spaceRadians); canvas.drawArc(outerRect, startAngle, sweepAngle, true, paint); } @@ -278,15 +247,12 @@ class _RallyPieChartOutlineBoxPainter extends BoxPainter { } double _calculateAngle(double amount, double offset) { - final double wholeMinusSpacesRadians = - wholeRadians - (segments.length * spaceRadians); - return maxFraction * - (amount / wholeAmount * wholeMinusSpacesRadians + offset); + final double wholeMinusSpacesRadians = wholeRadians - (segments.length * spaceRadians); + return maxFraction * (amount / wholeAmount * wholeMinusSpacesRadians + offset); } double _calculateStartAngle(double total, double offset) => _calculateAngle(total, offset) - math.pi / 2; - double _calculateSweepAngle(double total, double offset) => - _calculateAngle(total, offset); + double _calculateSweepAngle(double total, double offset) => _calculateAngle(total, offset); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart index 4fe85b8537bd8f7fa3481763249aa0c7dc0824b2..caccdaecc4eabb52eb70a0eacc48bad4e8da08cf 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/charts/vertical_fraction_bar.dart @@ -5,36 +5,29 @@ import 'package:flutter/material.dart'; class VerticalFractionBar extends StatelessWidget { - const VerticalFractionBar({ - super.key, - this.color, - required this.fraction, - }); + const VerticalFractionBar({super.key, this.color, required this.fraction}); final Color? color; final double fraction; @override Widget build(BuildContext context) { - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return SizedBox( - height: constraints.maxHeight, - width: 4, - child: Column( - children: [ - SizedBox( - height: (1 - fraction) * constraints.maxHeight, - child: Container( - color: Colors.black, + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return SizedBox( + height: constraints.maxHeight, + width: 4, + child: Column( + children: [ + SizedBox( + height: (1 - fraction) * constraints.maxHeight, + child: Container(color: Colors.black), ), - ), - SizedBox( - height: fraction * constraints.maxHeight, - child: Container(color: color), - ), - ], - ), - ); - }); + SizedBox(height: fraction * constraints.maxHeight, child: Container(color: color)), + ], + ), + ); + }, + ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart index 9aa675e134c93330dd66bdf687e8fd0fcff77977..5b695ac4e8109bd4a190b1a0183d79bdfaf4dc2f 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/data.dart @@ -17,9 +17,9 @@ double sumBillDataPrimaryAmount(List items) => /// Calculates the sum of the primary amounts of a list of [BillData]. double sumBillDataPaidAmount(List items) => sumOf( - items.where((BillData item) => item.isPaid).toList(), - (BillData item) => item.primaryAmount, - ); + items.where((BillData item) => item.isPaid).toList(), + (BillData item) => item.primaryAmount, +); /// Calculates the sum of the primary amounts of a list of [BudgetData]. double sumBudgetDataPrimaryAmount(List items) => @@ -42,11 +42,7 @@ double sumOf(List list, double Function(T elt) getValue) { /// /// The [primaryAmount] is the balance of the account in USD. class AccountData { - const AccountData({ - required this.name, - required this.primaryAmount, - required this.accountNumber, - }); + const AccountData({required this.name, required this.primaryAmount, required this.accountNumber}); /// The display name of this entity. final String name; @@ -86,11 +82,7 @@ class BillData { /// /// The [primaryAmount] is the budget cap in USD. class BudgetData { - const BudgetData({ - required this.name, - required this.primaryAmount, - required this.amountUsed, - }); + const BudgetData({required this.name, required this.primaryAmount, required this.amountUsed}); /// The display name of this entity. final String name; @@ -114,11 +106,7 @@ class AlertData { } class DetailedEventData { - const DetailedEventData({ - required this.title, - required this.date, - required this.amount, - }); + const DetailedEventData({required this.title, required this.date, required this.amount}); final String title; final DateTime date; @@ -127,10 +115,7 @@ class DetailedEventData { /// A data model for data displayed to the user. class UserDetailData { - UserDetailData({ - required this.title, - required this.value, - }); + UserDetailData({required this.title, required this.value}); /// The display name of this entity. final String title; @@ -192,51 +177,28 @@ class DummyDataService { title: localizations.rallyAccountDetailDataNextStatement, value: shortDateFormat(context).format(DateTime.utc(2019, 12, 25)), ), - UserDetailData( - title: localizations.rallyAccountDetailDataAccountOwner, - value: 'Philip Cao', - ), + UserDetailData(title: localizations.rallyAccountDetailDataAccountOwner, value: 'Philip Cao'), ]; } static List getDetailedEventItems() { // The following titles are not localized as they're product/brand names. return [ - DetailedEventData( - title: 'Genoe', - date: DateTime.utc(2019, 1, 24), - amount: -16.54, - ), + DetailedEventData(title: 'Genoe', date: DateTime.utc(2019, 1, 24), amount: -16.54), DetailedEventData( title: 'Fortnightly Subscribe', date: DateTime.utc(2019, 1, 5), amount: -12.54, ), - DetailedEventData( - title: 'Circle Cash', - date: DateTime.utc(2019, 1, 5), - amount: 365.65, - ), + DetailedEventData(title: 'Circle Cash', date: DateTime.utc(2019, 1, 5), amount: 365.65), DetailedEventData( title: 'Crane Hospitality', date: DateTime.utc(2019, 1, 4), amount: -705.13, ), - DetailedEventData( - title: 'ABC Payroll', - date: DateTime.utc(2018, 12, 15), - amount: 1141.43, - ), - DetailedEventData( - title: 'Shrine', - date: DateTime.utc(2018, 12, 15), - amount: -88.88, - ), - DetailedEventData( - title: 'Foodmates', - date: DateTime.utc(2018, 12, 4), - amount: -11.69, - ), + DetailedEventData(title: 'ABC Payroll', date: DateTime.utc(2018, 12, 15), amount: 1141.43), + DetailedEventData(title: 'Shrine', date: DateTime.utc(2018, 12, 15), amount: -88.88), + DetailedEventData(title: 'Foodmates', date: DateTime.utc(2018, 12, 4), amount: -11.69), ]; } @@ -246,33 +208,32 @@ class DummyDataService { BillData( name: 'RedPay Credit', primaryAmount: 45.36, - dueDate: dateFormatAbbreviatedMonthDay(context) - .format(DateTime.utc(2019, 1, 29)), + dueDate: dateFormatAbbreviatedMonthDay(context).format(DateTime.utc(2019, 1, 29)), ), BillData( name: 'Rent', primaryAmount: 1200, - dueDate: dateFormatAbbreviatedMonthDay(context) - .format(DateTime.utc(2019, 2, 9)), + dueDate: dateFormatAbbreviatedMonthDay(context).format(DateTime.utc(2019, 2, 9)), isPaid: true, ), BillData( name: 'TabFine Credit', primaryAmount: 87.33, - dueDate: dateFormatAbbreviatedMonthDay(context) - .format(DateTime.utc(2019, 2, 22)), + dueDate: dateFormatAbbreviatedMonthDay(context).format(DateTime.utc(2019, 2, 22)), ), BillData( name: 'ABC Loans', primaryAmount: 400, - dueDate: dateFormatAbbreviatedMonthDay(context) - .format(DateTime.utc(2019, 2, 29)), + dueDate: dateFormatAbbreviatedMonthDay(context).format(DateTime.utc(2019, 2, 29)), ), ]; } - static List getBillDetailList(BuildContext context, - {required double dueTotal, required double paidTotal}) { + static List getBillDetailList( + BuildContext context, { + required double dueTotal, + required double paidTotal, + }) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return [ UserDetailData( @@ -316,8 +277,11 @@ class DummyDataService { ]; } - static List getBudgetDetailList(BuildContext context, - {required double capTotal, required double usedTotal}) { + static List getBudgetDetailList( + BuildContext context, { + required double capTotal, + required double usedTotal, + }) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return [ UserDetailData( @@ -355,22 +319,26 @@ class DummyDataService { return [ AlertData( message: localizations.rallyAlertsMessageHeadsUpShopping( - percentFormat(context, decimalDigits: 0).format(0.9)), + percentFormat(context, decimalDigits: 0).format(0.9), + ), iconData: Icons.sort, ), AlertData( message: localizations.rallyAlertsMessageSpentOnRestaurants( - usdWithSignFormat(context, decimalDigits: 0).format(120)), + usdWithSignFormat(context, decimalDigits: 0).format(120), + ), iconData: Icons.sort, ), AlertData( message: localizations.rallyAlertsMessageATMFees( - usdWithSignFormat(context, decimalDigits: 0).format(24)), + usdWithSignFormat(context, decimalDigits: 0).format(24), + ), iconData: Icons.credit_card, ), AlertData( message: localizations.rallyAlertsMessageCheckingAccount( - percentFormat(context, decimalDigits: 0).format(0.04)), + percentFormat(context, decimalDigits: 0).format(0.04), + ), iconData: Icons.attach_money, ), AlertData( diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart index 669bf71cd825a91ac52fb69e66cc408a7a2e5b97..9061b0790918259d6b11ddf713f82ac10c6c1166 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/finance.dart @@ -39,42 +39,39 @@ class FinancialEntityView extends StatelessWidget { @override Widget build(BuildContext context) { final double maxWidth = pieChartMaxSize + (cappedTextScale(context) - 1.0) * 100.0; - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return Column( - children: [ - ConstrainedBox( - constraints: BoxConstraints( - // We decrease the max height to ensure the [RallyPieChart] does - // not take up the full height when it is smaller than - // [kPieChartMaxSize]. - maxHeight: math.min( - constraints.biggest.shortestSide * 0.9, - maxWidth, + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Column( + children: [ + ConstrainedBox( + constraints: BoxConstraints( + // We decrease the max height to ensure the [RallyPieChart] does + // not take up the full height when it is smaller than + // [kPieChartMaxSize]. + maxHeight: math.min(constraints.biggest.shortestSide * 0.9, maxWidth), + ), + child: RallyPieChart( + heroLabel: heroLabel, + heroAmount: heroAmount, + wholeAmount: wholeAmount, + segments: segments, ), ), - child: RallyPieChart( - heroLabel: heroLabel, - heroAmount: heroAmount, - wholeAmount: wholeAmount, - segments: segments, + const SizedBox(height: 24), + Container( + height: 1, + constraints: BoxConstraints(maxWidth: maxWidth), + color: RallyColors.inputBackground, ), - ), - const SizedBox(height: 24), - Container( - height: 1, - constraints: BoxConstraints(maxWidth: maxWidth), - color: RallyColors.inputBackground, - ), - Container( - constraints: BoxConstraints(maxWidth: maxWidth), - color: RallyColors.cardBackground, - child: Column( - children: financialEntityCards, + Container( + constraints: BoxConstraints(maxWidth: maxWidth), + color: RallyColors.cardBackground, + child: Column(children: financialEntityCards), ), - ), - ], - ); - }); + ], + ); + }, + ); } } @@ -103,17 +100,14 @@ class FinancialEntityCategoryView extends StatelessWidget { Widget build(BuildContext context) { final TextTheme textTheme = Theme.of(context).textTheme; return Semantics.fromProperties( - properties: SemanticsProperties( - button: true, - enabled: true, - label: semanticsLabel, - ), + properties: SemanticsProperties(button: true, enabled: true, label: semanticsLabel), excludeSemantics: true, // TODO(x): State restoration of FinancialEntityCategoryDetailsPage on mobile is blocked because OpenContainer does not support restorablePush, https://github.com/flutter/gallery/issues/570. child: OpenContainer( transitionDuration: const Duration(milliseconds: 350), - openBuilder: (BuildContext context, void Function() openContainer) => - FinancialEntityCategoryDetailsPage(), + openBuilder: + (BuildContext context, void Function() openContainer) => + FinancialEntityCategoryDetailsPage(), openColor: RallyColors.primaryBackground, closedColor: RallyColors.primaryBackground, closedElevation: 0, @@ -124,8 +118,7 @@ class FinancialEntityCategoryView extends StatelessWidget { child: Column( children: [ Container( - padding: - const EdgeInsets.symmetric(vertical: 16, horizontal: 8), + padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 8), child: Row( children: [ Container( @@ -146,15 +139,10 @@ class FinancialEntityCategoryView extends StatelessWidget { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text( - title, - style: textTheme.bodyMedium! - .copyWith(fontSize: 16), - ), + Text(title, style: textTheme.bodyMedium!.copyWith(fontSize: 16)), Text( subtitle, - style: textTheme.bodyMedium! - .copyWith(color: RallyColors.gray60), + style: textTheme.bodyMedium!.copyWith(color: RallyColors.gray60), ), ], ), @@ -221,11 +209,9 @@ FinancialEntityCategoryView buildFinancialEntityFromAccountData( suffix: const Icon(Icons.chevron_right, color: Colors.grey), title: model.name, subtitle: '• • • • • • $shortAccountNumber', - semanticsLabel: GalleryLocalizations.of(context)!.rallyAccountAmount( - model.name, - shortAccountNumber, - amount, - ), + semanticsLabel: GalleryLocalizations.of( + context, + )!.rallyAccountAmount(model.name, shortAccountNumber, amount), indicatorColor: RallyColors.accountColor(accountDataIndex), indicatorFraction: 1, amount: amount, @@ -242,11 +228,9 @@ FinancialEntityCategoryView buildFinancialEntityFromBillData( suffix: const Icon(Icons.chevron_right, color: Colors.grey), title: model.name, subtitle: model.dueDate, - semanticsLabel: GalleryLocalizations.of(context)!.rallyBillAmount( - model.name, - model.dueDate, - amount, - ), + semanticsLabel: GalleryLocalizations.of( + context, + )!.rallyBillAmount(model.name, model.dueDate, amount), indicatorColor: RallyColors.billColor(billDataIndex), indicatorFraction: 1, amount: amount, @@ -260,25 +244,20 @@ FinancialEntityCategoryView buildFinancialEntityFromBudgetData( ) { final String amountUsed = usdWithSignFormat(context).format(model.amountUsed); final String primaryAmount = usdWithSignFormat(context).format(model.primaryAmount); - final String amount = - usdWithSignFormat(context).format(model.primaryAmount - model.amountUsed); + final String amount = usdWithSignFormat(context).format(model.primaryAmount - model.amountUsed); return FinancialEntityCategoryView( suffix: Text( GalleryLocalizations.of(context)!.rallyFinanceLeft, - style: Theme.of(context) - .textTheme - .bodyMedium! - .copyWith(color: RallyColors.gray60, fontSize: 10), + style: Theme.of( + context, + ).textTheme.bodyMedium!.copyWith(color: RallyColors.gray60, fontSize: 10), ), title: model.name, subtitle: '$amountUsed / $primaryAmount', - semanticsLabel: GalleryLocalizations.of(context)!.rallyBudgetAmount( - model.name, - model.amountUsed, - model.primaryAmount, - amount, - ), + semanticsLabel: GalleryLocalizations.of( + context, + )!.rallyBudgetAmount(model.name, model.amountUsed, model.primaryAmount, amount), indicatorColor: RallyColors.budgetColor(budgetDataIndex), indicatorFraction: model.amountUsed / model.primaryAmount, amount: amount, @@ -310,16 +289,14 @@ List buildBudgetDataListViews( BuildContext context, ) { return [ - for (int i = 0; i < items.length; i++) - buildFinancialEntityFromBudgetData(items[i], i, context) + for (int i = 0; i < items.length; i++) buildFinancialEntityFromBudgetData(items[i], i, context), ]; } class FinancialEntityCategoryDetailsPage extends StatelessWidget { FinancialEntityCategoryDetailsPage({super.key}); - final List items = - DummyDataService.getDetailedEventItems(); + final List items = DummyDataService.getDetailedEventItems(); @override Widget build(BuildContext context) { @@ -332,17 +309,12 @@ class FinancialEntityCategoryDetailsPage extends StatelessWidget { centerTitle: true, title: Text( GalleryLocalizations.of(context)!.rallyAccountDataChecking, - style: - Theme.of(context).textTheme.bodyMedium!.copyWith(fontSize: 18), + style: Theme.of(context).textTheme.bodyMedium!.copyWith(fontSize: 18), ), ), body: Column( children: [ - SizedBox( - height: 200, - width: double.infinity, - child: RallyLineChart(events: items), - ), + SizedBox(height: 200, width: double.infinity, child: RallyLineChart(events: items)), Expanded( child: Padding( padding: isDesktop ? const EdgeInsets.all(40) : EdgeInsets.zero, @@ -367,11 +339,7 @@ class FinancialEntityCategoryDetailsPage extends StatelessWidget { } class _DetailedEventCard extends StatelessWidget { - const _DetailedEventCard({ - required this.title, - required this.date, - required this.amount, - }); + const _DetailedEventCard({required this.title, required this.date, required this.amount}); final String title; final DateTime date; @@ -391,42 +359,33 @@ class _DetailedEventCard extends StatelessWidget { Container( padding: const EdgeInsets.symmetric(vertical: 16), width: double.infinity, - child: isDesktop - ? Row( - children: [ - Expanded( - child: _EventTitle(title: title), - ), - _EventDate(date: date), - Expanded( - child: Align( - alignment: AlignmentDirectional.centerEnd, - child: _EventAmount(amount: amount), + child: + isDesktop + ? Row( + children: [ + Expanded(child: _EventTitle(title: title)), + _EventDate(date: date), + Expanded( + child: Align( + alignment: AlignmentDirectional.centerEnd, + child: _EventAmount(amount: amount), + ), ), - ), - ], - ) - : Wrap( - alignment: WrapAlignment.spaceBetween, - children: [ - Column( - mainAxisAlignment: MainAxisAlignment.center, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - _EventTitle(title: title), - _EventDate(date: date), - ], - ), - _EventAmount(amount: amount), - ], - ), - ), - SizedBox( - height: 1, - child: Container( - color: RallyColors.dividerColor, - ), + ], + ) + : Wrap( + alignment: WrapAlignment.spaceBetween, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [_EventTitle(title: title), _EventDate(date: date)], + ), + _EventAmount(amount: amount), + ], + ), ), + SizedBox(height: 1, child: Container(color: RallyColors.dividerColor)), ], ), ); @@ -443,10 +402,7 @@ class _EventAmount extends StatelessWidget { final TextTheme textTheme = Theme.of(context).textTheme; return Text( usdWithSignFormat(context).format(amount), - style: textTheme.bodyLarge!.copyWith( - fontSize: 20, - color: RallyColors.gray, - ), + style: textTheme.bodyLarge!.copyWith(fontSize: 20, color: RallyColors.gray), ); } } @@ -475,9 +431,6 @@ class _EventTitle extends StatelessWidget { @override Widget build(BuildContext context) { final TextTheme textTheme = Theme.of(context).textTheme; - return Text( - title, - style: textTheme.bodyMedium!.copyWith(fontSize: 16), - ); + return Text(title, style: textTheme.bodyMedium!.copyWith(fontSize: 16)); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart index 0e5a066d640d388cfa7eedc986a1c32c1c055378..7db2ec98ed97019d29bfa068bd036e2bc34bf9f4 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/formatters.dart @@ -8,38 +8,26 @@ import 'package:intl/intl.dart'; import '../../data/gallery_options.dart'; /// Get the locale string for the context. -String locale(BuildContext context) => - GalleryOptions.of(context).locale.toString(); +String locale(BuildContext context) => GalleryOptions.of(context).locale.toString(); /// Currency formatter for USD. NumberFormat usdWithSignFormat(BuildContext context, {int decimalDigits = 2}) { - return NumberFormat.currency( - locale: locale(context), - name: r'$', - decimalDigits: decimalDigits, - ); + return NumberFormat.currency(locale: locale(context), name: r'$', decimalDigits: decimalDigits); } /// Percent formatter with two decimal points. NumberFormat percentFormat(BuildContext context, {int decimalDigits = 2}) { - return NumberFormat.decimalPercentPattern( - locale: locale(context), - decimalDigits: decimalDigits, - ); + return NumberFormat.decimalPercentPattern(locale: locale(context), decimalDigits: decimalDigits); } /// Date formatter with year / number month / day. -DateFormat shortDateFormat(BuildContext context) => - DateFormat.yMd(locale(context)); +DateFormat shortDateFormat(BuildContext context) => DateFormat.yMd(locale(context)); /// Date formatter with year / month / day. -DateFormat longDateFormat(BuildContext context) => - DateFormat.yMMMMd(locale(context)); +DateFormat longDateFormat(BuildContext context) => DateFormat.yMMMMd(locale(context)); /// Date formatter with abbreviated month and day. -DateFormat dateFormatAbbreviatedMonthDay(BuildContext context) => - DateFormat.MMMd(locale(context)); +DateFormat dateFormatAbbreviatedMonthDay(BuildContext context) => DateFormat.MMMd(locale(context)); /// Date formatter with year and abbreviated month. -DateFormat dateFormatMonthYear(BuildContext context) => - DateFormat.yMMM(locale(context)); +DateFormat dateFormatMonthYear(BuildContext context) => DateFormat.yMMM(locale(context)); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart index ee933100281adb9c42d68f142dd39ee0e219825b..3330ac9a3d9766beecf7952f1f60f2c5457f30a3 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/home.dart @@ -25,8 +25,7 @@ class HomePage extends StatefulWidget { State createState() => _HomePageState(); } -class _HomePageState extends State - with SingleTickerProviderStateMixin, RestorationMixin { +class _HomePageState extends State with SingleTickerProviderStateMixin, RestorationMixin { late TabController _tabController; RestorableInt tabIndex = RestorableInt(0); @@ -42,13 +41,12 @@ class _HomePageState extends State @override void initState() { super.initState(); - _tabController = TabController(length: tabCount, vsync: this) - ..addListener(() { - // Set state to make sure that the [_RallyTab] widgets get updated when changing tabs. - setState(() { - tabIndex.value = _tabController.index; - }); + _tabController = TabController(length: tabCount, vsync: this)..addListener(() { + // Set state to make sure that the [_RallyTab] widgets get updated when changing tabs. + setState(() { + tabIndex.value = _tabController.index; }); + }); } @override @@ -65,10 +63,8 @@ class _HomePageState extends State Widget tabBarView; if (isDesktop) { final bool isTextDirectionRtl = - GalleryOptions.of(context).resolvedTextDirection() == - TextDirection.rtl; - final int verticalRotation = - isTextDirectionRtl ? turnsToRotateLeft : turnsToRotateRight; + GalleryOptions.of(context).resolvedTextDirection() == TextDirection.rtl; + final int verticalRotation = isTextDirectionRtl ? turnsToRotateLeft : turnsToRotateRight; final int revertVerticalRotation = isTextDirectionRtl ? turnsToRotateRight : turnsToRotateLeft; tabBarView = Row( @@ -83,10 +79,7 @@ class _HomePageState extends State ExcludeSemantics( child: SizedBox( height: 80, - child: Image.asset( - 'logo.png', - package: 'rally_assets', - ), + child: Image.asset('logo.png', package: 'rally_assets'), ), ), const SizedBox(height: 24), @@ -94,17 +87,13 @@ class _HomePageState extends State RotatedBox( quarterTurns: verticalRotation, child: _RallyTabBar( - tabs: _buildTabs( - context: context, theme: theme, isVertical: true) - .map( - (Widget widget) { - // Revert the rotation on the tabs. - return RotatedBox( - quarterTurns: revertVerticalRotation, - child: widget, - ); - }, - ).toList(), + tabs: + _buildTabs(context: context, theme: theme, isVertical: true).map(( + Widget widget, + ) { + // Revert the rotation on the tabs. + return RotatedBox(quarterTurns: revertVerticalRotation, child: widget); + }).toList(), tabController: _tabController, ), ), @@ -117,15 +106,11 @@ class _HomePageState extends State quarterTurns: verticalRotation, child: TabBarView( controller: _tabController, - children: _buildTabViews().map( - (Widget widget) { - // Revert the rotation on the tab views. - return RotatedBox( - quarterTurns: revertVerticalRotation, - child: widget, - ); - }, - ).toList(), + children: + _buildTabViews().map((Widget widget) { + // Revert the rotation on the tab views. + return RotatedBox(quarterTurns: revertVerticalRotation, child: widget); + }).toList(), ), ), ), @@ -138,12 +123,7 @@ class _HomePageState extends State tabs: _buildTabs(context: context, theme: theme), tabController: _tabController, ), - Expanded( - child: TabBarView( - controller: _tabController, - children: _buildTabViews(), - ), - ), + Expanded(child: TabBarView(controller: _tabController, children: _buildTabViews())), ], ); } @@ -162,20 +142,18 @@ class _HomePageState extends State splashColor: Colors.transparent, highlightColor: Colors.transparent, ), - child: FocusTraversalGroup( - policy: OrderedTraversalPolicy(), - child: tabBarView, - ), + child: FocusTraversalGroup(policy: OrderedTraversalPolicy(), child: tabBarView), ), ), ), ); } - List _buildTabs( - {required BuildContext context, - required ThemeData theme, - bool isVertical = false}) { + List _buildTabs({ + required BuildContext context, + required ThemeData theme, + bool isVertical = false, + }) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return [ _RallyTab( @@ -233,10 +211,7 @@ class _HomePageState extends State } class _RallyTabBar extends StatelessWidget { - const _RallyTabBar({ - required this.tabs, - this.tabController, - }); + const _RallyTabBar({required this.tabs, this.tabController}); final List tabs; final TabController? tabController; @@ -268,9 +243,9 @@ class _RallyTab extends StatefulWidget { int? tabIndex, required TabController tabController, required this.isVertical, - }) : titleText = Text(title, style: theme.textTheme.labelLarge), - isExpanded = tabController.index == tabIndex, - icon = Icon(iconData, semanticLabel: title); + }) : titleText = Text(title, style: theme.textTheme.labelLarge), + isExpanded = tabController.index == tabIndex, + icon = Icon(iconData, semanticLabel: title); final Text titleText; final Icon icon; @@ -281,8 +256,7 @@ class _RallyTab extends StatefulWidget { _RallyTabState createState() => _RallyTabState(); } -class _RallyTabState extends State<_RallyTab> - with SingleTickerProviderStateMixin { +class _RallyTabState extends State<_RallyTab> with SingleTickerProviderStateMixin { late Animation _titleSizeAnimation; late Animation _titleFadeAnimation; late Animation _iconFadeAnimation; @@ -291,10 +265,7 @@ class _RallyTabState extends State<_RallyTab> @override void initState() { super.initState(); - _controller = AnimationController( - duration: const Duration(milliseconds: 200), - vsync: this, - ); + _controller = AnimationController(duration: const Duration(milliseconds: 200), vsync: this); _titleSizeAnimation = _controller.view; _titleFadeAnimation = _controller.drive(CurveTween(curve: Curves.easeOut)); _iconFadeAnimation = _controller.drive(Tween(begin: 0.6, end: 1)); @@ -319,10 +290,7 @@ class _RallyTabState extends State<_RallyTab> return Column( children: [ const SizedBox(height: 18), - FadeTransition( - opacity: _iconFadeAnimation, - child: widget.icon, - ), + FadeTransition(opacity: _iconFadeAnimation, child: widget.icon), const SizedBox(height: 12), FadeTransition( opacity: _titleFadeAnimation, @@ -351,10 +319,7 @@ class _RallyTabState extends State<_RallyTab> children: [ FadeTransition( opacity: _iconFadeAnimation, - child: SizedBox( - width: unitWidth, - child: widget.icon, - ), + child: SizedBox(width: unitWidth, child: widget.icon), ), FadeTransition( opacity: _titleFadeAnimation, @@ -364,9 +329,7 @@ class _RallyTabState extends State<_RallyTab> sizeFactor: _titleSizeAnimation, child: SizedBox( width: unitWidth * expandedTitleWidthMultiplier, - child: Center( - child: ExcludeSemantics(child: widget.titleText), - ), + child: Center(child: ExcludeSemantics(child: widget.titleText)), ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart index 3c6e6482c85e70beef2fec0f71558ae538895bcc..ca788735cb950888e0b858ff5d67ba8c3294760b 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/login.dart @@ -21,10 +21,8 @@ class LoginPage extends StatefulWidget { } class _LoginPageState extends State with RestorationMixin { - final RestorableTextEditingController _usernameController = - RestorableTextEditingController(); - final RestorableTextEditingController _passwordController = - RestorableTextEditingController(); + final RestorableTextEditingController _usernameController = RestorableTextEditingController(); + final RestorableTextEditingController _passwordController = RestorableTextEditingController(); @override String get restorationId => 'login_page'; @@ -58,10 +56,7 @@ class _LoginPageState extends State with RestorationMixin { } class _MainView extends StatelessWidget { - const _MainView({ - this.usernameController, - this.passwordController, - }); + const _MainView({this.usernameController, this.passwordController}); final TextEditingController? usernameController; final TextEditingController? passwordController; @@ -78,15 +73,9 @@ class _MainView extends StatelessWidget { if (isDesktop) { final double desktopMaxWidth = 400.0 + 100.0 * (cappedTextScale(context) - 1); listViewChildren = [ - _UsernameInput( - maxWidth: desktopMaxWidth, - usernameController: usernameController, - ), + _UsernameInput(maxWidth: desktopMaxWidth, usernameController: usernameController), const SizedBox(height: 12), - _PasswordInput( - maxWidth: desktopMaxWidth, - passwordController: passwordController, - ), + _PasswordInput(maxWidth: desktopMaxWidth, passwordController: passwordController), _LoginButton( maxWidth: desktopMaxWidth, onTap: () { @@ -97,13 +86,9 @@ class _MainView extends StatelessWidget { } else { listViewChildren = [ const _SmallLogo(), - _UsernameInput( - usernameController: usernameController, - ), + _UsernameInput(usernameController: usernameController), const SizedBox(height: 12), - _PasswordInput( - passwordController: passwordController, - ), + _PasswordInput(passwordController: passwordController), _ThumbButton( onTap: () { _login(context); @@ -152,14 +137,15 @@ class _TopBar extends StatelessWidget { child: SizedBox( height: 80, child: FadeInImagePlaceholder( - image: - const AssetImage('logo.png', package: 'rally_assets'), - placeholder: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return SizedBox( - width: constraints.maxHeight, - height: constraints.maxHeight, - ); - }), + image: const AssetImage('logo.png', package: 'rally_assets'), + placeholder: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return SizedBox( + width: constraints.maxHeight, + height: constraints.maxHeight, + ); + }, + ), ), ), ), @@ -167,9 +153,9 @@ class _TopBar extends StatelessWidget { Text( localizations.rallyLoginLoginToRally, style: Theme.of(context).textTheme.bodyLarge!.copyWith( - fontSize: 35 / reducedTextScale(context), - fontWeight: FontWeight.w600, - ), + fontSize: 35 / reducedTextScale(context), + fontWeight: FontWeight.w600, + ), ), ], ), @@ -181,9 +167,7 @@ class _TopBar extends StatelessWidget { style: Theme.of(context).textTheme.titleMedium, ), spacing, - _BorderButton( - text: localizations.rallyLoginSignUp, - ), + _BorderButton(text: localizations.rallyLoginSignUp), ], ), ], @@ -213,10 +197,7 @@ class _SmallLogo extends StatelessWidget { } class _UsernameInput extends StatelessWidget { - const _UsernameInput({ - this.maxWidth, - this.usernameController, - }); + const _UsernameInput({this.maxWidth, this.usernameController}); final double? maxWidth; final TextEditingController? usernameController; @@ -240,10 +221,7 @@ class _UsernameInput extends StatelessWidget { } class _PasswordInput extends StatelessWidget { - const _PasswordInput({ - this.maxWidth, - this.passwordController, - }); + const _PasswordInput({this.maxWidth, this.passwordController}); final double? maxWidth; final TextEditingController? passwordController; @@ -266,9 +244,7 @@ class _PasswordInput extends StatelessWidget { } class _ThumbButton extends StatefulWidget { - const _ThumbButton({ - required this.onTap, - }); + const _ThumbButton({required this.onTap}); final VoidCallback onTap; @@ -304,10 +280,7 @@ class _ThumbButtonState extends State<_ThumbButton> { if (hasFocus) { setState(() { borderDecoration = BoxDecoration( - border: Border.all( - color: Colors.white.withOpacity(0.5), - width: 2, - ), + border: Border.all(color: Colors.white.withOpacity(0.5), width: 2), ); }); } else { @@ -319,12 +292,7 @@ class _ThumbButtonState extends State<_ThumbButton> { child: Container( decoration: borderDecoration, height: 120, - child: ExcludeSemantics( - child: Image.asset( - 'thumb.png', - package: 'rally_assets', - ), - ), + child: ExcludeSemantics(child: Image.asset('thumb.png', package: 'rally_assets')), ), ), ), @@ -334,10 +302,7 @@ class _ThumbButtonState extends State<_ThumbButton> { } class _LoginButton extends StatelessWidget { - const _LoginButton({ - required this.onTap, - this.maxWidth, - }); + const _LoginButton({required this.onTap, this.maxWidth}); final double? maxWidth; final VoidCallback onTap; @@ -350,8 +315,7 @@ class _LoginButton extends StatelessWidget { padding: const EdgeInsets.symmetric(vertical: 30), child: Row( children: [ - const Icon(Icons.check_circle_outline, - color: RallyColors.buttonColor), + const Icon(Icons.check_circle_outline, color: RallyColors.buttonColor), const SizedBox(width: 12), Text(GalleryLocalizations.of(context)!.rallyLoginRememberMe), const Expanded(child: SizedBox.shrink()), @@ -378,9 +342,7 @@ class _BorderButton extends StatelessWidget { foregroundColor: Colors.white, side: const BorderSide(color: RallyColors.buttonColor), padding: const EdgeInsets.symmetric(vertical: 14, horizontal: 24), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), - ), + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), ), onPressed: () { Navigator.of(context).restorablePushNamed(RallyApp.homeRoute); @@ -403,18 +365,10 @@ class _FilledButton extends StatelessWidget { foregroundColor: Colors.black, backgroundColor: RallyColors.buttonColor, padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 24), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(12), - ), + shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)), ), onPressed: onTap, - child: Row( - children: [ - const Icon(Icons.lock), - const SizedBox(width: 6), - Text(text), - ], - ), + child: Row(children: [const Icon(Icons.lock), const SizedBox(width: 6), Text(text)]), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart index c7d6a04aff51f365ca09c6993bc5eab9069cca26..2f7c10f0e813ecd8605056800fc33e862ecac59a 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/accounts.dart @@ -31,7 +31,7 @@ class AccountsView extends StatelessWidget { ), sidebarItems: [ for (final UserDetailData item in detailItems) - SidebarItem(title: item.title, value: item.value) + SidebarItem(title: item.title, value: item.value), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart index b2e205b719e8b5191af2289da7732a472afdc23d..ce6e081599bc018a6daced379a28fdaed77bf414 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/bills.dart @@ -18,8 +18,7 @@ class BillsView extends StatefulWidget { State createState() => _BillsViewState(); } -class _BillsViewState extends State - with SingleTickerProviderStateMixin { +class _BillsViewState extends State with SingleTickerProviderStateMixin { @override Widget build(BuildContext context) { final List items = DummyDataService.getBillDataList(context); @@ -42,7 +41,7 @@ class _BillsViewState extends State ), sidebarItems: [ for (final UserDetailData item in detailItems) - SidebarItem(title: item.title, value: item.value) + SidebarItem(title: item.title, value: item.value), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart index fef158601642c61bb7d6495a91f85a2e4d332a13..fe85edd856fe11b5115dd0b2e7e13b067186cf69 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/budgets.dart @@ -17,8 +17,7 @@ class BudgetsView extends StatefulWidget { State createState() => _BudgetsViewState(); } -class _BudgetsViewState extends State - with SingleTickerProviderStateMixin { +class _BudgetsViewState extends State with SingleTickerProviderStateMixin { @override Widget build(BuildContext context) { final List items = DummyDataService.getBudgetDataList(context); @@ -41,7 +40,7 @@ class _BudgetsViewState extends State ), sidebarItems: [ for (final UserDetailData item in detailItems) - SidebarItem(title: item.title, value: item.value) + SidebarItem(title: item.title, value: item.value), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart index f82aa5015be0ae6a3d040413ccd4ad620b40c011..025df5b8e8e245c6b1bfe92cf267c0abc04040ff 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/overview.dart @@ -52,9 +52,7 @@ class _OverviewViewState extends State { width: 400, child: Semantics( sortKey: const OrdinalSortKey(2, name: sortKeyName), - child: FocusTraversalGroup( - child: _AlertsView(alerts: alerts), - ), + child: FocusTraversalGroup(child: _AlertsView(alerts: alerts)), ), ), ), @@ -92,56 +90,55 @@ class _OverviewGrid extends StatelessWidget { final List budgetDataList = DummyDataService.getBudgetDataList(context); final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - final double textScaleFactor = - GalleryOptions.of(context).textScaleFactor(context); + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final double textScaleFactor = GalleryOptions.of(context).textScaleFactor(context); - // Only display multiple columns when the constraints allow it and we - // have a regular text scale factor. - const int minWidthForTwoColumns = 600; - final bool hasMultipleColumns = isDisplayDesktop(context) && - constraints.maxWidth > minWidthForTwoColumns && - textScaleFactor <= 2; - final double boxWidth = hasMultipleColumns - ? constraints.maxWidth / 2 - spacing / 2 - : double.infinity; + // Only display multiple columns when the constraints allow it and we + // have a regular text scale factor. + const int minWidthForTwoColumns = 600; + final bool hasMultipleColumns = + isDisplayDesktop(context) && + constraints.maxWidth > minWidthForTwoColumns && + textScaleFactor <= 2; + final double boxWidth = + hasMultipleColumns ? constraints.maxWidth / 2 - spacing / 2 : double.infinity; - return Wrap( - runSpacing: spacing, - children: [ - SizedBox( - width: boxWidth, - child: _FinancialView( - title: localizations.rallyAccounts, - total: sumAccountDataPrimaryAmount(accountDataList), - financialItemViews: - buildAccountDataListViews(accountDataList, context), - buttonSemanticsLabel: localizations.rallySeeAllAccounts, - order: 1, + return Wrap( + runSpacing: spacing, + children: [ + SizedBox( + width: boxWidth, + child: _FinancialView( + title: localizations.rallyAccounts, + total: sumAccountDataPrimaryAmount(accountDataList), + financialItemViews: buildAccountDataListViews(accountDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllAccounts, + order: 1, + ), ), - ), - if (hasMultipleColumns) SizedBox(width: spacing), - SizedBox( - width: boxWidth, - child: _FinancialView( - title: localizations.rallyBills, - total: sumBillDataPrimaryAmount(billDataList), - financialItemViews: buildBillDataListViews(billDataList, context), - buttonSemanticsLabel: localizations.rallySeeAllBills, - order: 2, + if (hasMultipleColumns) SizedBox(width: spacing), + SizedBox( + width: boxWidth, + child: _FinancialView( + title: localizations.rallyBills, + total: sumBillDataPrimaryAmount(billDataList), + financialItemViews: buildBillDataListViews(billDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllBills, + order: 2, + ), ), - ), - _FinancialView( - title: localizations.rallyBudgets, - total: sumBudgetDataPrimaryAmount(budgetDataList), - financialItemViews: - buildBudgetDataListViews(budgetDataList, context), - buttonSemanticsLabel: localizations.rallySeeAllBudgets, - order: 3, - ), - ], - ); - }); + _FinancialView( + title: localizations.rallyBudgets, + total: sumBudgetDataPrimaryAmount(budgetDataList), + financialItemViews: buildBudgetDataListViews(budgetDataList, context), + buttonSemanticsLabel: localizations.rallySeeAllBudgets, + order: 3, + ), + ], + ); + }, + ); } } @@ -162,8 +159,7 @@ class _AlertsView extends StatelessWidget { children: [ Container( width: double.infinity, - padding: - isDesktop ? const EdgeInsets.symmetric(vertical: 16) : null, + padding: isDesktop ? const EdgeInsets.symmetric(vertical: 16) : null, child: MergeSemantics( child: Wrap( alignment: WrapAlignment.spaceBetween, @@ -172,9 +168,7 @@ class _AlertsView extends StatelessWidget { Text(localizations.rallyAlerts), if (!isDesktop) TextButton( - style: TextButton.styleFrom( - foregroundColor: Colors.white, - ), + style: TextButton.styleFrom(foregroundColor: Colors.white), onPressed: () {}, child: Text(localizations.rallySeeAll), ), @@ -185,7 +179,7 @@ class _AlertsView extends StatelessWidget { for (final AlertData alert in alerts!) ...[ Container(color: RallyColors.primaryBackground, height: 1), _Alert(alert: alert), - ] + ], ], ), ); @@ -201,15 +195,11 @@ class _Alert extends StatelessWidget { Widget build(BuildContext context) { return MergeSemantics( child: Container( - padding: isDisplayDesktop(context) - ? const EdgeInsets.symmetric(vertical: 8) - : null, + padding: isDisplayDesktop(context) ? const EdgeInsets.symmetric(vertical: 8) : null, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ - Expanded( - child: SelectableText(alert.message!), - ), + Expanded(child: SelectableText(alert.message!)), SizedBox( width: 100, child: Align( @@ -257,11 +247,7 @@ class _FinancialView extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Padding( - padding: const EdgeInsets.only( - top: 16, - left: 16, - right: 16, - ), + padding: const EdgeInsets.only(top: 16, left: 16, right: 16), child: SelectableText(title!), ), Padding( @@ -277,8 +263,7 @@ class _FinancialView extends StatelessWidget { ], ), ), - ...financialItemViews! - .sublist(0, math.min(financialItemViews!.length, 3)), + ...financialItemViews!.sublist(0, math.min(financialItemViews!.length, 3)), TextButton( style: TextButton.styleFrom(foregroundColor: Colors.white), onPressed: () {}, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart index b9db0de1b691aa10fc35224ef4128b0e7d0ea9b4..430c3eafa408218766bb54b86f7247ab86b2ede3 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/settings.dart @@ -25,14 +25,10 @@ class _SettingsViewState extends State { restorationId: 'settings_list_view', shrinkWrap: true, children: [ - for (final String title - in DummyDataService.getSettingsTitles(context)) ...[ + for (final String title in DummyDataService.getSettingsTitles(context)) ...[ _SettingsItem(title), - const Divider( - color: RallyColors.dividerColor, - height: 1, - ) - ] + const Divider(color: RallyColors.dividerColor, height: 1), + ], ], ), ), @@ -48,10 +44,7 @@ class _SettingsItem extends StatelessWidget { @override Widget build(BuildContext context) { return TextButton( - style: TextButton.styleFrom( - foregroundColor: Colors.white, - padding: EdgeInsets.zero, - ), + style: TextButton.styleFrom(foregroundColor: Colors.white, padding: EdgeInsets.zero), onPressed: () { Navigator.of(context).restorablePushNamed(rally_route.loginRoute); }, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart index 467fc44a74cd60a3254f14d423f2f1e677bed2c9..ee9311d2b1225fc754a73108aae824a02a4e4969 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/rally/tabs/sidebar.dart @@ -26,10 +26,7 @@ class TabWithSidebar extends StatelessWidget { Flexible( flex: 2, child: SingleChildScrollView( - child: Padding( - padding: const EdgeInsets.symmetric(vertical: 24), - child: mainView, - ), + child: Padding(padding: const EdgeInsets.symmetric(vertical: 24), child: mainView), ), ), Expanded( @@ -38,29 +35,19 @@ class TabWithSidebar extends StatelessWidget { padding: const EdgeInsetsDirectional.only(start: 24), height: double.infinity, alignment: AlignmentDirectional.centerStart, - child: ListView( - shrinkWrap: true, - children: sidebarItems, - ), + child: ListView(shrinkWrap: true, children: sidebarItems), ), ), ], ); } else { - return SingleChildScrollView( - restorationId: restorationId, - child: mainView, - ); + return SingleChildScrollView(restorationId: restorationId, child: mainView); } } } class SidebarItem extends StatelessWidget { - const SidebarItem({ - super.key, - required this.value, - required this.title, - }); + const SidebarItem({super.key, required this.value, required this.title}); final String value; final String title; @@ -74,21 +61,12 @@ class SidebarItem extends StatelessWidget { const SizedBox(height: 8), SelectableText( title, - style: textTheme.bodyMedium!.copyWith( - fontSize: 16, - color: RallyColors.gray60, - ), + style: textTheme.bodyMedium!.copyWith(fontSize: 16, color: RallyColors.gray60), ), const SizedBox(height: 8), - SelectableText( - value, - style: textTheme.bodyLarge!.copyWith(fontSize: 20), - ), + SelectableText(value, style: textTheme.bodyLarge!.copyWith(fontSize: 20)), const SizedBox(height: 8), - Container( - color: RallyColors.primaryBackground, - height: 1, - ), + Container(color: RallyColors.primaryBackground, height: 1), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart index 088fb3f37db241726714597887367be4bcea3334..96aa26bcf608889554069a19fc8166d22bda2135 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/adaptive_nav.dart @@ -109,10 +109,7 @@ class _AdaptiveNavState extends State { } void _onDestinationSelected(int index, MailboxPageType destination) { - final EmailStore emailStore = Provider.of( - context, - listen: false, - ); + final EmailStore emailStore = Provider.of(context, listen: false); final bool isDesktop = isDisplayDesktop(context); @@ -151,8 +148,7 @@ class _DesktopNav extends StatefulWidget { _DesktopNavState createState() => _DesktopNavState(); } -class _DesktopNavState extends State<_DesktopNav> - with SingleTickerProviderStateMixin { +class _DesktopNavState extends State<_DesktopNav> with SingleTickerProviderStateMixin { late ValueNotifier _isExtended; @override @@ -170,19 +166,17 @@ class _DesktopNavState extends State<_DesktopNav> builder: (BuildContext context, EmailStore model, Widget? child) { return LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) { - final int selectedIndex = - widget.destinations.indexWhere((_Destination destination) { + final int selectedIndex = widget.destinations.indexWhere(( + _Destination destination, + ) { return destination.type == model.selectedMailboxPage; }); return Container( - color: - Theme.of(context).navigationRailTheme.backgroundColor, + color: Theme.of(context).navigationRailTheme.backgroundColor, child: SingleChildScrollView( clipBehavior: Clip.antiAlias, child: ConstrainedBox( - constraints: BoxConstraints( - minHeight: constraints.maxHeight, - ), + constraints: BoxConstraints(minHeight: constraints.maxHeight), child: IntrinsicHeight( child: ValueListenableBuilder( valueListenable: _isExtended, @@ -192,15 +186,10 @@ class _DesktopNavState extends State<_DesktopNav> for (final _Destination destination in widget.destinations) NavigationRailDestination( icon: Material( - key: ValueKey( - 'Reply-${destination.textLabel}', - ), + key: ValueKey('Reply-${destination.textLabel}'), color: Colors.transparent, child: ImageIcon( - AssetImage( - destination.icon, - package: _assetsPackage, - ), + AssetImage(destination.icon, package: _assetsPackage), ), ), label: Text(destination.textLabel), @@ -208,18 +197,11 @@ class _DesktopNavState extends State<_DesktopNav> ], extended: _isExtended.value, labelType: NavigationRailLabelType.none, - leading: _NavigationRailHeader( - extended: _isExtended, - ), - trailing: _NavigationRailFolderSection( - folders: widget.folders, - ), + leading: _NavigationRailHeader(extended: _isExtended), + trailing: _NavigationRailFolderSection(folders: widget.folders), selectedIndex: selectedIndex, onDestinationSelected: (int index) { - widget.onItemTapped( - index, - widget.destinations[index].type, - ); + widget.onItemTapped(index, widget.destinations[index].type); }, ); }, @@ -238,9 +220,7 @@ class _DesktopNavState extends State<_DesktopNav> child: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 1340), child: const _SharedAxisTransitionSwitcher( - defaultChild: _MailNavigator( - child: MailboxBody(), - ), + defaultChild: _MailNavigator(child: MailboxBody()), ), ), ), @@ -299,9 +279,7 @@ class _NavigationRailHeader extends StatelessWidget { opacity: animation.value, child: Text( 'REPLY', - style: textTheme.bodyLarge!.copyWith( - color: ReplyColors.white50, - ), + style: textTheme.bodyLarge!.copyWith(color: ReplyColors.white50), ), ), ), @@ -315,15 +293,9 @@ class _NavigationRailHeader extends StatelessWidget { child: const Row( children: [ SizedBox(width: 18), - ProfileAvatar( - avatar: 'reply/avatars/avatar_2.jpg', - radius: 16, - ), + ProfileAvatar(avatar: 'reply/avatars/avatar_2.jpg', radius: 16), SizedBox(width: 12), - Icon( - Icons.settings, - color: ReplyColors.white50, - ), + Icon(Icons.settings, color: ReplyColors.white50), ], ), ), @@ -332,9 +304,7 @@ class _NavigationRailHeader extends StatelessWidget { ), const SizedBox(height: 20), Padding( - padding: const EdgeInsetsDirectional.only( - start: 8, - ), + padding: const EdgeInsetsDirectional.only(start: 8), child: _ReplyFab(extended: extended.value), ), const SizedBox(height: 8), @@ -385,23 +355,18 @@ class _NavigationRailFolderSection extends StatelessWidget { ), const SizedBox(height: 16), Padding( - padding: const EdgeInsetsDirectional.only( - start: 16, - ), + padding: const EdgeInsetsDirectional.only(start: 16), child: Text( 'FOLDERS', style: textTheme.bodySmall!.copyWith( - color: navigationRailTheme - .unselectedLabelTextStyle!.color, + color: navigationRailTheme.unselectedLabelTextStyle!.color, ), ), ), const SizedBox(height: 8), for (final String folder in folders.keys) InkWell( - borderRadius: const BorderRadius.all( - Radius.circular(36), - ), + borderRadius: const BorderRadius.all(Radius.circular(36)), onTap: () {}, child: Column( children: [ @@ -409,19 +374,14 @@ class _NavigationRailFolderSection extends StatelessWidget { children: [ const SizedBox(width: 12), ImageIcon( - AssetImage( - folders[folder]!, - package: _assetsPackage, - ), - color: navigationRailTheme - .unselectedLabelTextStyle!.color, + AssetImage(folders[folder]!, package: _assetsPackage), + color: navigationRailTheme.unselectedLabelTextStyle!.color, ), const SizedBox(width: 24), Text( folder, style: textTheme.bodyLarge!.copyWith( - color: navigationRailTheme - .unselectedLabelTextStyle!.color, + color: navigationRailTheme.unselectedLabelTextStyle!.color, ), ), const SizedBox(height: 72), @@ -442,11 +402,7 @@ class _NavigationRailFolderSection extends StatelessWidget { } class _MobileNav extends StatefulWidget { - const _MobileNav({ - required this.destinations, - required this.folders, - required this.onItemTapped, - }); + const _MobileNav({required this.destinations, required this.folders, required this.onItemTapped}); final List<_Destination> destinations; final Map folders; @@ -468,11 +424,8 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { @override void initState() { super.initState(); - _drawerController = AnimationController( - duration: _kAnimationDuration, - value: 0, - vsync: this, - )..addListener(() { + _drawerController = AnimationController(duration: _kAnimationDuration, value: 0, vsync: this) + ..addListener(() { if (_drawerController.value < 0.01) { setState(() { //Reload state when drawer is at its smallest to toggle visibility @@ -482,10 +435,7 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { } }); - _dropArrowController = AnimationController( - duration: _kAnimationDuration, - vsync: this, - ); + _dropArrowController = AnimationController(duration: _kAnimationDuration, vsync: this); _bottomAppBarController = AnimationController( vsync: this, @@ -530,14 +480,11 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { } _dropArrowController.forward(); - _drawerController.fling( - velocity: _bottomDrawerVisible ? -_kFlingVelocity : _kFlingVelocity, - ); + _drawerController.fling(velocity: _bottomDrawerVisible ? -_kFlingVelocity : _kFlingVelocity); } double get _bottomDrawerHeight { - final RenderBox renderBox = - _bottomDrawerKey.currentContext!.findRenderObject()! as RenderBox; + final RenderBox renderBox = _bottomDrawerKey.currentContext!.findRenderObject()! as RenderBox; return renderBox.size.height; } @@ -550,40 +497,32 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { return; } - final double flingVelocity = - details.velocity.pixelsPerSecond.dy / _bottomDrawerHeight; + final double flingVelocity = details.velocity.pixelsPerSecond.dy / _bottomDrawerHeight; if (flingVelocity < 0.0) { - _drawerController.fling( - velocity: math.max(_kFlingVelocity, -flingVelocity), - ); + _drawerController.fling(velocity: math.max(_kFlingVelocity, -flingVelocity)); } else if (flingVelocity > 0.0) { _dropArrowController.forward(); - _drawerController.fling( - velocity: math.min(-_kFlingVelocity, -flingVelocity), - ); + _drawerController.fling(velocity: math.min(-_kFlingVelocity, -flingVelocity)); } else { if (_drawerController.value < 0.6) { _dropArrowController.forward(); } _drawerController.fling( - velocity: - _drawerController.value < 0.6 ? -_kFlingVelocity : _kFlingVelocity, + velocity: _drawerController.value < 0.6 ? -_kFlingVelocity : _kFlingVelocity, ); } } bool _handleScrollNotification(ScrollNotification notification) { - if (notification.depth == 0) { - if (notification is UserScrollNotification) { - switch (notification.direction) { - case ScrollDirection.forward: - _bottomAppBarController.forward(); - case ScrollDirection.reverse: - _bottomAppBarController.reverse(); - case ScrollDirection.idle: - break; - } + if (notification case UserScrollNotification(depth: 0)) { + switch (notification.direction) { + case ScrollDirection.forward: + _bottomAppBarController.forward(); + case ScrollDirection.reverse: + _bottomAppBarController.reverse(); + case ScrollDirection.idle: + break; } } return false; @@ -604,9 +543,7 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { children: [ NotificationListener( onNotification: _handleScrollNotification, - child: const _MailNavigator( - child: MailboxBody(), - ), + child: const _MailNavigator(child: MailboxBody()), ), MouseRegion( cursor: SystemMouseCursors.click, @@ -624,8 +561,7 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { child: Container( height: MediaQuery.of(context).size.height, width: MediaQuery.of(context).size.width, - color: - Theme.of(context).bottomSheetTheme.modalBackgroundColor, + color: Theme.of(context).bottomSheetTheme.modalBackgroundColor, ), ), ), @@ -662,9 +598,7 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { return _SharedAxisTransitionSwitcher( defaultChild: Scaffold( extendBody: true, - body: LayoutBuilder( - builder: _buildStack, - ), + body: LayoutBuilder(builder: _buildStack), bottomNavigationBar: Consumer( builder: (BuildContext context, EmailStore model, Widget? child) { return _AnimatedBottomAppBar( @@ -679,12 +613,10 @@ class _MobileNavState extends State<_MobileNav> with TickerProviderStateMixin { ); }, ), - floatingActionButton: _bottomDrawerVisible - ? null - : const Padding( - padding: EdgeInsetsDirectional.only(bottom: 8), - child: _ReplyFab(), - ), + floatingActionButton: + _bottomDrawerVisible + ? null + : const Padding(padding: EdgeInsetsDirectional.only(bottom: 8), child: _ReplyFab()), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, ), ); @@ -714,9 +646,10 @@ class _AnimatedBottomAppBar extends StatelessWidget { @override Widget build(BuildContext context) { - final Animation fadeOut = Tween(begin: 1, end: -1).animate( - drawerController.drive(CurveTween(curve: Easing.legacy)), - ); + final Animation fadeOut = Tween( + begin: 1, + end: -1, + ).animate(drawerController.drive(CurveTween(curve: Easing.legacy))); return Selector( selector: (BuildContext context, EmailStore emailStore) => emailStore.onMailView, @@ -745,36 +678,30 @@ class _AnimatedBottomAppBar extends StatelessWidget { children: [ const SizedBox(width: 16), RotationTransition( - turns: Tween( - begin: 0.0, - end: 1.0, - ).animate(dropArrowCurve), - child: const Icon( - Icons.arrow_drop_up, - color: ReplyColors.white50, - ), + turns: Tween(begin: 0.0, end: 1.0).animate(dropArrowCurve), + child: const Icon(Icons.arrow_drop_up, color: ReplyColors.white50), ), const SizedBox(width: 8), const _ReplyLogo(), const SizedBox(width: 10), _FadeThroughTransitionSwitcher( fillColor: Colors.transparent, - child: onMailView - ? const SizedBox(width: 48) - : FadeTransition( - opacity: fadeOut, - child: Text( - navigationDestinations - .firstWhere((_Destination destination) { - return destination.type == - selectedMailbox; - }).textLabel, - style: Theme.of(context) - .textTheme - .bodyLarge! - .copyWith(color: ReplyColors.white50), + child: + onMailView + ? const SizedBox(width: 48) + : FadeTransition( + opacity: fadeOut, + child: Text( + navigationDestinations.firstWhere(( + _Destination destination, + ) { + return destination.type == selectedMailbox; + }).textLabel, + style: Theme.of( + context, + ).textTheme.bodyLarge!.copyWith(color: ReplyColors.white50), + ), ), - ), ), ], ), @@ -782,9 +709,7 @@ class _AnimatedBottomAppBar extends StatelessWidget { Expanded( child: ColoredBox( color: Colors.transparent, - child: _BottomAppBarActionItems( - drawerVisible: bottomDrawerVisible, - ), + child: _BottomAppBarActionItems(drawerVisible: bottomDrawerVisible), ), ), ], @@ -811,89 +736,85 @@ class _BottomAppBarActionItems extends StatelessWidget { Color? starIconColor; if (onMailView) { - starIconColor = model.isCurrentEmailStarred - ? Theme.of(context).colorScheme.secondary - : ReplyColors.white50; + starIconColor = + model.isCurrentEmailStarred + ? Theme.of(context).colorScheme.secondary + : ReplyColors.white50; } return _FadeThroughTransitionSwitcher( fillColor: Colors.transparent, - child: drawerVisible - ? Align( - key: UniqueKey(), - alignment: Alignment.centerRight, - child: IconButton( - icon: const Icon(Icons.settings), - color: ReplyColors.white50, - onPressed: () {}, - ), - ) - : onMailView + child: + drawerVisible + ? Align( + key: UniqueKey(), + alignment: Alignment.centerRight, + child: IconButton( + icon: const Icon(Icons.settings), + color: ReplyColors.white50, + onPressed: () {}, + ), + ) + : onMailView ? Row( - mainAxisAlignment: MainAxisAlignment.end, - children: [ - IconButton( - key: const ValueKey('star_email_button'), - icon: ImageIcon( - const AssetImage( - '$_iconAssetLocation/twotone_star.png', - package: _assetsPackage, - ), - color: starIconColor, + mainAxisAlignment: MainAxisAlignment.end, + children: [ + IconButton( + key: const ValueKey('star_email_button'), + icon: ImageIcon( + const AssetImage( + '$_iconAssetLocation/twotone_star.png', + package: _assetsPackage, ), - onPressed: () { - final Email currentEmail = model.currentEmail; - if (model.isCurrentEmailStarred) { - model.unstarEmail(currentEmail.id); - } else { - model.starEmail(currentEmail.id); - } - if (model.selectedMailboxPage == - MailboxPageType.starred) { - mobileMailNavKey.currentState!.pop(); - model.selectedEmailId = -1; - } - }, - color: ReplyColors.white50, + color: starIconColor, ), - IconButton( - icon: const ImageIcon( - AssetImage( - '$_iconAssetLocation/twotone_delete.png', - package: _assetsPackage, - ), - ), - onPressed: () { - model.deleteEmail( - model.selectedEmailId, - ); - + onPressed: () { + final Email currentEmail = model.currentEmail; + if (model.isCurrentEmailStarred) { + model.unstarEmail(currentEmail.id); + } else { + model.starEmail(currentEmail.id); + } + if (model.selectedMailboxPage == MailboxPageType.starred) { mobileMailNavKey.currentState!.pop(); model.selectedEmailId = -1; - }, - color: ReplyColors.white50, - ), - IconButton( - icon: const Icon(Icons.more_vert), - onPressed: () {}, - color: ReplyColors.white50, - ), - ], - ) - : Align( - alignment: Alignment.centerRight, - child: IconButton( - key: const ValueKey('ReplySearch'), - icon: const Icon(Icons.search), + } + }, color: ReplyColors.white50, + ), + IconButton( + icon: const ImageIcon( + AssetImage( + '$_iconAssetLocation/twotone_delete.png', + package: _assetsPackage, + ), + ), onPressed: () { - Provider.of( - context, - listen: false, - ).onSearchPage = true; + model.deleteEmail(model.selectedEmailId); + + mobileMailNavKey.currentState!.pop(); + model.selectedEmailId = -1; }, + color: ReplyColors.white50, + ), + IconButton( + icon: const Icon(Icons.more_vert), + onPressed: () {}, + color: ReplyColors.white50, ), + ], + ) + : Align( + alignment: Alignment.centerRight, + child: IconButton( + key: const ValueKey('ReplySearch'), + icon: const Icon(Icons.search), + color: ReplyColors.white50, + onPressed: () { + Provider.of(context, listen: false).onSearchPage = true; + }, ), + ), ); }, ); @@ -930,7 +851,8 @@ class _BottomDrawerDestinations extends StatelessWidget { dropArrowController.forward(); Future.delayed( Duration( - milliseconds: (drawerController.value == 1 ? 300 : 120) * + milliseconds: + (drawerController.value == 1 ? 300 : 120) * GalleryOptions.of(context).timeDilation.toInt(), ), () { @@ -943,20 +865,19 @@ class _BottomDrawerDestinations extends StatelessWidget { child: ListTile( mouseCursor: SystemMouseCursors.click, leading: ImageIcon( - AssetImage( - destination.icon, - package: _assetsPackage, - ), - color: destination.type == selectedMailbox - ? theme.colorScheme.secondary - : theme.navigationRailTheme.unselectedLabelTextStyle!.color, + AssetImage(destination.icon, package: _assetsPackage), + color: + destination.type == selectedMailbox + ? theme.colorScheme.secondary + : theme.navigationRailTheme.unselectedLabelTextStyle!.color, ), title: Text( destination.textLabel, style: theme.textTheme.bodyMedium!.copyWith( - color: destination.type == selectedMailbox - ? theme.colorScheme.secondary - : theme.navigationRailTheme.unselectedLabelTextStyle!.color, + color: + destination.type == selectedMailbox + ? theme.colorScheme.secondary + : theme.navigationRailTheme.unselectedLabelTextStyle!.color, ), ), ), @@ -964,18 +885,12 @@ class _BottomDrawerDestinations extends StatelessWidget { ); } - return Column( - children: destinationButtons, - ); + return Column(children: destinationButtons); } } class _Destination { - const _Destination({ - required this.type, - required this.textLabel, - required this.icon, - }); + const _Destination({required this.type, required this.textLabel, required this.icon}); // Which mailbox page to display. For example, 'Starred' or 'Trash'. final MailboxPageType type; @@ -1005,10 +920,7 @@ class _BottomDrawerFolderSection extends StatelessWidget { child: ListTile( mouseCursor: SystemMouseCursors.click, leading: ImageIcon( - AssetImage( - folders[folder]!, - package: _assetsPackage, - ), + AssetImage(folders[folder]!, package: _assetsPackage), color: navigationRailTheme.unselectedLabelTextStyle!.color, ), title: Text( @@ -1025,9 +937,7 @@ class _BottomDrawerFolderSection extends StatelessWidget { } class _MailNavigator extends StatefulWidget { - const _MailNavigator({ - required this.child, - }); + const _MailNavigator({required this.child}); final Widget child; @@ -1073,10 +983,7 @@ class _ReplyLogo extends StatelessWidget { @override Widget build(BuildContext context) { return const ImageIcon( - AssetImage( - 'reply/reply_logo.png', - package: _assetsPackage, - ), + AssetImage('reply/reply_logo.png', package: _assetsPackage), size: 32, color: ReplyColors.white50, ); @@ -1092,16 +999,12 @@ class _ReplyFab extends StatefulWidget { _ReplyFabState createState() => _ReplyFabState(); } -class _ReplyFabState extends State<_ReplyFab> - with SingleTickerProviderStateMixin { +class _ReplyFabState extends State<_ReplyFab> with SingleTickerProviderStateMixin { static final UniqueKey fabKey = UniqueKey(); static const double _mobileFabDimension = 56; void onPressed() { - final bool onSearchPage = Provider.of( - context, - listen: false, - ).onSearchPage; + final bool onSearchPage = Provider.of(context, listen: false).onSearchPage; // Navigator does not have an easy way to access the current // route when using a GlobalKey to keep track of NavigatorState. // We can use [Navigator.popUntil] in order to access the current @@ -1109,16 +1012,13 @@ class _ReplyFabState extends State<_ReplyFab> // ComposePage and we are not on the SearchPage, then we can push // a ComposePage onto our navigator. We return true at the end // so nothing is popped. - desktopMailNavKey.currentState!.popUntil( - (Route route) { - final String? currentRoute = route.settings.name; - if (currentRoute != ReplyApp.composeRoute && !onSearchPage) { - desktopMailNavKey.currentState! - .restorablePushNamed(ReplyApp.composeRoute); - } - return true; - }, - ); + desktopMailNavKey.currentState!.popUntil((Route route) { + final String? currentRoute = route.settings.name; + if (currentRoute != ReplyApp.composeRoute && !onSearchPage) { + desktopMailNavKey.currentState!.restorablePushNamed(ReplyApp.composeRoute); + } + return true; + }); } @override @@ -1132,16 +1032,10 @@ class _ReplyFabState extends State<_ReplyFab> builder: (BuildContext context, bool onMailView, Widget? child) { final _FadeThroughTransitionSwitcher fabSwitcher = _FadeThroughTransitionSwitcher( fillColor: Colors.transparent, - child: onMailView - ? Icon( - Icons.reply_all, - key: fabKey, - color: Colors.black, - ) - : const Icon( - Icons.create, - color: Colors.black, - ), + child: + onMailView + ? Icon(Icons.reply_all, key: fabKey, color: Colors.black) + : const Icon(Icons.create, color: Colors.black), ); final String tooltip = onMailView ? 'Reply' : 'Compose'; @@ -1149,43 +1043,39 @@ class _ReplyFabState extends State<_ReplyFab> final Animation animation = NavigationRail.extendedAnimation(context); return Container( height: 56, - padding: EdgeInsets.symmetric( - vertical: ui.lerpDouble(0, 6, animation.value)!, - ), - child: animation.value == 0 - ? FloatingActionButton( - tooltip: tooltip, - key: const ValueKey('ReplyFab'), - onPressed: onPressed, - child: fabSwitcher, - ) - : Align( - alignment: AlignmentDirectional.centerStart, - child: FloatingActionButton.extended( + padding: EdgeInsets.symmetric(vertical: ui.lerpDouble(0, 6, animation.value)!), + child: + animation.value == 0 + ? FloatingActionButton( + tooltip: tooltip, key: const ValueKey('ReplyFab'), - label: Row( - children: [ - fabSwitcher, - SizedBox(width: 16 * animation.value), - Align( - alignment: AlignmentDirectional.centerStart, - widthFactor: animation.value, - child: Text( - tooltip.toUpperCase(), - style: Theme.of(context) - .textTheme - .headlineSmall! - .copyWith( - fontSize: 16, - color: theme.colorScheme.onSecondary, - ), + onPressed: onPressed, + child: fabSwitcher, + ) + : Align( + alignment: AlignmentDirectional.centerStart, + child: FloatingActionButton.extended( + key: const ValueKey('ReplyFab'), + label: Row( + children: [ + fabSwitcher, + SizedBox(width: 16 * animation.value), + Align( + alignment: AlignmentDirectional.centerStart, + widthFactor: animation.value, + child: Text( + tooltip.toUpperCase(), + style: Theme.of(context).textTheme.headlineSmall!.copyWith( + fontSize: 16, + color: theme.colorScheme.onSecondary, + ), + ), ), - ), - ], + ], + ), + onPressed: onPressed, ), - onPressed: onPressed, ), - ), ); } else { // TODO(x): State restoration of compose page on mobile is blocked because OpenContainer does not support restorablePush, https://github.com/flutter/gallery/issues/570. @@ -1207,9 +1097,7 @@ class _ReplyFabState extends State<_ReplyFab> child: SizedBox( height: _mobileFabDimension, width: _mobileFabDimension, - child: Center( - child: fabSwitcher, - ), + child: Center(child: fabSwitcher), ), ), ); @@ -1222,10 +1110,7 @@ class _ReplyFabState extends State<_ReplyFab> } class _FadeThroughTransitionSwitcher extends StatelessWidget { - const _FadeThroughTransitionSwitcher({ - required this.fillColor, - required this.child, - }); + const _FadeThroughTransitionSwitcher({required this.fillColor, required this.child}); final Widget child; final Color fillColor; @@ -1233,7 +1118,11 @@ class _FadeThroughTransitionSwitcher extends StatelessWidget { @override Widget build(BuildContext context) { return PageTransitionSwitcher( - transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { return FadeThroughTransition( fillColor: fillColor, animation: animation, @@ -1258,7 +1147,11 @@ class _SharedAxisTransitionSwitcher extends StatelessWidget { builder: (BuildContext context, bool onSearchPage, Widget? child) { return PageTransitionSwitcher( reverse: !onSearchPage, - transitionBuilder: (Widget child, Animation animation, Animation secondaryAnimation) { + transitionBuilder: ( + Widget child, + Animation animation, + Animation secondaryAnimation, + ) { return SharedAxisTransition( fillColor: Theme.of(context).colorScheme.background, animation: animation, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart index 7310d676d943350657e7ac406b8890e6e5f89f47..9a8c23e9cf3c3f1810dd201f0966facbd588fca0 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/app.dart @@ -28,9 +28,18 @@ class ReplyApp extends StatefulWidget { static Route createComposeRoute(RouteSettings settings) { return PageRouteBuilder( - pageBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation) => - const ComposePage(), - transitionsBuilder: (BuildContext context, Animation animation, Animation secondaryAnimation, Widget child) { + pageBuilder: + ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) => const ComposePage(), + transitionsBuilder: ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + Widget child, + ) { return FadeThroughTransition( fillColor: Theme.of(context).cardColor, animation: animation, @@ -66,18 +75,17 @@ class _ReplyAppState extends State with RestorationMixin { @override Widget build(BuildContext context) { final ThemeMode galleryThemeMode = GalleryOptions.of(context).themeMode; - final bool isDark = galleryThemeMode == ThemeMode.system - ? Theme.of(context).brightness == Brightness.dark - : galleryThemeMode == ThemeMode.dark; + final bool isDark = + galleryThemeMode == ThemeMode.system + ? Theme.brightnessOf(context) == Brightness.dark + : galleryThemeMode == ThemeMode.dark; final ThemeData replyTheme = isDark ? _buildReplyDarkTheme(context) : _buildReplyLightTheme(context); return MultiProvider( providers: [ - ChangeNotifierProvider.value( - value: _appState.value, - ), + ChangeNotifierProvider.value(value: _appState.value), ], child: MaterialApp( navigatorKey: rootNavKey, @@ -89,14 +97,15 @@ class _ReplyAppState extends State with RestorationMixin { supportedLocales: GalleryLocalizations.supportedLocales, locale: GalleryOptions.of(context).locale, initialRoute: ReplyApp.homeRoute, - onGenerateRoute: (RouteSettings settings) => switch (settings.name) { - ReplyApp.homeRoute => MaterialPageRoute( - builder: (BuildContext context) => const AdaptiveNav(), - settings: settings, - ), - ReplyApp.composeRoute => ReplyApp.createComposeRoute(settings), - _ => null, - }, + onGenerateRoute: + (RouteSettings settings) => switch (settings.name) { + ReplyApp.homeRoute => MaterialPageRoute( + builder: (BuildContext context) => const AdaptiveNav(), + settings: settings, + ), + ReplyApp.composeRoute => ReplyApp.createComposeRoute(settings), + _ => null, + }, ), ); } @@ -120,13 +129,9 @@ class _RestorableEmailState extends RestorableListenable { appState.selectedMailboxPage = MailboxPageType.values[mailboxPageIndex]; final List starredEmailIdsList = appData['starredEmailIds'] as List; - appState.starredEmailIds = { - ...starredEmailIdsList.map((dynamic id) => id as int), - }; + appState.starredEmailIds = {...starredEmailIdsList.map((dynamic id) => id as int)}; final List trashEmailIdsList = appData['trashEmailIds'] as List; - appState.trashEmailIds = { - ...trashEmailIdsList.map((dynamic id) => id as int), - }; + appState.trashEmailIds = {...trashEmailIdsList.map((dynamic id) => id as int)}; return appState; } @@ -145,7 +150,7 @@ class _RestorableEmailState extends RestorableListenable { } ThemeData _buildReplyLightTheme(BuildContext context) { - final ThemeData base = ThemeData.light(); + final ThemeData base = ThemeData(); return base.copyWith( bottomAppBarTheme: const BottomAppBarTheme(color: ReplyColors.blue700), bottomSheetTheme: BottomSheetThemeData( @@ -155,15 +160,13 @@ ThemeData _buildReplyLightTheme(BuildContext context) { navigationRailTheme: NavigationRailThemeData( backgroundColor: ReplyColors.blue700, selectedIconTheme: const IconThemeData(color: ReplyColors.orange500), - selectedLabelTextStyle: - GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( - color: ReplyColors.orange500, - ), + selectedLabelTextStyle: GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.orange500, + ), unselectedIconTheme: const IconThemeData(color: ReplyColors.blue200), - unselectedLabelTextStyle: - GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( - color: ReplyColors.blue200, - ), + unselectedLabelTextStyle: GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.blue200, + ), ), canvasColor: ReplyColors.white50, cardColor: ReplyColors.white50, @@ -189,9 +192,7 @@ ThemeData _buildReplyLightTheme(BuildContext context) { ThemeData _buildReplyDarkTheme(BuildContext context) { final ThemeData base = ThemeData.dark(); return base.copyWith( - bottomAppBarTheme: const BottomAppBarTheme( - color: ReplyColors.darkBottomAppBarBackground, - ), + bottomAppBarTheme: const BottomAppBarTheme(color: ReplyColors.darkBottomAppBarBackground), bottomSheetTheme: BottomSheetThemeData( backgroundColor: ReplyColors.darkDrawerBackground, modalBackgroundColor: Colors.black.withOpacity(0.7), @@ -199,15 +200,13 @@ ThemeData _buildReplyDarkTheme(BuildContext context) { navigationRailTheme: NavigationRailThemeData( backgroundColor: ReplyColors.darkBottomAppBarBackground, selectedIconTheme: const IconThemeData(color: ReplyColors.orange300), - selectedLabelTextStyle: - GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( - color: ReplyColors.orange300, - ), + selectedLabelTextStyle: GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.orange300, + ), unselectedIconTheme: const IconThemeData(color: ReplyColors.greyLabel), - unselectedLabelTextStyle: - GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( - color: ReplyColors.greyLabel, - ), + unselectedLabelTextStyle: GoogleFonts.workSansTextTheme().headlineSmall!.copyWith( + color: ReplyColors.greyLabel, + ), ), canvasColor: ReplyColors.black900, cardColor: ReplyColors.darkCardBackground, @@ -229,11 +228,7 @@ ThemeData _buildReplyDarkTheme(BuildContext context) { ); } -ChipThemeData _buildChipTheme( - Color primaryColor, - Color chipBackground, - Brightness brightness, -) { +ChipThemeData _buildChipTheme(Color primaryColor, Color chipBackground, Brightness brightness) { return ChipThemeData( backgroundColor: primaryColor.withOpacity(0.12), disabledColor: primaryColor.withOpacity(0.87), @@ -242,10 +237,8 @@ ChipThemeData _buildChipTheme( padding: const EdgeInsets.all(4), shape: const StadiumBorder(), labelStyle: GoogleFonts.workSansTextTheme().bodyMedium!.copyWith( - color: brightness == Brightness.dark - ? ReplyColors.white50 - : ReplyColors.black900, - ), + color: brightness == Brightness.dark ? ReplyColors.white50 : ReplyColors.black900, + ), secondaryLabelStyle: GoogleFonts.workSansTextTheme().bodyMedium, brightness: brightness, ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart index e6b34e7ab3c0f700732dbf776d3668c8d5340517..0225592d65f28ef050381bef9eea5fbd000f7dc5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/bottom_drawer.dart @@ -40,20 +40,14 @@ class BottomDrawer extends StatelessWidget { const SizedBox(height: 28), leading, const SizedBox(height: 8), - const Divider( - color: ReplyColors.blue200, - thickness: 0.25, - indent: 18, - endIndent: 160, - ), + const Divider(color: ReplyColors.blue200, thickness: 0.25, indent: 18, endIndent: 160), const SizedBox(height: 16), Padding( padding: const EdgeInsetsDirectional.only(start: 18), child: Text( 'FOLDERS', style: theme.textTheme.bodySmall!.copyWith( - color: - theme.navigationRailTheme.unselectedLabelTextStyle!.color, + color: theme.navigationRailTheme.unselectedLabelTextStyle!.color, ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart index ad93d9b09e2e7e02cece6643f823a814370df8e5..38b4e0ba2ecf695f84792fe65970ea5559ca49c8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/compose_page.dart @@ -39,27 +39,18 @@ class ComposePage extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: [ - _SubjectRow( - subject: subject, - ), + _SubjectRow(subject: subject), const _SectionDivider(), - const _SenderAddressRow( - senderEmail: senderEmail, - ), + const _SenderAddressRow(senderEmail: senderEmail), const _SectionDivider(), - _RecipientsRow( - recipients: recipient, - avatar: recipientAvatar, - ), + _RecipientsRow(recipients: recipient, avatar: recipientAvatar), const _SectionDivider(), Padding( padding: const EdgeInsets.all(12), child: TextField( minLines: 6, maxLines: 20, - decoration: const InputDecoration.collapsed( - hintText: 'New Message...', - ), + decoration: const InputDecoration.collapsed(hintText: 'New Message...'), style: Theme.of(context).textTheme.bodyMedium, ), ), @@ -109,10 +100,7 @@ class _SubjectRowState extends State<_SubjectRow> { IconButton( key: const ValueKey('ReplyExit'), onPressed: () => Navigator.of(context).pop(), - icon: Icon( - Icons.close, - color: colorScheme.onSurface, - ), + icon: Icon(Icons.close, color: colorScheme.onSurface), ), Expanded( child: TextField( @@ -130,10 +118,7 @@ class _SubjectRowState extends State<_SubjectRow> { onPressed: () => Navigator.of(context).pop(), icon: IconButton( icon: ImageIcon( - const AssetImage( - 'reply/icons/twotone_send.png', - package: 'flutter_gallery_assets', - ), + const AssetImage('reply/icons/twotone_send.png', package: 'flutter_gallery_assets'), color: colorScheme.onSurface, ), onPressed: () => Navigator.of(context).pop(), @@ -167,10 +152,7 @@ class __SenderAddressRowState extends State<_SenderAddressRow> { Widget build(BuildContext context) { final ThemeData theme = Theme.of(context); final TextTheme textTheme = theme.textTheme; - final List accounts = [ - 'flutterfan@gmail.com', - 'materialfan@gmail.com', - ]; + final List accounts = ['flutterfan@gmail.com', 'materialfan@gmail.com']; return PopupMenuButton( padding: EdgeInsets.zero, @@ -179,41 +161,23 @@ class __SenderAddressRowState extends State<_SenderAddressRow> { senderEmail = email; }); }, - itemBuilder: (BuildContext context) => >[ - PopupMenuItem( - value: accounts[0], - child: Text( - accounts[0], - style: textTheme.bodyMedium, - ), - ), - PopupMenuItem( - value: accounts[1], - child: Text( - accounts[1], - style: textTheme.bodyMedium, - ), - ), - ], + itemBuilder: + (BuildContext context) => >[ + PopupMenuItem( + value: accounts[0], + child: Text(accounts[0], style: textTheme.bodyMedium), + ), + PopupMenuItem( + value: accounts[1], + child: Text(accounts[1], style: textTheme.bodyMedium), + ), + ], child: Padding( - padding: const EdgeInsets.only( - left: 12, - top: 16, - right: 10, - bottom: 10, - ), + padding: const EdgeInsets.only(left: 12, top: 16, right: 10, bottom: 10), child: Row( children: [ - Expanded( - child: Text( - senderEmail, - style: textTheme.bodyMedium, - ), - ), - Icon( - Icons.arrow_drop_down, - color: theme.colorScheme.onSurface, - ), + Expanded(child: Text(senderEmail, style: textTheme.bodyMedium)), + Icon(Icons.arrow_drop_down, color: theme.colorScheme.onSurface), ], ), ), @@ -222,10 +186,7 @@ class __SenderAddressRowState extends State<_SenderAddressRow> { } class _RecipientsRow extends StatelessWidget { - const _RecipientsRow({ - required this.recipients, - required this.avatar, - }); + const _RecipientsRow({required this.recipients, required this.avatar}); final String recipients; final String avatar; @@ -240,18 +201,12 @@ class _RecipientsRow extends StatelessWidget { child: Wrap( children: [ Chip( - backgroundColor: - Theme.of(context).chipTheme.secondarySelectedColor, + backgroundColor: Theme.of(context).chipTheme.secondarySelectedColor, padding: EdgeInsets.zero, avatar: CircleAvatar( - backgroundImage: AssetImage( - avatar, - package: 'flutter_gallery_assets', - ), - ), - label: Text( - recipients, + backgroundImage: AssetImage(avatar, package: 'flutter_gallery_assets'), ), + label: Text(recipients), ), ], ), @@ -273,10 +228,6 @@ class _SectionDivider extends StatelessWidget { @override Widget build(BuildContext context) { - return const Divider( - thickness: 1.1, - indent: 10, - endIndent: 10, - ); + return const Divider(thickness: 1.1, indent: 10, endIndent: 10); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart index 86058ca5556c8b0a0028db8c5b506e8b5a8d21cd..9e958b3a15a3dcc697ee4d673b21d4e91d98a209 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_card_preview.dart @@ -45,9 +45,7 @@ class MailPreviewCard extends StatelessWidget { return MailViewPage(id: id, email: email); }, openColor: theme.cardColor, - closedShape: const RoundedRectangleBorder( - - ), + closedShape: const RoundedRectangleBorder(), closedElevation: 0, closedColor: theme.cardColor, closedBuilder: (BuildContext context, void Function() openContainer) { @@ -106,12 +104,8 @@ class MailPreviewCard extends StatelessWidget { }, secondaryBackground: _DismissibleContainer( icon: 'twotone_star', - backgroundColor: isStarred - ? colorScheme.secondary - : theme.scaffoldBackgroundColor, - iconColor: isStarred - ? colorScheme.onSecondary - : colorScheme.onBackground, + backgroundColor: isStarred ? colorScheme.secondary : theme.scaffoldBackgroundColor, + iconColor: isStarred ? colorScheme.onSecondary : colorScheme.onBackground, alignment: Alignment.centerRight, padding: const EdgeInsetsDirectional.only(end: 20), ), @@ -149,10 +143,7 @@ class _DismissibleContainer extends StatelessWidget { child: Material( color: Colors.transparent, child: ImageIcon( - AssetImage( - 'reply/icons/$icon.png', - package: 'flutter_gallery_assets', - ), + AssetImage('reply/icons/$icon.png', package: 'flutter_gallery_assets'), size: 36, color: iconColor, ), @@ -179,17 +170,11 @@ class _MailPreview extends StatelessWidget { @override Widget build(BuildContext context) { final TextTheme textTheme = Theme.of(context).textTheme; - final EmailStore emailStore = Provider.of( - context, - listen: false, - ); + final EmailStore emailStore = Provider.of(context, listen: false); return InkWell( onTap: () { - Provider.of( - context, - listen: false, - ).selectedEmailId = id; + Provider.of(context, listen: false).selectedEmailId = id; onTap(); }, child: LayoutBuilder( @@ -210,10 +195,7 @@ class _MailPreview extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ - Text( - '${email.sender} - ${email.time}', - style: textTheme.bodySmall, - ), + Text('${email.sender} - ${email.time}', style: textTheme.bodySmall), const SizedBox(height: 4), Text(email.subject, style: textTheme.headlineSmall), const SizedBox(height: 16), @@ -229,9 +211,7 @@ class _MailPreview extends StatelessWidget { ], ), Padding( - padding: const EdgeInsetsDirectional.only( - end: 20, - ), + padding: const EdgeInsetsDirectional.only(end: 20), child: Text( email.message, overflow: TextOverflow.ellipsis, @@ -241,12 +221,7 @@ class _MailPreview extends StatelessWidget { ), if (email.containsPictures) ...[ const Flexible( - child: Column( - children: [ - SizedBox(height: 20), - _PicturePreview(), - ], - ), + child: Column(children: [SizedBox(height: 20), _PicturePreview()]), ), ], ], @@ -313,42 +288,29 @@ class _MailPreviewActionBar extends StatelessWidget { @override Widget build(BuildContext context) { - final bool isDark = Theme.of(context).brightness == Brightness.dark; + final bool isDark = Theme.brightnessOf(context) == Brightness.dark; final Color color = isDark ? ReplyColors.white50 : ReplyColors.blue600; final bool isDesktop = isDisplayDesktop(context); - final Color starredIconColor = - isStarred ? Theme.of(context).colorScheme.secondary : color; + final Color starredIconColor = isStarred ? Theme.of(context).colorScheme.secondary : color; return Row( children: [ if (isDesktop) ...[ IconButton( icon: ImageIcon( - const AssetImage( - '$_iconAssetLocation/twotone_star.png', - package: _assetsPackage, - ), + const AssetImage('$_iconAssetLocation/twotone_star.png', package: _assetsPackage), color: starredIconColor, ), onPressed: onStar, ), IconButton( icon: ImageIcon( - const AssetImage( - '$_iconAssetLocation/twotone_delete.png', - package: _assetsPackage, - ), + const AssetImage('$_iconAssetLocation/twotone_delete.png', package: _assetsPackage), color: color, ), onPressed: onDelete, ), - IconButton( - icon: Icon( - Icons.more_vert, - color: color, - ), - onPressed: () {}, - ), + IconButton(icon: Icon(Icons.more_vert, color: color), onPressed: () {}), const SizedBox(width: 12), ], ProfileAvatar(avatar: avatar), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart index 914394e81375c6c1abbc2fda27ec1958c03e0263..8c1edee719eb0a4388da131aa52b9903842b2e66 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mail_view_page.dart @@ -11,11 +11,7 @@ import 'model/email_store.dart'; import 'profile_avatar.dart'; class MailViewPage extends StatelessWidget { - const MailViewPage({ - super.key, - required this.id, - required this.email, - }); + const MailViewPage({super.key, required this.id, required this.email}); final int id; final Email email; @@ -30,11 +26,7 @@ class MailViewPage extends StatelessWidget { child: Material( color: Theme.of(context).cardColor, child: SingleChildScrollView( - padding: const EdgeInsetsDirectional.only( - top: 42, - start: 20, - end: 20, - ), + padding: const EdgeInsetsDirectional.only(top: 42, start: 20, end: 20), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -80,10 +72,7 @@ class _MailViewHeader extends StatelessWidget { key: const ValueKey('ReplyExit'), icon: const Icon(Icons.keyboard_arrow_down), onPressed: () { - Provider.of( - context, - listen: false, - ).selectedEmailId = -1; + Provider.of(context, listen: false).selectedEmailId = -1; Navigator.pop(context); }, splashRadius: 20, @@ -104,10 +93,7 @@ class _MailViewHeader extends StatelessWidget { SelectableText( 'To ${email.recipients},', style: textTheme.bodySmall!.copyWith( - color: Theme.of(context) - .navigationRailTheme - .unselectedLabelTextStyle! - .color, + color: Theme.of(context).navigationRailTheme.unselectedLabelTextStyle!.color, ), ), ], diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart index 2e8316ceb7795bae874da58097f9752d09a05e4c..f2a3a0d5de54c6db2bcf26a0072dc9e0f6a968eb 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/mailbox_body.dart @@ -17,31 +17,33 @@ class MailboxBody extends StatelessWidget { Widget build(BuildContext context) { final bool isDesktop = isDisplayDesktop(context); final bool isTablet = isDisplaySmallDesktop(context); - final double startPadding = isTablet - ? 60.0 - : isDesktop + final double startPadding = + isTablet + ? 60.0 + : isDesktop ? 120.0 : 4.0; - final double endPadding = isTablet - ? 30.0 - : isDesktop + final double endPadding = + isTablet + ? 30.0 + : isDesktop ? 60.0 : 4.0; return Consumer( builder: (BuildContext context, EmailStore model, Widget? child) { final MailboxPageType destination = model.selectedMailboxPage; - final String destinationString = destination - .toString() - .substring(destination.toString().indexOf('.') + 1); + final String destinationString = destination.toString().substring( + destination.toString().indexOf('.') + 1, + ); final List emails = switch (destination) { - MailboxPageType.inbox => model.inboxEmails, - MailboxPageType.sent => model.outboxEmails, + MailboxPageType.inbox => model.inboxEmails, + MailboxPageType.sent => model.outboxEmails, MailboxPageType.starred => model.starredEmails, - MailboxPageType.trash => model.trashEmails, - MailboxPageType.spam => model.spamEmails, - MailboxPageType.drafts => model.draftEmails, + MailboxPageType.trash => model.trashEmails, + MailboxPageType.spam => model.spamEmails, + MailboxPageType.drafts => model.draftEmails, }; return SafeArea( @@ -50,39 +52,40 @@ class MailboxBody extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Expanded( - child: emails.isEmpty - ? Center(child: Text('Empty in $destinationString')) - : ListView.separated( - itemCount: emails.length, - padding: EdgeInsetsDirectional.only( - start: startPadding, - end: endPadding, - top: isDesktop ? 28 : 0, - bottom: kToolbarHeight, + child: + emails.isEmpty + ? Center(child: Text('Empty in $destinationString')) + : ListView.separated( + itemCount: emails.length, + padding: EdgeInsetsDirectional.only( + start: startPadding, + end: endPadding, + top: isDesktop ? 28 : 0, + bottom: kToolbarHeight, + ), + primary: false, + separatorBuilder: + (BuildContext context, int index) => const SizedBox(height: 4), + itemBuilder: (BuildContext context, int index) { + final Email email = emails[index]; + return MailPreviewCard( + id: email.id, + email: email, + isStarred: model.isEmailStarred(email.id), + onDelete: () => model.deleteEmail(email.id), + onStar: () { + final int emailId = email.id; + if (model.isEmailStarred(emailId)) { + model.unstarEmail(emailId); + } else { + model.starEmail(emailId); + } + }, + onStarredMailbox: + model.selectedMailboxPage == MailboxPageType.starred, + ); + }, ), - primary: false, - separatorBuilder: (BuildContext context, int index) => - const SizedBox(height: 4), - itemBuilder: (BuildContext context, int index) { - final Email email = emails[index]; - return MailPreviewCard( - id: email.id, - email: email, - isStarred: model.isEmailStarred(email.id), - onDelete: () => model.deleteEmail(email.id), - onStar: () { - final int emailId = email.id; - if (model.isEmailStarred(emailId)) { - model.unstarEmail(emailId); - } else { - model.starEmail(emailId); - } - }, - onStarredMailbox: model.selectedMailboxPage == - MailboxPageType.starred, - ); - }, - ), ), if (isDesktop) ...[ Padding( @@ -93,17 +96,14 @@ class MailboxBody extends StatelessWidget { key: const ValueKey('ReplySearch'), icon: const Icon(Icons.search), onPressed: () { - Provider.of( - context, - listen: false, - ).onSearchPage = true; + Provider.of(context, listen: false).onSearchPage = true; }, ), SizedBox(width: isTablet ? 30 : 60), ], ), ), - ] + ], ], ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart index 5200fc6bf03fa5143d16ff0819836b82c2bf4355..20a665bb46108cb01f363dc79d6cdcf4f025b3d8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_model.dart @@ -41,17 +41,7 @@ class InboxEmail extends Email { } // The different mailbox pages that the Reply app contains. -enum MailboxPageType { - inbox, - starred, - sent, - trash, - spam, - drafts, -} +enum MailboxPageType { inbox, starred, sent, trash, spam, drafts } // Different types of mail that can be sent to the inbox. -enum InboxType { - normal, - spam, -} +enum InboxType { normal, spam } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart index 9afdb347265559cf8cbcc198ab8f90362d95ae82..0c090899078b7aedc7caf9520384c80118ae14d5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/model/email_store.dart @@ -15,7 +15,8 @@ class EmailStore with ChangeNotifier { sender: 'Google Express', time: '15 minutes ago', subject: 'Package shipped!', - message: 'Cucumber Mask Facial has shipped.\n\n' + message: + 'Cucumber Mask Facial has shipped.\n\n' "Keep an eye out for a package to arrive between this Thursday and next Tuesday. If for any reason you don't receive your package before the end of next week, please reach out to us for details on your shipment.\n\n" 'As always, thank you for shopping with us and we hope you love our specially formulated Cucumber Mask!', avatar: '$_avatarsLocation/avatar_express.png', @@ -144,24 +145,20 @@ class EmailStore with ChangeNotifier { sender: 'Sandra Adams', time: '2 hrs ago', subject: '(No subject)', - message: 'Hey,\n\n' + message: + 'Hey,\n\n' 'Wanted to email and see what you thought of', avatar: '$_avatarsLocation/avatar_2.jpg', recipients: 'Jeff', ), ]; - List get _allEmails => [ - ..._inbox, - ..._outbox, - ..._drafts, - ]; + List get _allEmails => [..._inbox, ..._outbox, ..._drafts]; List get inboxEmails { return _inbox.where((Email email) { if (email is InboxEmail) { - return email.inboxType == InboxType.normal && - !trashEmailIds.contains(email.id); + return email.inboxType == InboxType.normal && !trashEmailIds.contains(email.id); } return false; }).toList(); @@ -170,15 +167,13 @@ class EmailStore with ChangeNotifier { List get spamEmails { return _inbox.where((Email email) { if (email is InboxEmail) { - return email.inboxType == InboxType.spam && - !trashEmailIds.contains(email.id); + return email.inboxType == InboxType.spam && !trashEmailIds.contains(email.id); } return false; }).toList(); } - Email get currentEmail => - _allEmails.firstWhere((Email email) => email.id == _selectedEmailId); + Email get currentEmail => _allEmails.firstWhere((Email email) => email.id == _selectedEmailId); List get outboxEmails => _outbox.where((Email email) => !trashEmailIds.contains(email.id)).toList(); @@ -194,9 +189,7 @@ class EmailStore with ChangeNotifier { bool get isCurrentEmailStarred => starredEmailIds.contains(currentEmail.id); List get starredEmails { - return _allEmails - .where((Email email) => starredEmailIds.contains(email.id)) - .toList(); + return _allEmails.where((Email email) => starredEmailIds.contains(email.id)).toList(); } void starEmail(int id) { @@ -212,9 +205,7 @@ class EmailStore with ChangeNotifier { Set trashEmailIds = {7, 8}; List get trashEmails { - return _allEmails - .where((Email email) => trashEmailIds.contains(email.id)) - .toList(); + return _allEmails.where((Email email) => trashEmailIds.contains(email.id)).toList(); } void deleteEmail(int id) { diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart index 8be190ca8c8262887d465bc11dc0d33fa4b5ccf4..b0ddc7e61751ea583e90478429123a2a424c6efa 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/profile_avatar.dart @@ -5,11 +5,7 @@ import 'package:flutter/material.dart'; class ProfileAvatar extends StatelessWidget { - const ProfileAvatar({ - super.key, - required this.avatar, - this.radius = 20, - }); + const ProfileAvatar({super.key, required this.avatar, this.radius = 20}); final String avatar; final double radius; diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart index 0938d3376df76b2c84499fccbd4efaa3ac6cf8fc..7c0a9625f7f71705b381a6bdb9c15ad29232c78f 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/search_page.dart @@ -26,23 +26,15 @@ class SearchPage extends StatelessWidget { BackButton( key: const ValueKey('ReplyExit'), onPressed: () { - Provider.of( - context, - listen: false, - ).onSearchPage = false; + Provider.of(context, listen: false).onSearchPage = false; }, ), const Expanded( child: TextField( - decoration: InputDecoration.collapsed( - hintText: 'Search email', - ), + decoration: InputDecoration.collapsed(hintText: 'Search email'), ), ), - IconButton( - icon: const Icon(Icons.mic), - onPressed: () {}, - ) + IconButton(icon: const Icon(Icons.mic), onPressed: () {}), ], ), ), @@ -53,28 +45,19 @@ class SearchPage extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ _SectionHeader(title: 'YESTERDAY'), - _SearchHistoryTile( - search: '481 Van Brunt Street', - address: 'Brooklyn, NY', - ), + _SearchHistoryTile(search: '481 Van Brunt Street', address: 'Brooklyn, NY'), _SearchHistoryTile( icon: Icons.home, search: 'Home', address: '199 Pacific Street, Brooklyn, NY', ), _SectionHeader(title: 'THIS WEEK'), - _SearchHistoryTile( - search: 'BEP GA', - address: 'Forsyth Street, New York, NY', - ), + _SearchHistoryTile(search: 'BEP GA', address: 'Forsyth Street, New York, NY'), _SearchHistoryTile( search: 'Sushi Nakazawa', address: 'Commerce Street, New York, NY', ), - _SearchHistoryTile( - search: 'IFC Center', - address: '6th Avenue, New York, NY', - ), + _SearchHistoryTile(search: 'IFC Center', address: '6th Avenue, New York, NY'), ], ), ), @@ -95,15 +78,8 @@ class _SectionHeader extends StatelessWidget { @override Widget build(BuildContext context) { return Padding( - padding: const EdgeInsetsDirectional.only( - start: 16, - top: 16, - bottom: 16, - ), - child: Text( - title, - style: Theme.of(context).textTheme.labelLarge, - ), + padding: const EdgeInsetsDirectional.only(start: 16, top: 16, bottom: 16), + child: Text(title, style: Theme.of(context).textTheme.labelLarge), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart index fda6f898db3d11eb06439b44a9ed6da1da8eafea..5070f037818c163c365f55b5c1bada916e11c068 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/reply/waterfall_notched_rectangle.dart @@ -83,11 +83,7 @@ class WaterfallNotchedRectangle extends NotchedShape { ..moveTo(host.left, host.top) ..lineTo(p[0]!.dx, p[0]!.dy) ..quadraticBezierTo(p[1]!.dx, p[1]!.dy, p[2]!.dx, p[2]!.dy) - ..arcToPoint( - p[3]!, - radius: Radius.circular(notchRadius), - clockwise: false, - ) + ..arcToPoint(p[3]!, radius: Radius.circular(notchRadius), clockwise: false) ..quadraticBezierTo(p[4]!.dx, p[4]!.dy, p[5]!.dx, p[5]!.dy) ..lineTo(host.right, host.top) ..lineTo(host.right, host.bottom) diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart index 7d07c2aba4ab7d696b3e9f9e3f02f96a9a27448d..c07adec545e6677becb776863db613ff616726e8 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/app.dart @@ -31,8 +31,7 @@ class ShrineApp extends StatefulWidget { State createState() => _ShrineAppState(); } -class _ShrineAppState extends State - with TickerProviderStateMixin, RestorationMixin { +class _ShrineAppState extends State with TickerProviderStateMixin, RestorationMixin { // Controller to coordinate both the opening/closing of backdrop and sliding // of expanding bottom sheet late AnimationController _controller; @@ -52,10 +51,7 @@ class _ShrineAppState extends State void restoreState(RestorationBucket? oldBucket, bool initialRestore) { registerForRestoration(_model, 'app_state_model'); registerForRestoration(_tabIndex, 'tab_index'); - registerForRestoration( - _expandingTabIndex, - 'expanding_tab_index', - ); + registerForRestoration(_expandingTabIndex, 'expanding_tab_index'); _controller.value = _tabIndex.value; _expandingController.value = _expandingTabIndex.value; } @@ -108,10 +104,7 @@ class _ShrineAppState extends State } Widget desktopBackdrop() { - return const DesktopBackdrop( - frontLayer: ProductPage(), - backLayer: CategoryMenuPage(), - ); + return const DesktopBackdrop(frontLayer: ProductPage(), backLayer: CategoryMenuPage()); } // Closes the bottom sheet if it is open. @@ -132,16 +125,15 @@ class _ShrineAppState extends State menuController: _controller, cartController: _expandingController, child: LayoutBuilder( - builder: (BuildContext context, BoxConstraints constraints) => HomePage( - backdrop: isDisplayDesktop(context) - ? desktopBackdrop() - : mobileBackdrop(), - scrim: Scrim(controller: _expandingController), - expandingBottomSheet: ExpandingBottomSheet( - hideController: _controller, - expandingController: _expandingController, - ), - ), + builder: + (BuildContext context, BoxConstraints constraints) => HomePage( + backdrop: isDisplayDesktop(context) ? desktopBackdrop() : mobileBackdrop(), + scrim: Scrim(controller: _expandingController), + expandingBottomSheet: ExpandingBottomSheet( + hideController: _controller, + expandingController: _expandingController, + ), + ), ), ), ); @@ -156,8 +148,7 @@ class _ShrineAppState extends State // ScrollBehavior. This overrides that. All vertical scrollables in // the gallery need to be audited before enabling this feature, // see https://github.com/flutter/gallery/issues/541 - scrollBehavior: - const MaterialScrollBehavior().copyWith(scrollbars: false), + scrollBehavior: const MaterialScrollBehavior().copyWith(scrollbars: false), restorationScopeId: 'shrineApp', title: 'Shrine', debugShowCheckedModeBanner: false, @@ -166,9 +157,7 @@ class _ShrineAppState extends State ShrineApp.loginRoute: (BuildContext context) => const LoginPage(), ShrineApp.homeRoute: (BuildContext context) => home, }, - theme: shrineTheme.copyWith( - platform: GalleryOptions.of(context).platform, - ), + theme: shrineTheme.copyWith(platform: GalleryOptions.of(context).platform), // L10n settings. localizationsDelegates: GalleryLocalizations.localizationsDelegates, supportedLocales: GalleryLocalizations.supportedLocales, diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart index 4735de88ada554e9f1c2507ce0716e5ea53674fd..684084b43ab215162c62df9bf8518cc7bdba2787 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/backdrop.dart @@ -16,10 +16,7 @@ const double _peakVelocityTime = 0.248210; const double _peakVelocityProgress = 0.379146; class _FrontLayer extends StatelessWidget { - const _FrontLayer({ - this.onTap, - required this.child, - }); + const _FrontLayer({this.onTap, required this.child}); final VoidCallback? onTap; final Widget child; @@ -29,33 +26,30 @@ class _FrontLayer extends StatelessWidget { // An area at the top of the product page. // When the menu page is shown, tapping this area will close the menu // page and reveal the product page. - final Widget pageTopArea = Container( - height: 40, - alignment: AlignmentDirectional.centerStart, - ); + final Widget pageTopArea = Container(height: 40, alignment: AlignmentDirectional.centerStart); return Material( elevation: 16, shape: const BeveledRectangleBorder( - borderRadius: - BorderRadiusDirectional.only(topStart: Radius.circular(46)), + borderRadius: BorderRadiusDirectional.only(topStart: Radius.circular(46)), ), child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - if (onTap != null) MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - behavior: HitTestBehavior.opaque, - excludeFromSemantics: - true, // Because there is already a "Close Menu" button on screen. - onTap: onTap, - child: pageTopArea, - ), - ) else pageTopArea, - Expanded( - child: child, - ), + if (onTap != null) + MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + behavior: HitTestBehavior.opaque, + excludeFromSemantics: + true, // Because there is already a "Close Menu" button on screen. + onTap: onTap, + child: pageTopArea, + ), + ) + else + pageTopArea, + Expanded(child: child), ], ), ); @@ -81,24 +75,25 @@ class _BackdropTitle extends AnimatedWidget { curve: const Interval(0, 0.78), ); - final int textDirectionScalar = - Directionality.of(context) == TextDirection.ltr ? 1 : -1; + final int textDirectionScalar = Directionality.of(context) == TextDirection.ltr ? 1 : -1; - const ImageIcon slantedMenuIcon = - ImageIcon(AssetImage('packages/shrine_images/slanted_menu.png')); + const ImageIcon slantedMenuIcon = ImageIcon( + AssetImage('packages/shrine_images/slanted_menu.png'), + ); final Widget directionalSlantedMenuIcon = Directionality.of(context) == TextDirection.ltr ? slantedMenuIcon : Transform( - alignment: Alignment.center, - transform: Matrix4.rotationY(pi), - child: slantedMenuIcon, - ); - - final String? menuButtonTooltip = animation.isCompleted - ? GalleryLocalizations.of(context)!.shrineTooltipOpenMenu - : animation.isDismissed + alignment: Alignment.center, + transform: Matrix4.rotationY(pi), + child: slantedMenuIcon, + ); + + final String? menuButtonTooltip = + animation.isCompleted + ? GalleryLocalizations.of(context)!.shrineTooltipOpenMenu + : animation.isDismissed ? GalleryLocalizations.of(context)!.shrineTooltipCloseMenu : null; @@ -106,67 +101,64 @@ class _BackdropTitle extends AnimatedWidget { style: Theme.of(context).primaryTextTheme.titleLarge!, softWrap: false, overflow: TextOverflow.ellipsis, - child: Row(children: [ - // branded icon - SizedBox( - width: 72, - child: Semantics( - container: true, - child: IconButton( - padding: const EdgeInsetsDirectional.only(end: 8), - onPressed: onPress, - tooltip: menuButtonTooltip, - icon: Stack(children: [ - Opacity( - opacity: animation.value, - child: directionalSlantedMenuIcon, + child: Row( + children: [ + // branded icon + SizedBox( + width: 72, + child: Semantics( + container: true, + child: IconButton( + padding: const EdgeInsetsDirectional.only(end: 8), + onPressed: onPress, + tooltip: menuButtonTooltip, + icon: Stack( + children: [ + Opacity(opacity: animation.value, child: directionalSlantedMenuIcon), + FractionalTranslation( + translation: Tween( + begin: Offset.zero, + end: Offset(1.0 * textDirectionScalar, 0.0), + ).evaluate(animation), + child: const ImageIcon(AssetImage('packages/shrine_images/diamond.png')), + ), + ], ), - FractionalTranslation( + ), + ), + ), + // Here, we do a custom cross fade between backTitle and frontTitle. + // This makes a smooth animation between the two texts. + Stack( + children: [ + Opacity( + opacity: + CurvedAnimation( + parent: ReverseAnimation(animation), + curve: const Interval(0.5, 1), + ).value, + child: FractionalTranslation( translation: Tween( begin: Offset.zero, - end: Offset(1.0 * textDirectionScalar, 0.0), + end: Offset(0.5 * textDirectionScalar, 0), ).evaluate(animation), - child: const ImageIcon( - AssetImage('packages/shrine_images/diamond.png'), - ), + child: backTitle, ), - ]), - ), - ), - ), - // Here, we do a custom cross fade between backTitle and frontTitle. - // This makes a smooth animation between the two texts. - Stack( - children: [ - Opacity( - opacity: CurvedAnimation( - parent: ReverseAnimation(animation), - curve: const Interval(0.5, 1), - ).value, - child: FractionalTranslation( - translation: Tween( - begin: Offset.zero, - end: Offset(0.5 * textDirectionScalar, 0), - ).evaluate(animation), - child: backTitle, ), - ), - Opacity( - opacity: CurvedAnimation( - parent: animation, - curve: const Interval(0.5, 1), - ).value, - child: FractionalTranslation( - translation: Tween( - begin: Offset(-0.25 * textDirectionScalar, 0), - end: Offset.zero, - ).evaluate(animation), - child: frontTitle, + Opacity( + opacity: CurvedAnimation(parent: animation, curve: const Interval(0.5, 1)).value, + child: FractionalTranslation( + translation: Tween( + begin: Offset(-0.25 * textDirectionScalar, 0), + end: Offset.zero, + ).evaluate(animation), + child: frontTitle, + ), ), - ), - ], - ), - ]), + ], + ), + ], + ), ); } } @@ -197,8 +189,7 @@ class Backdrop extends StatefulWidget { State createState() => _BackdropState(); } -class _BackdropState extends State - with SingleTickerProviderStateMixin { +class _BackdropState extends State with SingleTickerProviderStateMixin { final GlobalKey _backdropKey = GlobalKey(debugLabel: 'Backdrop'); late AnimationController _controller; late Animation _layerAnimation; @@ -211,8 +202,7 @@ class _BackdropState extends State bool get _frontLayerVisible { final AnimationStatus status = _controller.status; - return status == AnimationStatus.completed || - status == AnimationStatus.forward; + return status == AnimationStatus.completed || status == AnimationStatus.forward; } void _toggleBackdropLayerVisibility() { @@ -237,10 +227,7 @@ class _BackdropState extends State secondCurve = _decelerateCurve; firstWeight = _peakVelocityTime; secondWeight = 1 - _peakVelocityTime; - animation = CurvedAnimation( - parent: _controller.view, - curve: const Interval(0, 0.78), - ); + animation = CurvedAnimation(parent: _controller.view, curve: const Interval(0, 0.78)); } else { // These values are only used when the controller runs from t=1.0 to t=0.0 firstCurve = _decelerateCurve.flipped; @@ -250,39 +237,32 @@ class _BackdropState extends State animation = _controller.view; } - return TweenSequence( - >[ - TweenSequenceItem( - tween: RelativeRectTween( - begin: RelativeRect.fromLTRB( - 0, - layerTop, - 0, - layerTop - layerSize.height, - ), - end: RelativeRect.fromLTRB( - 0, - layerTop * _peakVelocityProgress, - 0, - (layerTop - layerSize.height) * _peakVelocityProgress, - ), - ).chain(CurveTween(curve: firstCurve)), - weight: firstWeight, - ), - TweenSequenceItem( - tween: RelativeRectTween( - begin: RelativeRect.fromLTRB( - 0, - layerTop * _peakVelocityProgress, - 0, - (layerTop - layerSize.height) * _peakVelocityProgress, - ), - end: RelativeRect.fill, - ).chain(CurveTween(curve: secondCurve)), - weight: secondWeight, - ), - ], - ).animate(animation); + return TweenSequence(>[ + TweenSequenceItem( + tween: RelativeRectTween( + begin: RelativeRect.fromLTRB(0, layerTop, 0, layerTop - layerSize.height), + end: RelativeRect.fromLTRB( + 0, + layerTop * _peakVelocityProgress, + 0, + (layerTop - layerSize.height) * _peakVelocityProgress, + ), + ).chain(CurveTween(curve: firstCurve)), + weight: firstWeight, + ), + TweenSequenceItem( + tween: RelativeRectTween( + begin: RelativeRect.fromLTRB( + 0, + layerTop * _peakVelocityProgress, + 0, + (layerTop - layerSize.height) * _peakVelocityProgress, + ), + end: RelativeRect.fill, + ).chain(CurveTween(curve: secondCurve)), + weight: secondWeight, + ), + ]).animate(animation); } Widget _buildStack(BuildContext context, BoxConstraints constraints) { @@ -295,25 +275,22 @@ class _BackdropState extends State return Stack( key: _backdropKey, children: [ - ExcludeSemantics( - excluding: _frontLayerVisible, - child: widget.backLayer, - ), + ExcludeSemantics(excluding: _frontLayerVisible, child: widget.backLayer), PositionedTransition( rect: _layerAnimation, child: ExcludeSemantics( excluding: !_frontLayerVisible, child: AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => AnimatedBuilder( - animation: PageStatus.of(context)!.menuController, - builder: (BuildContext context, Widget? child) => _FrontLayer( - onTap: menuPageIsVisible(context) - ? _toggleBackdropLayerVisibility - : null, - child: widget.frontLayer, - ), - ), + builder: + (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: + (BuildContext context, Widget? child) => _FrontLayer( + onTap: menuPageIsVisible(context) ? _toggleBackdropLayerVisibility : null, + child: widget.frontLayer, + ), + ), ), ), ), @@ -349,25 +326,17 @@ class _BackdropState extends State ); return AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => ExcludeSemantics( - excluding: cartPageIsVisible(context), - child: Scaffold( - appBar: appBar, - body: LayoutBuilder( - builder: _buildStack, + builder: + (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: cartPageIsVisible(context), + child: Scaffold(appBar: appBar, body: LayoutBuilder(builder: _buildStack)), ), - ), - ), ); } } class DesktopBackdrop extends StatelessWidget { - const DesktopBackdrop({ - super.key, - required this.frontLayer, - required this.backLayer, - }); + const DesktopBackdrop({super.key, required this.frontLayer, required this.backLayer}); final Widget frontLayer; final Widget backLayer; @@ -381,12 +350,8 @@ class DesktopBackdrop extends StatelessWidget { padding: EdgeInsetsDirectional.only( start: desktopCategoryMenuPageWidth(context: context), ), - child: Material( - elevation: 16, - color: Colors.white, - child: frontLayer, - ), - ) + child: Material(elevation: 16, color: Colors.white, child: frontLayer), + ), ], ); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart index ad2f37aed5e40c12795350df81ac4ee06e83ac39..c697cf5229f22c28e9f3549c816e21d2affdb461 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/category_menu_page.dart @@ -16,28 +16,19 @@ import 'model/product.dart'; import 'page_status.dart'; import 'triangle_category_indicator.dart'; -double desktopCategoryMenuPageWidth({ - required BuildContext context, -}) { +double desktopCategoryMenuPageWidth({required BuildContext context}) { return 232 * reducedTextScale(context); } class CategoryMenuPage extends StatelessWidget { - const CategoryMenuPage({ - super.key, - this.onCategoryTap, - }); + const CategoryMenuPage({super.key, this.onCategoryTap}); final VoidCallback? onCategoryTap; Widget _buttonText(String caption, TextStyle style) { return Padding( padding: const EdgeInsets.symmetric(vertical: 16), - child: Text( - caption, - style: style, - textAlign: TextAlign.center, - ), + child: Text(caption, style: style, textAlign: TextAlign.center), ); } @@ -54,45 +45,43 @@ class CategoryMenuPage extends StatelessWidget { final String categoryString = category.name(context); - final TextStyle selectedCategoryTextStyle = Theme.of(context) - .textTheme - .bodyLarge! - .copyWith(fontSize: isDesktop ? 17 : 19); + final TextStyle selectedCategoryTextStyle = Theme.of( + context, + ).textTheme.bodyLarge!.copyWith(fontSize: isDesktop ? 17 : 19); final TextStyle unselectedCategoryTextStyle = selectedCategoryTextStyle.copyWith( - color: shrineBrown900.withOpacity(0.6)); + color: shrineBrown900.withOpacity(0.6), + ); - final double indicatorHeight = (isDesktop ? 28 : 30) * - GalleryOptions.of(context).textScaleFactor(context); + final double indicatorHeight = + (isDesktop ? 28 : 30) * GalleryOptions.of(context).textScaleFactor(context); final double indicatorWidth = indicatorHeight * 34 / 28; return ScopedModelDescendant( - builder: (BuildContext context, Widget? child, AppStateModel model) => Semantics( - selected: model.selectedCategory == category, - button: true, - enabled: true, - child: MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: () { - model.setCategory(category); - if (onCategoryTap != null) { - onCategoryTap!(); - } - }, - child: model.selectedCategory == category - ? CustomPaint( - painter: TriangleCategoryIndicator( - indicatorWidth, - indicatorHeight, - ), - child: - _buttonText(categoryString, selectedCategoryTextStyle), - ) - : _buttonText(categoryString, unselectedCategoryTextStyle), + builder: + (BuildContext context, Widget? child, AppStateModel model) => Semantics( + selected: model.selectedCategory == category, + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + model.setCategory(category); + if (onCategoryTap != null) { + onCategoryTap!(); + } + }, + child: + model.selectedCategory == category + ? CustomPaint( + painter: TriangleCategoryIndicator(indicatorWidth, indicatorHeight), + child: _buttonText(categoryString, selectedCategoryTextStyle), + ) + : _buttonText(categoryString, unselectedCategoryTextStyle), + ), + ), ), - ), - ), ); } @@ -101,115 +90,104 @@ class CategoryMenuPage extends StatelessWidget { final bool isDesktop = isDisplayDesktop(context); final TextStyle logoutTextStyle = Theme.of(context).textTheme.bodyLarge!.copyWith( - fontSize: isDesktop ? 17 : 19, - color: shrineBrown900.withOpacity(0.6), - ); + fontSize: isDesktop ? 17 : 19, + color: shrineBrown900.withOpacity(0.6), + ); if (isDesktop) { return AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => ExcludeSemantics( - excluding: !menuPageIsVisible(context), - child: Material( - child: Container( - color: shrinePink100, - width: desktopCategoryMenuPageWidth(context: context), - child: Column( - children: [ - const SizedBox(height: 64), - Image.asset( - 'packages/shrine_images/diamond.png', - excludeFromSemantics: true, - ), - const SizedBox(height: 16), - Semantics( - container: true, - child: Text( - 'SHRINE', - style: Theme.of(context).textTheme.headlineSmall, - ), - ), - const Spacer(), - for (final Category category in categories) - _buildCategory(category, context), - _divider(context: context), - Semantics( - button: true, - enabled: true, - child: MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: () { - Navigator.of(context) - .restorablePushNamed(ShrineApp.loginRoute); - }, - child: _buttonText( - GalleryLocalizations.of(context)! - .shrineLogoutButtonCaption, - logoutTextStyle, + builder: + (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !menuPageIsVisible(context), + child: Material( + child: Container( + color: shrinePink100, + width: desktopCategoryMenuPageWidth(context: context), + child: Column( + children: [ + const SizedBox(height: 64), + Image.asset('packages/shrine_images/diamond.png', excludeFromSemantics: true), + const SizedBox(height: 16), + Semantics( + container: true, + child: Text('SHRINE', style: Theme.of(context).textTheme.headlineSmall), + ), + const Spacer(), + for (final Category category in categories) _buildCategory(category, context), + _divider(context: context), + Semantics( + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + Navigator.of(context).restorablePushNamed(ShrineApp.loginRoute); + }, + child: _buttonText( + GalleryLocalizations.of(context)!.shrineLogoutButtonCaption, + logoutTextStyle, + ), + ), ), ), - ), - ), - const Spacer(), - IconButton( - icon: const Icon(Icons.search), - tooltip: - GalleryLocalizations.of(context)!.shrineTooltipSearch, - onPressed: () {}, + const Spacer(), + IconButton( + icon: const Icon(Icons.search), + tooltip: GalleryLocalizations.of(context)!.shrineTooltipSearch, + onPressed: () {}, + ), + const SizedBox(height: 72), + ], ), - const SizedBox(height: 72), - ], + ), ), ), - ), - ), ); } else { return AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => AnimatedBuilder( - animation: PageStatus.of(context)!.menuController, - builder: (BuildContext context, Widget? child) => ExcludeSemantics( - excluding: !menuPageIsVisible(context), - child: Center( - child: Container( - padding: const EdgeInsets.only(top: 40), - color: shrinePink100, - child: ListView( - children: [ - for (final Category category in categories) - _buildCategory(category, context), - Center( - child: _divider(context: context), - ), - Semantics( - button: true, - enabled: true, - child: MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: () { - if (onCategoryTap != null) { - onCategoryTap!(); - } - Navigator.of(context) - .restorablePushNamed(ShrineApp.loginRoute); - }, - child: _buttonText( - GalleryLocalizations.of(context)! - .shrineLogoutButtonCaption, - logoutTextStyle, - ), + builder: + (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: + (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !menuPageIsVisible(context), + child: Center( + child: Container( + padding: const EdgeInsets.only(top: 40), + color: shrinePink100, + child: ListView( + children: [ + for (final Category category in categories) + _buildCategory(category, context), + Center(child: _divider(context: context)), + Semantics( + button: true, + enabled: true, + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector( + onTap: () { + if (onCategoryTap != null) { + onCategoryTap!(); + } + Navigator.of(context).restorablePushNamed(ShrineApp.loginRoute); + }, + child: _buttonText( + GalleryLocalizations.of(context)!.shrineLogoutButtonCaption, + logoutTextStyle, + ), + ), + ), + ), + ], ), ), ), - ], - ), - ), + ), ), - ), - ), ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart index 4310243ec486aa90e79864c5b63dc3c1ea325185..dbffeb3931114e1d9aeaaa392d3119d08ed3c02f 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/expanding_bottom_sheet.dart @@ -60,14 +60,15 @@ class ExpandingBottomSheet extends StatefulWidget { @override ExpandingBottomSheetState createState() => ExpandingBottomSheetState(); - static ExpandingBottomSheetState? of(BuildContext context, - {bool isNullOk = false}) { - final ExpandingBottomSheetState? result = context.findAncestorStateOfType(); + static ExpandingBottomSheetState? of(BuildContext context, {bool isNullOk = false}) { + final ExpandingBottomSheetState? result = + context.findAncestorStateOfType(); if (isNullOk || result != null) { return result; } throw FlutterError( - 'ExpandingBottomSheet.of() called with a context that does not contain a ExpandingBottomSheet.\n'); + 'ExpandingBottomSheet.of() called with a context that does not contain a ExpandingBottomSheet.\n', + ); } } @@ -100,24 +101,16 @@ Animation _getEmphasizedEasingAnimation({ secondWeight = _peakVelocityTime; } - return TweenSequence( - >[ - TweenSequenceItem( - weight: firstWeight, - tween: Tween( - begin: begin, - end: peak, - ).chain(CurveTween(curve: firstCurve)), - ), - TweenSequenceItem( - weight: secondWeight, - tween: Tween( - begin: peak, - end: end, - ).chain(CurveTween(curve: secondCurve)), - ), - ], - ).animate(parent); + return TweenSequence(>[ + TweenSequenceItem( + weight: firstWeight, + tween: Tween(begin: begin, end: peak).chain(CurveTween(curve: firstCurve)), + ), + TweenSequenceItem( + weight: secondWeight, + tween: Tween(begin: peak, end: end).chain(CurveTween(curve: secondCurve)), + ), + ]).animate(parent); } // Calculates the value where two double Animations should be joined. Used by @@ -127,8 +120,7 @@ double _getPeakPoint({required double begin, required double end}) { } class ExpandingBottomSheetState extends State { - final GlobalKey _expandingBottomSheetKey = - GlobalKey(debugLabel: 'Expanding bottom sheet'); + final GlobalKey _expandingBottomSheetKey = GlobalKey(debugLabel: 'Expanding bottom sheet'); // The width of the Material, calculated by _widthFor() & based on the number // of products in the cart. 64.0 is the width when there are 0 products @@ -165,8 +157,7 @@ class ExpandingBottomSheetState extends State { peak: _getPeakPoint(begin: _width, end: screenWidth), end: screenWidth, isForward: false, - parent: CurvedAnimation( - parent: _controller.view, curve: const Interval(0, 0.87)), + parent: CurvedAnimation(parent: _controller.view, curve: const Interval(0, 0.87)), ); } } @@ -184,10 +175,7 @@ class ExpandingBottomSheetState extends State { ); } else { // Closing animation - return Tween( - begin: _height, - end: screenHeight, - ).animate( + return Tween(begin: _height, end: screenHeight).animate( CurvedAnimation( parent: _controller.view, curve: const Interval(0.434, 1), // not used @@ -207,18 +195,14 @@ class ExpandingBottomSheetState extends State { return _getEmphasizedEasingAnimation( begin: collapsedGapHeight, - peak: collapsedGapHeight + - (expandedGapHeight - collapsedGapHeight) * _peakVelocityProgress, + peak: collapsedGapHeight + (expandedGapHeight - collapsedGapHeight) * _peakVelocityProgress, end: expandedGapHeight, isForward: true, parent: _controller.view, ); } else { // Closing animation - return Tween( - begin: collapsedGapHeight, - end: expandedGapHeight, - ).animate( + return Tween(begin: collapsedGapHeight, end: expandedGapHeight).animate( CurvedAnimation( parent: _controller.view, curve: const Interval(0.434, 1), // not used @@ -281,9 +265,10 @@ class ExpandingBottomSheetState extends State { return Tween(begin: 1, end: 0).animate( CurvedAnimation( parent: _controller.view, - curve: _controller.status == AnimationStatus.forward - ? const Interval(0, 0.3) - : const Interval(0.532, 0.766), + curve: + _controller.status == AnimationStatus.forward + ? const Interval(0, 0.3) + : const Interval(0.532, 0.766), ), ); } @@ -291,9 +276,10 @@ class ExpandingBottomSheetState extends State { Animation _getCartOpacityAnimation() { return CurvedAnimation( parent: _controller.view, - curve: _controller.status == AnimationStatus.forward - ? const Interval(0.3, 0.6) - : const Interval(0.766, 1), + curve: + _controller.status == AnimationStatus.forward + ? const Interval(0.3, 0.6) + : const Interval(0.766, 1), ); } @@ -305,10 +291,7 @@ class ExpandingBottomSheetState extends State { min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context); final num overflowNumberWidth = numProducts > _maxThumbnailCount ? 30 * cappedTextScale(context) : 0; - return _cartIconWidth + - cartThumbnailGap + - thumbnailsWidth + - overflowNumberWidth; + return _cartIconWidth + cartThumbnailGap + thumbnailsWidth + overflowNumberWidth; } // Returns the correct height of the ExpandingBottomSheet based on the text scaling @@ -331,10 +314,7 @@ class ExpandingBottomSheetState extends State { min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context); final num overflowNumberHeight = numProducts > _maxThumbnailCount ? 28 * reducedTextScale(context) : 0; - return _cartIconHeight + - cartThumbnailGap + - thumbnailsHeight + - overflowNumberHeight; + return _cartIconHeight + cartThumbnailGap + thumbnailsHeight + overflowNumberHeight; } // Returns true if the cart is open or opening and false otherwise. @@ -395,8 +375,7 @@ class ExpandingBottomSheetState extends State { ), SizedBox( width: _width, - height: min(numProducts, _maxThumbnailCount) * - _paddedThumbnailHeight(context), + height: min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context), child: const ProductThumbnailRow(), ), const ExtraProductsNumber(), @@ -414,8 +393,8 @@ class ExpandingBottomSheetState extends State { ), Container( // Accounts for the overflow number - width: min(numProducts, _maxThumbnailCount) * - _paddedThumbnailHeight(context) + + width: + min(numProducts, _maxThumbnailCount) * _paddedThumbnailHeight(context) + (numProducts > 0 ? _thumbnailGap : 0), height: _height - _bottomSafeArea, padding: const EdgeInsets.symmetric(vertical: 8), @@ -429,18 +408,12 @@ class ExpandingBottomSheetState extends State { } return ExcludeSemantics( - child: Opacity( - opacity: _thumbnailOpacityAnimation.value, - child: thumbnails, - ), + child: Opacity(opacity: _thumbnailOpacityAnimation.value, child: thumbnails), ); } Widget _buildShoppingCartPage() { - return Opacity( - opacity: _cartOpacityAnimation.value, - child: const ShoppingCartPage(), - ); + return Opacity(opacity: _cartOpacityAnimation.value, child: const ShoppingCartPage()); } Widget _buildCart(BuildContext context) { @@ -455,25 +428,24 @@ class ExpandingBottomSheetState extends State { final double screenWidth = screenSize.width; final double screenHeight = screenSize.height; - final double expandedCartWidth = isDesktop - ? (360 * cappedTextScale(context)).clamp(360, screenWidth).toDouble() - : screenWidth; + final double expandedCartWidth = + isDesktop + ? (360 * cappedTextScale(context)).clamp(360, screenWidth).toDouble() + : screenWidth; - _width = isDesktop - ? _desktopWidthFor(context) - : _mobileWidthFor(numProducts, context); + _width = isDesktop ? _desktopWidthFor(context) : _mobileWidthFor(numProducts, context); _widthAnimation = _getWidthAnimation(expandedCartWidth); - _height = isDesktop - ? _desktopHeightFor(numProducts, context) - : _mobileHeightFor(context) + _bottomSafeArea; + _height = + isDesktop + ? _desktopHeightFor(numProducts, context) + : _mobileHeightFor(context) + _bottomSafeArea; _heightAnimation = _getHeightAnimation(screenHeight); _topStartShapeAnimation = _getShapeTopStartAnimation(context); _bottomStartShapeAnimation = _getShapeBottomStartAnimation(context); _thumbnailOpacityAnimation = _getThumbnailOpacityAnimation(); _cartOpacityAnimation = _getCartOpacityAnimation(); - _gapAnimation = isDesktop - ? _getDesktopGapAnimation(116) - : const AlwaysStoppedAnimation(0); + _gapAnimation = + isDesktop ? _getDesktopGapAnimation(116) : const AlwaysStoppedAnimation(0); final Widget child = SizedBox( width: _widthAnimation.value, @@ -488,33 +460,24 @@ class ExpandingBottomSheetState extends State { ), elevation: 4, color: shrinePink50, - child: _cartIsVisible - ? _buildShoppingCartPage() - : _buildThumbnails(context, numProducts), + child: _cartIsVisible ? _buildShoppingCartPage() : _buildThumbnails(context, numProducts), ), ); - final Widget childWithInteraction = productPageIsVisible(context) - ? Semantics( - button: true, - enabled: true, - label: GalleryLocalizations.of(context)! - .shrineScreenReaderCart(totalCartQuantity), - child: MouseRegion( - cursor: SystemMouseCursors.click, - child: GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: open, - child: child, + final Widget childWithInteraction = + productPageIsVisible(context) + ? Semantics( + button: true, + enabled: true, + label: GalleryLocalizations.of(context)!.shrineScreenReaderCart(totalCartQuantity), + child: MouseRegion( + cursor: SystemMouseCursors.click, + child: GestureDetector(behavior: HitTestBehavior.opaque, onTap: open, child: child), ), - ), - ) - : child; + ) + : child; - return Padding( - padding: EdgeInsets.only(top: _gapAnimation.value), - child: childWithInteraction, - ); + return Padding(padding: EdgeInsets.only(top: _gapAnimation.value), child: childWithInteraction); } // Builder for the hide and reveal animation when the backdrop opens and closes @@ -524,8 +487,7 @@ class ExpandingBottomSheetState extends State { if (isDesktop) { return child; } else { - final int textDirectionScalar = - Directionality.of(context) == TextDirection.ltr ? 1 : -1; + final int textDirectionScalar = Directionality.of(context) == TextDirection.ltr ? 1 : -1; _slideAnimation = _getEmphasizedEasingAnimation( begin: Offset(1.0 * textDirectionScalar, 0.0), @@ -535,10 +497,7 @@ class ExpandingBottomSheetState extends State { parent: widget.hideController, ); - return SlideTransition( - position: _slideAnimation, - child: child, - ); + return SlideTransition(position: _slideAnimation, child: child); } } @@ -551,13 +510,16 @@ class ExpandingBottomSheetState extends State { alignment: AlignmentDirectional.topStart, child: AnimatedBuilder( animation: widget.hideController, - builder: (BuildContext context, Widget? child) => AnimatedBuilder( - animation: widget.expandingController, - builder: (BuildContext context, Widget? child) => ScopedModelDescendant( - builder: (BuildContext context, Widget? child, AppStateModel model) => - _buildSlideAnimation(context, _buildCart(context)), - ), - ), + builder: + (BuildContext context, Widget? child) => AnimatedBuilder( + animation: widget.expandingController, + builder: + (BuildContext context, Widget? child) => ScopedModelDescendant( + builder: + (BuildContext context, Widget? child, AppStateModel model) => + _buildSlideAnimation(context, _buildCart(context)), + ), + ), ), ); } @@ -585,8 +547,7 @@ class _ProductThumbnailRowState extends State { super.initState(); _list = _ListModel( listKey: _listKey, - initialItems: - ScopedModel.of(context).productsInCart.keys.toList(), + initialItems: ScopedModel.of(context).productsInCart.keys.toList(), removedItemBuilder: _buildRemovedThumbnail, ); _internalList = List.from(_list.list); @@ -598,18 +559,13 @@ class _ProductThumbnailRowState extends State { return product; } - Widget _buildRemovedThumbnail( - int item, BuildContext context, Animation animation) { + Widget _buildRemovedThumbnail(int item, BuildContext context, Animation animation) { return ProductThumbnail(animation, animation, _productWithId(item)); } - Widget _buildThumbnail( - BuildContext context, int index, Animation animation) { + Widget _buildThumbnail(BuildContext context, int index, Animation animation) { final Animation thumbnailSize = Tween(begin: 0.8, end: 1).animate( - CurvedAnimation( - curve: const Interval(0.33, 1, curve: Curves.easeIn), - parent: animation, - ), + CurvedAnimation(curve: const Interval(0.33, 1, curve: Curves.easeIn), parent: animation), ); final Animation opacity = CurvedAnimation( @@ -617,8 +573,7 @@ class _ProductThumbnailRowState extends State { parent: animation, ); - return ProductThumbnail( - thumbnailSize, opacity, _productWithId(_list[index])); + return ProductThumbnail(thumbnailSize, opacity, _productWithId(_list[index])); } // If the lists are the same length, assume nothing has changed. @@ -626,8 +581,7 @@ class _ProductThumbnailRowState extends State { // If the internalList is longer, then an item has been added. void _updateLists() { // Update _internalList based on the model - _internalList = - ScopedModel.of(context).productsInCart.keys.toList(); + _internalList = ScopedModel.of(context).productsInCart.keys.toList(); final Set internalSet = Set.from(_internalList); final Set listSet = Set.from(_list.list); @@ -708,8 +662,7 @@ class ExtraProductsNumber extends StatelessWidget { final int numOverflowProducts = _calculateOverflow(model); // Maximum of 99 so padding doesn't get messy. - final int displayedOverflowProducts = - numOverflowProducts <= 99 ? numOverflowProducts : 99; + final int displayedOverflowProducts = numOverflowProducts <= 99 ? numOverflowProducts : 99; return Text( '+$displayedOverflowProducts', style: Theme.of(context).primaryTextTheme.labelLarge, @@ -719,14 +672,15 @@ class ExtraProductsNumber extends StatelessWidget { @override Widget build(BuildContext context) { return ScopedModelDescendant( - builder: (BuildContext builder, Widget? child, AppStateModel model) => _buildOverflow(model, context), + builder: + (BuildContext builder, Widget? child, AppStateModel model) => + _buildOverflow(model, context), ); } } class ProductThumbnail extends StatelessWidget { - const ProductThumbnail(this.animation, this.opacityAnimation, this.product, - {super.key}); + const ProductThumbnail(this.animation, this.opacityAnimation, this.product, {super.key}); final Animation animation; final Animation opacityAnimation; @@ -753,9 +707,10 @@ class ProductThumbnail extends StatelessWidget { ), borderRadius: const BorderRadius.all(Radius.circular(10)), ), - margin: isDesktop - ? const EdgeInsetsDirectional.only(start: 12, end: 12, bottom: 16) - : const EdgeInsetsDirectional.only(start: 16), + margin: + isDesktop + ? const EdgeInsetsDirectional.only(start: 12, end: 12, bottom: 16) + : const EdgeInsetsDirectional.only(start: 16), ), ), ); @@ -764,15 +719,11 @@ class ProductThumbnail extends StatelessWidget { // _ListModel manipulates an internal list and an AnimatedList class _ListModel { - _ListModel({ - required this.listKey, - required this.removedItemBuilder, - Iterable? initialItems, - }) : _items = initialItems?.toList() ?? []; + _ListModel({required this.listKey, required this.removedItemBuilder, Iterable? initialItems}) + : _items = initialItems?.toList() ?? []; final GlobalKey listKey; - final Widget Function(int, BuildContext, Animation) - removedItemBuilder; + final Widget Function(int, BuildContext, Animation) removedItemBuilder; final List _items; AnimatedListState? get _animatedList => listKey.currentState; @@ -783,8 +734,7 @@ class _ListModel { void _insert(int index, int item) { _items.insert(index, item); - _animatedList! - .insertItem(index, duration: const Duration(milliseconds: 225)); + _animatedList!.insertItem(index, duration: const Duration(milliseconds: 225)); } void remove(int product) { diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart index c207c1153a9433d9ef675d0f8e6b7c09b8a4d2e6..0f6725cd5fee42aa1eef72ef1dd0aecd1684b377 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/home.dart @@ -22,21 +22,17 @@ class ProductPage extends StatelessWidget { final bool isDesktop = isDisplayDesktop(context); return ScopedModelDescendant( - builder: (BuildContext context, Widget? child, AppStateModel model) { - return isDesktop - ? DesktopAsymmetricView(products: model.getProducts()) - : MobileAsymmetricView(products: model.getProducts()); - }); + builder: (BuildContext context, Widget? child, AppStateModel model) { + return isDesktop + ? DesktopAsymmetricView(products: model.getProducts()) + : MobileAsymmetricView(products: model.getProducts()); + }, + ); } } class HomePage extends StatelessWidget { - const HomePage({ - this.expandingBottomSheet, - this.scrim, - this.backdrop, - super.key, - }); + const HomePage({this.expandingBottomSheet, this.scrim, this.backdrop, super.key}); final ExpandingBottomSheet? expandingBottomSheet; final Widget? scrim; @@ -59,9 +55,7 @@ class HomePage extends StatelessWidget { ), ExcludeSemantics(child: scrim), Align( - alignment: isDesktop - ? AlignmentDirectional.topEnd - : AlignmentDirectional.bottomEnd, + alignment: isDesktop ? AlignmentDirectional.topEnd : AlignmentDirectional.bottomEnd, child: Semantics( container: true, sortKey: const OrdinalSortKey(0, name: _ordinalSortKeyName), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart index 09ab3760829f4c1a73aafbfbf26f3c9811b035ac..1cfa1014a1b853d6246413819e689bde3a3188aa 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/login.dart @@ -32,51 +32,51 @@ class LoginPage extends StatelessWidget { final bool isDesktop = isDisplayDesktop(context); return ApplyTextOptions( - child: isDesktop - ? LayoutBuilder( - builder: (BuildContext context, BoxConstraints constraints) => Scaffold( - body: SafeArea( - child: Center( - child: SizedBox( - width: desktopLoginScreenMainAreaWidth(context: context), - child: const Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - _ShrineLogo(), - SizedBox(height: 40), - _UsernameTextField(), - SizedBox(height: 16), - _PasswordTextField(), - SizedBox(height: 24), - _CancelAndNextButtons(), - SizedBox(height: 62), - ], + child: + isDesktop + ? LayoutBuilder( + builder: + (BuildContext context, BoxConstraints constraints) => Scaffold( + body: SafeArea( + child: Center( + child: SizedBox( + width: desktopLoginScreenMainAreaWidth(context: context), + child: const Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + _ShrineLogo(), + SizedBox(height: 40), + _UsernameTextField(), + SizedBox(height: 16), + _PasswordTextField(), + SizedBox(height: 24), + _CancelAndNextButtons(), + SizedBox(height: 62), + ], + ), + ), + ), ), ), + ) + : Scaffold( + body: SafeArea( + child: ListView( + restorationId: 'login_list_view', + physics: const ClampingScrollPhysics(), + padding: const EdgeInsets.symmetric(horizontal: _horizontalPadding), + children: const [ + SizedBox(height: 80), + _ShrineLogo(), + SizedBox(height: 120), + _UsernameTextField(), + SizedBox(height: 12), + _PasswordTextField(), + _CancelAndNextButtons(), + ], ), ), ), - ) - : Scaffold( - body: SafeArea( - child: ListView( - restorationId: 'login_list_view', - physics: const ClampingScrollPhysics(), - padding: const EdgeInsets.symmetric( - horizontal: _horizontalPadding, - ), - children: const [ - SizedBox(height: 80), - _ShrineLogo(), - SizedBox(height: 120), - _UsernameTextField(), - SizedBox(height: 12), - _PasswordTextField(), - _CancelAndNextButtons(), - ], - ), - ), - ), ); } } @@ -91,16 +91,10 @@ class _ShrineLogo extends StatelessWidget { children: [ const FadeInImagePlaceholder( image: AssetImage('packages/shrine_images/diamond.png'), - placeholder: SizedBox( - width: 34, - height: 34, - ), + placeholder: SizedBox(width: 34, height: 34), ), const SizedBox(height: 16), - Text( - 'SHRINE', - style: Theme.of(context).textTheme.headlineSmall, - ), + Text('SHRINE', style: Theme.of(context).textTheme.headlineSmall), ], ), ); @@ -120,9 +114,7 @@ class _UsernameTextField extends StatelessWidget { cursorColor: colorScheme.onSurface, decoration: InputDecoration( labelText: GalleryLocalizations.of(context)!.shrineLoginUsernameLabel, - labelStyle: TextStyle( - letterSpacing: letterSpacingOrNone(mediumLetterSpacing), - ), + labelStyle: TextStyle(letterSpacing: letterSpacingOrNone(mediumLetterSpacing)), ), ); } @@ -141,9 +133,7 @@ class _PasswordTextField extends StatelessWidget { obscureText: true, decoration: InputDecoration( labelText: GalleryLocalizations.of(context)!.shrineLoginPasswordLabel, - labelStyle: TextStyle( - letterSpacing: letterSpacingOrNone(mediumLetterSpacing), - ), + labelStyle: TextStyle(letterSpacing: letterSpacingOrNone(mediumLetterSpacing)), ), ); } @@ -158,9 +148,8 @@ class _CancelAndNextButtons extends StatelessWidget { final bool isDesktop = isDisplayDesktop(context); - final EdgeInsets buttonTextPadding = isDesktop - ? const EdgeInsets.symmetric(horizontal: 24, vertical: 16) - : EdgeInsets.zero; + final EdgeInsets buttonTextPadding = + isDesktop ? const EdgeInsets.symmetric(horizontal: 24, vertical: 16) : EdgeInsets.zero; return Padding( padding: isDesktop ? EdgeInsets.zero : const EdgeInsets.all(8), @@ -203,8 +192,7 @@ class _CancelAndNextButtons extends StatelessWidget { padding: buttonTextPadding, child: Text( GalleryLocalizations.of(context)!.shrineNextButtonCaption, - style: TextStyle( - letterSpacing: letterSpacingOrNone(largeLetterSpacing)), + style: TextStyle(letterSpacing: letterSpacingOrNone(largeLetterSpacing)), ), ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart index 83185e75cb81495a0c9c475a99aa6340c05ffa40..803ead2a973114dde1a57b44b6fc4c839d8160d1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/app_state_model.dart @@ -36,8 +36,7 @@ class AppStateModel extends Model { // Total shipping cost for the items in the cart. double get shippingCost { - return _shippingCostPerItem * - _productsInCart.values.fold(0.0, (num sum, int e) => sum + e); + return _shippingCostPerItem * _productsInCart.values.fold(0.0, (num sum, int e) => sum + e); } // Sales tax for the items in the cart @@ -51,9 +50,7 @@ class AppStateModel extends Model { if (_selectedCategory == categoryAll) { return List.from(_availableProducts); } else { - return _availableProducts - .where((Product p) => p.category == _selectedCategory) - .toList(); + return _availableProducts.where((Product p) => p.category == _selectedCategory).toList(); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart index 6a899d98eacd91432eae0588942fefb246fbbd3b..256b3423916251d194725e9ac36309cca9d39eed 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/product.dart @@ -7,9 +7,7 @@ import 'package:flutter/material.dart'; import '../../../gallery_localizations.dart'; class Category { - const Category({ - required this.name, - }); + const Category({required this.name}); // A function taking a BuildContext as input and // returns the internationalized name of the category. @@ -21,13 +19,11 @@ Category categoryAll = Category( ); Category categoryAccessories = Category( - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineCategoryNameAccessories, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineCategoryNameAccessories, ); Category categoryClothing = Category( - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineCategoryNameClothing, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineCategoryNameClothing, ); Category categoryHome = Category( diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart index 61fe1d0a1439625564c6445d7cc21f148c8b2f5a..a1447ebd92822298441c96c06d88599b39cb5c19 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/model/products_repository.dart @@ -13,8 +13,7 @@ class ProductsRepository { category: categoryAccessories, id: 0, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductVagabondSack, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductVagabondSack, price: 120, assetAspectRatio: 329 / 246, ), @@ -22,8 +21,9 @@ class ProductsRepository { category: categoryAccessories, id: 1, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductStellaSunglasses, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductStellaSunglasses, price: 58, assetAspectRatio: 329 / 247, ), @@ -31,8 +31,7 @@ class ProductsRepository { category: categoryAccessories, id: 2, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductWhitneyBelt, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductWhitneyBelt, price: 35, assetAspectRatio: 329 / 228, ), @@ -40,8 +39,7 @@ class ProductsRepository { category: categoryAccessories, id: 3, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGardenStrand, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGardenStrand, price: 98, assetAspectRatio: 329 / 246, ), @@ -49,8 +47,8 @@ class ProductsRepository { category: categoryAccessories, id: 4, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductStrutEarrings, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductStrutEarrings, price: 34, assetAspectRatio: 329 / 246, ), @@ -58,8 +56,7 @@ class ProductsRepository { category: categoryAccessories, id: 5, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductVarsitySocks, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductVarsitySocks, price: 12, assetAspectRatio: 329 / 246, ), @@ -67,8 +64,7 @@ class ProductsRepository { category: categoryAccessories, id: 6, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductWeaveKeyring, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductWeaveKeyring, price: 16, assetAspectRatio: 329 / 246, ), @@ -76,8 +72,7 @@ class ProductsRepository { category: categoryAccessories, id: 7, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGatsbyHat, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGatsbyHat, price: 40, assetAspectRatio: 329 / 246, ), @@ -85,8 +80,7 @@ class ProductsRepository { category: categoryAccessories, id: 8, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductShrugBag, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductShrugBag, price: 198, assetAspectRatio: 329 / 246, ), @@ -94,8 +88,7 @@ class ProductsRepository { category: categoryHome, id: 9, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGiltDeskTrio, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGiltDeskTrio, price: 58, assetAspectRatio: 329 / 246, ), @@ -103,8 +96,8 @@ class ProductsRepository { category: categoryHome, id: 10, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductCopperWireRack, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductCopperWireRack, price: 18, assetAspectRatio: 329 / 246, ), @@ -112,8 +105,9 @@ class ProductsRepository { category: categoryHome, id: 11, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSootheCeramicSet, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSootheCeramicSet, price: 28, assetAspectRatio: 329 / 247, ), @@ -121,8 +115,8 @@ class ProductsRepository { category: categoryHome, id: 12, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductHurrahsTeaSet, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductHurrahsTeaSet, price: 34, assetAspectRatio: 329 / 213, ), @@ -130,8 +124,7 @@ class ProductsRepository { category: categoryHome, id: 13, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductBlueStoneMug, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductBlueStoneMug, price: 18, assetAspectRatio: 329 / 246, ), @@ -139,8 +132,8 @@ class ProductsRepository { category: categoryHome, id: 14, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductRainwaterTray, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductRainwaterTray, price: 27, assetAspectRatio: 329 / 246, ), @@ -148,8 +141,9 @@ class ProductsRepository { category: categoryHome, id: 15, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductChambrayNapkins, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductChambrayNapkins, price: 16, assetAspectRatio: 329 / 246, ), @@ -157,8 +151,9 @@ class ProductsRepository { category: categoryHome, id: 16, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSucculentPlanters, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSucculentPlanters, price: 16, assetAspectRatio: 329 / 246, ), @@ -166,8 +161,7 @@ class ProductsRepository { category: categoryHome, id: 17, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductQuartetTable, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductQuartetTable, price: 175, assetAspectRatio: 329 / 246, ), @@ -175,8 +169,8 @@ class ProductsRepository { category: categoryHome, id: 18, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductKitchenQuattro, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductKitchenQuattro, price: 129, assetAspectRatio: 329 / 246, ), @@ -184,8 +178,7 @@ class ProductsRepository { category: categoryClothing, id: 19, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductClaySweater, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductClaySweater, price: 48, assetAspectRatio: 329 / 219, ), @@ -193,8 +186,7 @@ class ProductsRepository { category: categoryClothing, id: 20, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSeaTunic, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductSeaTunic, price: 45, assetAspectRatio: 329 / 221, ), @@ -202,8 +194,7 @@ class ProductsRepository { category: categoryClothing, id: 21, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductPlasterTunic, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductPlasterTunic, price: 38, assetAspectRatio: 220 / 329, ), @@ -211,8 +202,9 @@ class ProductsRepository { category: categoryClothing, id: 22, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductWhitePinstripeShirt, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWhitePinstripeShirt, price: 70, assetAspectRatio: 219 / 329, ), @@ -220,8 +212,8 @@ class ProductsRepository { category: categoryClothing, id: 23, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductChambrayShirt, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductChambrayShirt, price: 70, assetAspectRatio: 329 / 221, ), @@ -229,8 +221,9 @@ class ProductsRepository { category: categoryClothing, id: 24, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSeabreezeSweater, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSeabreezeSweater, price: 60, assetAspectRatio: 220 / 329, ), @@ -238,8 +231,7 @@ class ProductsRepository { category: categoryClothing, id: 25, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGentryJacket, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGentryJacket, price: 178, assetAspectRatio: 329 / 219, ), @@ -247,8 +239,7 @@ class ProductsRepository { category: categoryClothing, id: 26, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductNavyTrousers, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductNavyTrousers, price: 74, assetAspectRatio: 220 / 329, ), @@ -256,8 +247,9 @@ class ProductsRepository { category: categoryClothing, id: 27, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductWalterHenleyWhite, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductWalterHenleyWhite, price: 38, assetAspectRatio: 219 / 329, ), @@ -265,8 +257,9 @@ class ProductsRepository { category: categoryClothing, id: 28, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSurfAndPerfShirt, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductSurfAndPerfShirt, price: 48, assetAspectRatio: 329 / 219, ), @@ -274,8 +267,7 @@ class ProductsRepository { category: categoryClothing, id: 29, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGingerScarf, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGingerScarf, price: 98, assetAspectRatio: 219 / 329, ), @@ -283,8 +275,9 @@ class ProductsRepository { category: categoryClothing, id: 30, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductRamonaCrossover, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductRamonaCrossover, price: 68, assetAspectRatio: 220 / 329, ), @@ -292,8 +285,8 @@ class ProductsRepository { category: categoryClothing, id: 31, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductChambrayShirt, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductChambrayShirt, price: 38, assetAspectRatio: 329 / 223, ), @@ -301,8 +294,9 @@ class ProductsRepository { category: categoryClothing, id: 32, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductClassicWhiteCollar, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductClassicWhiteCollar, price: 58, assetAspectRatio: 221 / 329, ), @@ -310,8 +304,9 @@ class ProductsRepository { category: categoryClothing, id: 33, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductCeriseScallopTee, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductCeriseScallopTee, price: 42, assetAspectRatio: 329 / 219, ), @@ -319,8 +314,9 @@ class ProductsRepository { category: categoryClothing, id: 34, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductShoulderRollsTee, + name: + (BuildContext context) => + GalleryLocalizations.of(context)!.shrineProductShoulderRollsTee, price: 27, assetAspectRatio: 220 / 329, ), @@ -328,8 +324,8 @@ class ProductsRepository { category: categoryClothing, id: 35, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductGreySlouchTank, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductGreySlouchTank, price: 24, assetAspectRatio: 222 / 329, ), @@ -337,8 +333,8 @@ class ProductsRepository { category: categoryClothing, id: 36, isFeatured: false, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductSunshirtDress, + name: + (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductSunshirtDress, price: 58, assetAspectRatio: 219 / 329, ), @@ -346,8 +342,7 @@ class ProductsRepository { category: categoryClothing, id: 37, isFeatured: true, - name: (BuildContext context) => - GalleryLocalizations.of(context)!.shrineProductFineLinesTee, + name: (BuildContext context) => GalleryLocalizations.of(context)!.shrineProductFineLinesTee, price: 58, assetAspectRatio: 219 / 329, ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart index a04d4976a711762ab57d6ec386e9f65c249ba2be..f8dbd9a8ee913e87f00cbb6822daf61b23b733f3 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/page_status.dart @@ -23,8 +23,7 @@ class PageStatus extends InheritedWidget { @override bool updateShouldNotify(PageStatus oldWidget) => - oldWidget.cartController != cartController || - oldWidget.menuController != menuController; + oldWidget.cartController != cartController || oldWidget.menuController != menuController; } bool productPageIsVisible(BuildContext context) { diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart index 25ef0f2cd32e552ae47eb507b21377c2021adbea..fa33eb6b2724fb0f84a6084b3ebd1484f7ea5f0e 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/scrim.dart @@ -24,10 +24,7 @@ class Scrim extends StatelessWidget { case AnimationStatus.completed: return MouseRegion( cursor: SystemMouseCursors.click, - child: GestureDetector( - onTap: controller.reverse, - child: scrimRectangle, - ), + child: GestureDetector(onTap: controller.reverse, child: scrimRectangle), ); case AnimationStatus.dismissed: return IgnorePointer(child: scrimRectangle); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart index 8636f3a0b09817c2a26649abcd42eaacba69f9a5..e890c83cc1386f6a843badd307da1b209ab571fb 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/shopping_cart.dart @@ -49,14 +49,15 @@ class _ShoppingCartPageState extends State { child: ScopedModelDescendant( builder: (BuildContext context, Widget? child, AppStateModel model) { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; - final ExpandingBottomSheetState? expandingBottomSheet = ExpandingBottomSheet.of(context); + final ExpandingBottomSheetState? expandingBottomSheet = ExpandingBottomSheet.of( + context, + ); return Stack( children: [ ListView( children: [ Semantics( - sortKey: - const OrdinalSortKey(0, name: _ordinalSortKeyName), + sortKey: const OrdinalSortKey(0, name: _ordinalSortKeyName), child: Row( children: [ SizedBox( @@ -69,29 +70,22 @@ class _ShoppingCartPageState extends State { ), Text( localizations.shrineCartPageCaption, - style: localTheme.textTheme.titleMedium! - .copyWith(fontWeight: FontWeight.w600), - ), - const SizedBox(width: 16), - Text( - localizations.shrineCartItemCount( - model.totalCartQuantity, + style: localTheme.textTheme.titleMedium!.copyWith( + fontWeight: FontWeight.w600, ), ), + const SizedBox(width: 16), + Text(localizations.shrineCartItemCount(model.totalCartQuantity)), ], ), ), const SizedBox(height: 16), Semantics( - sortKey: - const OrdinalSortKey(1, name: _ordinalSortKeyName), - child: Column( - children: _createShoppingCartRows(model), - ), + sortKey: const OrdinalSortKey(1, name: _ordinalSortKeyName), + child: Column(children: _createShoppingCartRows(model)), ), Semantics( - sortKey: - const OrdinalSortKey(2, name: _ordinalSortKeyName), + sortKey: const OrdinalSortKey(2, name: _ordinalSortKeyName), child: ShoppingCartSummary(model: model), ), const SizedBox(height: 100), @@ -118,9 +112,7 @@ class _ShoppingCartPageState extends State { padding: const EdgeInsets.symmetric(vertical: 12), child: Text( localizations.shrineCartClearButtonCaption, - style: TextStyle( - letterSpacing: - letterSpacingOrNone(largeLetterSpacing)), + style: TextStyle(letterSpacing: letterSpacingOrNone(largeLetterSpacing)), ), ), ), @@ -136,21 +128,18 @@ class _ShoppingCartPageState extends State { } class ShoppingCartSummary extends StatelessWidget { - const ShoppingCartSummary({ - super.key, - required this.model, - }); + const ShoppingCartSummary({super.key, required this.model}); final AppStateModel model; @override Widget build(BuildContext context) { - final TextStyle smallAmountStyle = - Theme.of(context).textTheme.bodyMedium!.copyWith(color: shrineBrown600); - final TextStyle largeAmountStyle = Theme.of(context) - .textTheme - .headlineMedium! - .copyWith(letterSpacing: letterSpacingOrNone(mediumLetterSpacing)); + final TextStyle smallAmountStyle = Theme.of( + context, + ).textTheme.bodyMedium!.copyWith(color: shrineBrown600); + final TextStyle largeAmountStyle = Theme.of( + context, + ).textTheme.headlineMedium!.copyWith(letterSpacing: letterSpacingOrNone(mediumLetterSpacing)); final NumberFormat formatter = NumberFormat.simpleCurrency( decimalDigits: 2, locale: Localizations.localeOf(context).toString(), @@ -168,9 +157,7 @@ class ShoppingCartSummary extends StatelessWidget { MergeSemantics( child: Row( children: [ - SelectableText( - localizations.shrineCartTotalCaption, - ), + SelectableText(localizations.shrineCartTotalCaption), Expanded( child: SelectableText( formatter.format(model.totalCost), @@ -185,9 +172,7 @@ class ShoppingCartSummary extends StatelessWidget { MergeSemantics( child: Row( children: [ - SelectableText( - localizations.shrineCartSubtotalCaption, - ), + SelectableText(localizations.shrineCartSubtotalCaption), Expanded( child: SelectableText( formatter.format(model.subtotalCost), @@ -202,9 +187,7 @@ class ShoppingCartSummary extends StatelessWidget { MergeSemantics( child: Row( children: [ - SelectableText( - localizations.shrineCartShippingCaption, - ), + SelectableText(localizations.shrineCartShippingCaption), Expanded( child: SelectableText( formatter.format(model.shippingCost), @@ -219,9 +202,7 @@ class ShoppingCartSummary extends StatelessWidget { MergeSemantics( child: Row( children: [ - SelectableText( - localizations.shrineCartTaxCaption, - ), + SelectableText(localizations.shrineCartTaxCaption), Expanded( child: SelectableText( formatter.format(model.tax), @@ -242,12 +223,7 @@ class ShoppingCartSummary extends StatelessWidget { } class ShoppingCartRow extends StatelessWidget { - const ShoppingCartRow({ - super.key, - required this.product, - required this.quantity, - this.onPressed, - }); + const ShoppingCartRow({super.key, required this.product, required this.quantity, this.onPressed}); final Product product; final int? quantity; @@ -271,8 +247,7 @@ class ShoppingCartRow extends StatelessWidget { children: [ Semantics( container: true, - label: localizations - .shrineScreenReaderRemoveProductButton(product.name(context)), + label: localizations.shrineScreenReaderRemoveProductButton(product.name(context)), button: true, enabled: true, child: ExcludeSemantics( @@ -313,8 +288,7 @@ class ShoppingCartRow extends StatelessWidget { children: [ Expanded( child: SelectableText( - localizations - .shrineProductQuantity(quantity!), + localizations.shrineProductQuantity(quantity!), ), ), SelectableText( @@ -327,8 +301,9 @@ class ShoppingCartRow extends StatelessWidget { ), SelectableText( product.name(context), - style: localTheme.textTheme.titleMedium! - .copyWith(fontWeight: FontWeight.w600), + style: localTheme.textTheme.titleMedium!.copyWith( + fontWeight: FontWeight.w600, + ), ), ], ), @@ -337,10 +312,7 @@ class ShoppingCartRow extends StatelessWidget { ], ), const SizedBox(height: 16), - const Divider( - color: shrineBrown900, - height: 10, - ), + const Divider(color: shrineBrown900, height: 10), ], ), ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart index 7a79c2f08eae67d786ce3486b08e7de58179f159..4792c623eb0dafa2138671bc732f72d6125827fe 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/asymmetric_view.dart @@ -22,38 +22,34 @@ const double _bottomPadding = 44.0; const double _cardToScreenWidthRatio = 0.59; class MobileAsymmetricView extends StatelessWidget { - const MobileAsymmetricView({ - super.key, - required this.products, - }); + const MobileAsymmetricView({super.key, required this.products}); final List products; - List _buildColumns( - BuildContext context, - BoxConstraints constraints, - ) { + List _buildColumns(BuildContext context, BoxConstraints constraints) { if (products.isEmpty) { return const []; } // Decide whether the page size and text size allow 2-column products. - final double cardHeight = (constraints.biggest.height - + final double cardHeight = + (constraints.biggest.height - _topPadding - _bottomPadding - TwoProductCardColumn.spacerHeight) / 2; - final double imageWidth = _cardToScreenWidthRatio * constraints.biggest.width - + final double imageWidth = + _cardToScreenWidthRatio * constraints.biggest.width - TwoProductCardColumn.horizontalPadding; - final double imageHeight = cardHeight - + final double imageHeight = + cardHeight - MobileProductCard.defaultTextBoxHeight * GalleryOptions.of(context).textScaleFactor(context); - final bool shouldUseAlternatingLayout = - imageHeight > 0 && imageWidth / imageHeight < 49 / 33; + final bool shouldUseAlternatingLayout = imageHeight > 0 && imageWidth / imageHeight < 49 / 33; if (shouldUseAlternatingLayout) { // Alternating layout: a layout of alternating 2-product @@ -76,24 +72,17 @@ class MobileAsymmetricView extends StatelessWidget { final int bottom = _evenCasesIndex(index); column = TwoProductCardColumn( bottom: products[bottom], - top: - products.length - 1 >= bottom + 1 ? products[bottom + 1] : null, + top: products.length - 1 >= bottom + 1 ? products[bottom + 1] : null, imageAspectRatio: imageWidth / imageHeight, ); width += 32; } else { /// Odd cases - column = OneProductCardColumn( - product: products[_oddCasesIndex(index)], - reverse: true, - ); + column = OneProductCardColumn(product: products[_oddCasesIndex(index)], reverse: true); } return SizedBox( width: width, - child: Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: column, - ), + child: Padding(padding: const EdgeInsets.symmetric(horizontal: 16), child: column), ); }).toList(); } else { @@ -105,12 +94,9 @@ class MobileAsymmetricView extends StatelessWidget { width: _cardToScreenWidthRatio * MediaQuery.of(context).size.width, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 16), - child: OneProductCardColumn( - product: product, - reverse: false, - ), + child: OneProductCardColumn(product: product, reverse: false), ), - ) + ), ]; } } @@ -129,46 +115,43 @@ class MobileAsymmetricView extends StatelessWidget { } int _listItemCount(int totalItems) { - return (totalItems % 3 == 0) - ? totalItems ~/ 3 * 2 - : (totalItems / 3).ceil() * 2 - 1; + return (totalItems % 3 == 0) ? totalItems ~/ 3 * 2 : (totalItems / 3).ceil() * 2 - 1; } @override Widget build(BuildContext context) { return AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => AnimatedBuilder( - animation: PageStatus.of(context)!.menuController, - builder: (BuildContext context, Widget? child) => ExcludeSemantics( - excluding: !productPageIsVisible(context), - child: LayoutBuilder( - builder: (BuildContext context, BoxConstraints constraints) { - return ListView( - restorationId: 'product_page_list_view', - scrollDirection: Axis.horizontal, - padding: const EdgeInsetsDirectional.fromSTEB( - 0, - _topPadding, - 16, - _bottomPadding, + builder: + (BuildContext context, Widget? child) => AnimatedBuilder( + animation: PageStatus.of(context)!.menuController, + builder: + (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !productPageIsVisible(context), + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return ListView( + restorationId: 'product_page_list_view', + scrollDirection: Axis.horizontal, + padding: const EdgeInsetsDirectional.fromSTEB( + 0, + _topPadding, + 16, + _bottomPadding, + ), + physics: const BouncingScrollPhysics(), + children: _buildColumns(context, constraints), + ); + }, + ), ), - physics: const BouncingScrollPhysics(), - children: _buildColumns(context, constraints), - ); - }, ), - ), - ), ); } } class DesktopAsymmetricView extends StatelessWidget { - const DesktopAsymmetricView({ - super.key, - required this.products, - }); + const DesktopAsymmetricView({super.key, required this.products}); final List products; @@ -200,28 +183,25 @@ class DesktopAsymmetricView extends StatelessWidget { ); // Limit column width to fit within window when there is only one column. - final double actualColumnWidth = idealColumnCount == 1 - ? min( - columnWidth, - windowWidth - sidebar - 2 * minimumBoundaryWidth, - ) - : columnWidth; + final double actualColumnWidth = + idealColumnCount == 1 + ? min(columnWidth, windowWidth - sidebar - 2 * minimumBoundaryWidth) + : columnWidth; final int columnCount = min(idealColumnCount, max(products.length, 1)); return AnimatedBuilder( animation: PageStatus.of(context)!.cartController, - builder: (BuildContext context, Widget? child) => ExcludeSemantics( - excluding: !productPageIsVisible(context), - child: DesktopColumns( - columnCount: columnCount, - products: products, - largeImageWidth: actualColumnWidth, - smallImageWidth: columnCount > 1 - ? columnWidth - columnGapWidth - : actualColumnWidth, - ), - ), + builder: + (BuildContext context, Widget? child) => ExcludeSemantics( + excluding: !productPageIsVisible(context), + child: DesktopColumns( + columnCount: columnCount, + products: products, + largeImageWidth: actualColumnWidth, + smallImageWidth: columnCount > 1 ? columnWidth - columnGapWidth : actualColumnWidth, + ), + ), ); } } @@ -252,22 +232,20 @@ class DesktopColumns extends StatelessWidget { smallImageWidth: smallImageWidth, ); - final List productCardColumns = List.generate( - columnCount, - (int column) { - final bool alignToEnd = (column.isOdd) || (column == columnCount - 1); - final bool startLarge = column.isOdd; - final bool lowerStart = column.isOdd; - return DesktopProductCardColumn( - alignToEnd: alignToEnd, - startLarge: startLarge, - lowerStart: lowerStart, - products: productCardLists[column], - largeImageWidth: largeImageWidth, - smallImageWidth: smallImageWidth, - ); - }, - ); + final List productCardColumns = + List.generate(columnCount, (int column) { + final bool alignToEnd = (column.isOdd) || (column == columnCount - 1); + final bool startLarge = column.isOdd; + final bool lowerStart = column.isOdd; + return DesktopProductCardColumn( + alignToEnd: alignToEnd, + startLarge: startLarge, + lowerStart: lowerStart, + products: productCardLists[column], + largeImageWidth: largeImageWidth, + smallImageWidth: smallImageWidth, + ); + }); return ListView( physics: const AlwaysScrollableScrollPhysics(), @@ -277,16 +255,13 @@ class DesktopColumns extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ const Spacer(), - ...List.generate( - 2 * columnCount - 1, - (int generalizedColumnIndex) { - if (generalizedColumnIndex.isEven) { - return productCardColumns[generalizedColumnIndex ~/ 2]; - } else { - return gap; - } - }, - ), + ...List.generate(2 * columnCount - 1, (int generalizedColumnIndex) { + if (generalizedColumnIndex.isEven) { + return productCardColumns[generalizedColumnIndex ~/ 2]; + } else { + return gap; + } + }), const Spacer(), ], ), diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart index fecbee208f669279284edb2cf818aa7c3a669db6..acbe5c193df4da4ef20f4de81ab2bfc4a999c3ad 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/balanced_layout.dart @@ -19,10 +19,7 @@ const int _deviationImprovementThreshold = 10; /// Height of a product image, paired with the product's id. class _TaggedHeightData { - const _TaggedHeightData({ - required this.index, - required this.height, - }); + const _TaggedHeightData({required this.index, required this.height}); /// The id of the corresponding product. final int index; @@ -47,8 +44,9 @@ String _encodeParameters({ required double largeImageWidth, required double smallImageWidth, }) { - final String productString = - [for (final Product product in products) product.id.toString()].join(','); + final String productString = [ + for (final Product product in products) product.id.toString(), + ].join(','); return '$columnCount;$productString,$largeImageWidth,$smallImageWidth'; } @@ -59,9 +57,7 @@ List> _generateLayout({ }) { return >[ for (final List column in layout) - [ - for (final int index in column) products[index], - ] + [for (final int index in column) products[index]], ]; } @@ -70,10 +66,7 @@ List> _generateLayout({ /// [_iterateUntilBalanced] moves and swaps objects between columns /// until their heights are sufficiently close to each other. /// This prevents the layout having significant, avoidable gaps at the bottom. -void _iterateUntilBalanced( - List> columnObjects, - List columnHeights, -) { +void _iterateUntilBalanced(List> columnObjects, List columnHeights) { int failedMoves = 0; final int columnCount = columnObjects.length; @@ -109,9 +102,7 @@ void _iterateUntilBalanced( if (a.index == _emptyElement && b.index == _emptyElement) { continue; } else { - final double score = - (columnHeights[source] - a.height + b.height - bestHeight) - .abs(); + final double score = (columnHeights[source] - a.height + b.height - bestHeight).abs(); if (score < scoreLimit - _deviationImprovementThreshold) { success = true; if (bestScore == null || score < bestScore) { @@ -166,7 +157,9 @@ List> _balancedDistribution({ assert(biases.length == columnCount); final List> columnObjects = List>.generate( - columnCount, (int column) => <_TaggedHeightData>{}); + columnCount, + (int column) => <_TaggedHeightData>{}, + ); final List columnHeights = List.from(biases); @@ -205,10 +198,7 @@ List> balancedLayout({ // Check if this layout is cached. if (LayoutCache.of(context).containsKey(encodedParameters)) { - return _generateLayout( - products: products, - layout: LayoutCache.of(context)[encodedParameters]!, - ); + return _generateLayout(products: products, layout: LayoutCache.of(context)[encodedParameters]!); } final List productHeights = [ @@ -230,10 +220,7 @@ List> balancedLayout({ LayoutCache.of(context)[encodedParameters] = layout; - final List> result = _generateLayout( - products: products, - layout: layout, - ); + final List> result = _generateLayout(products: products, layout: layout); return result; } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart index 7a778c8ede1cca3a06d2f811556202159bc43dba..d5884f4d55690e8232e148e5a3dc1914d6dffd4d 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/desktop_product_columns.dart @@ -40,44 +40,37 @@ class DesktopProductCardColumn extends StatelessWidget { @override Widget build(BuildContext context) { - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - final int currentColumnProductCount = products.length; - final int currentColumnWidgetCount = - max(2 * currentColumnProductCount - 1, 0); + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final int currentColumnProductCount = products.length; + final int currentColumnWidgetCount = max(2 * currentColumnProductCount - 1, 0); - return SizedBox( - width: largeImageWidth, - child: Column( - crossAxisAlignment: - alignToEnd ? CrossAxisAlignment.end : CrossAxisAlignment.start, - children: [ - if (lowerStart) Container(height: columnTopSpace), - ...List.generate(currentColumnWidgetCount, (int index) { - Widget card; - if (index.isEven) { - // This is a product. - final int productCardIndex = index ~/ 2; - card = DesktopProductCard( - product: products[productCardIndex], - imageWidth: startLarge - ? ((productCardIndex.isEven) - ? largeImageWidth - : smallImageWidth) - : ((productCardIndex.isEven) - ? smallImageWidth - : largeImageWidth), - ); - } else { - // This is just a divider. - card = Container( - height: productCardDividerHeight, - ); - } - return RepaintBoundary(child: card); - }), - ], - ), - ); - }); + return SizedBox( + width: largeImageWidth, + child: Column( + crossAxisAlignment: alignToEnd ? CrossAxisAlignment.end : CrossAxisAlignment.start, + children: [ + if (lowerStart) Container(height: columnTopSpace), + ...List.generate(currentColumnWidgetCount, (int index) { + Widget card; + if (index.isEven) { + // This is a product. + final int productCardIndex = index ~/ 2; + card = DesktopProductCard( + product: products[productCardIndex], + imageWidth: + startLarge == productCardIndex.isEven ? largeImageWidth : smallImageWidth, + ); + } else { + // This is just a divider. + card = Container(height: productCardDividerHeight); + } + return RepaintBoundary(child: card); + }), + ], + ), + ); + }, + ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart index 2f0850ec351dd3de36eff76e9f3f2213ad9cdd96..083fa99982ce5bf1c55bfc915f4a7f9a77c65ba7 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/layout_cache.dart @@ -5,11 +5,7 @@ import 'package:flutter/material.dart'; class LayoutCache extends InheritedWidget { - const LayoutCache({ - super.key, - required this.layouts, - required super.child, - }); + const LayoutCache({super.key, required this.layouts, required super.child}); static Map>> of(BuildContext context) { return context.dependOnInheritedWidgetOfExactType()!.layouts; diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart index ff2c3a73a0acf13ac73b768782e2a93e925399f8..53084a4469102b4db2b2cd54ccf48310bc366741 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_card.dart @@ -13,11 +13,8 @@ import '../model/app_state_model.dart'; import '../model/product.dart'; class MobileProductCard extends StatelessWidget { - const MobileProductCard({ - super.key, - this.imageAspectRatio = 33 / 49, - required this.product, - }) : assert(imageAspectRatio > 0); + const MobileProductCard({super.key, this.imageAspectRatio = 33 / 49, required this.product}) + : assert(imageAspectRatio > 0); final double imageAspectRatio; final Product product; @@ -40,22 +37,14 @@ class MobileProductCard extends StatelessWidget { } class DesktopProductCard extends StatelessWidget { - const DesktopProductCard({ - super.key, - required this.product, - required this.imageWidth, - }); + const DesktopProductCard({super.key, required this.product, required this.imageWidth}); final Product product; final double imageWidth; @override Widget build(BuildContext context) { - return _buildProductCard( - context: context, - product: product, - imageWidth: imageWidth, - ); + return _buildProductCard(context: context, product: product, imageWidth: imageWidth); } } @@ -69,8 +58,7 @@ Widget _buildProductCard({ // In case of desktop , imageWidth is passed through [DesktopProductCard] in // case of mobile imageAspectRatio is passed through [MobileProductCard]. // Below assert is so that correct combination should always be present. - assert(isDesktop && imageWidth != null || - !isDesktop && imageAspectRatio != null); + assert(isDesktop && imageWidth != null || !isDesktop && imageAspectRatio != null); final NumberFormat formatter = NumberFormat.simpleCurrency( decimalDigits: 0, @@ -93,8 +81,7 @@ Widget _buildProductCard({ return ScopedModelDescendant( builder: (BuildContext context, Widget? child, AppStateModel model) { return Semantics( - hint: GalleryLocalizations.of(context)! - .shrineScreenReaderProductAddToCart, + hint: GalleryLocalizations.of(context)!.shrineScreenReaderProductAddToCart, child: MouseRegion( cursor: SystemMouseCursors.click, child: GestureDetector( @@ -111,10 +98,10 @@ Widget _buildProductCard({ Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - if (isDesktop) imageWidget else AspectRatio( - aspectRatio: imageAspectRatio!, - child: imageWidget, - ), + if (isDesktop) + imageWidget + else + AspectRatio(aspectRatio: imageAspectRatio!, child: imageWidget), SizedBox( child: Column( children: [ @@ -129,19 +116,13 @@ Widget _buildProductCard({ ), ), const SizedBox(height: 4), - Text( - formatter.format(product.price), - style: theme.textTheme.bodySmall, - ), + Text(formatter.format(product.price), style: theme.textTheme.bodySmall), ], ), ), ], ), - const Padding( - padding: EdgeInsets.all(16), - child: Icon(Icons.add_shopping_cart), - ), + const Padding(padding: EdgeInsets.all(16), child: Icon(Icons.add_shopping_cart)), ], ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart index ee27e0694b4aa17a1c485e87fb345106ff0031f8..78a6710e03dd2cd224240e6121747ead9f8242e1 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/supplemental/product_columns.dart @@ -24,41 +24,32 @@ class TwoProductCardColumn extends StatelessWidget { @override Widget build(BuildContext context) { - return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { - return ListView( - physics: const ClampingScrollPhysics(), - children: [ - Padding( - padding: const EdgeInsetsDirectional.only(start: horizontalPadding), - child: top != null - ? MobileProductCard( - imageAspectRatio: imageAspectRatio, - product: top!, - ) - : const SizedBox( - height: spacerHeight, - ), - ), - const SizedBox(height: spacerHeight), - Padding( - padding: const EdgeInsetsDirectional.only(end: horizontalPadding), - child: MobileProductCard( - imageAspectRatio: imageAspectRatio, - product: bottom, + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return ListView( + physics: const ClampingScrollPhysics(), + children: [ + Padding( + padding: const EdgeInsetsDirectional.only(start: horizontalPadding), + child: + top != null + ? MobileProductCard(imageAspectRatio: imageAspectRatio, product: top!) + : const SizedBox(height: spacerHeight), ), - ), - ], - ); - }); + const SizedBox(height: spacerHeight), + Padding( + padding: const EdgeInsetsDirectional.only(end: horizontalPadding), + child: MobileProductCard(imageAspectRatio: imageAspectRatio, product: bottom), + ), + ], + ); + }, + ); } } class OneProductCardColumn extends StatelessWidget { - const OneProductCardColumn({ - super.key, - required this.product, - required this.reverse, - }); + const OneProductCardColumn({super.key, required this.product, required this.reverse}); final Product product; @@ -70,14 +61,7 @@ class OneProductCardColumn extends StatelessWidget { return ListView( physics: const ClampingScrollPhysics(), reverse: reverse, - children: [ - const SizedBox( - height: 40, - ), - MobileProductCard( - product: product, - ), - ], + children: [const SizedBox(height: 40), MobileProductCard(product: product)], ); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart index fe74ebebec1f8f4a960d50e04eca63d06148d551..68eed016e6bf9e82b552cdd4577aeaa7e7ed83d5 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/theme.dart @@ -21,74 +21,63 @@ IconThemeData _customIconTheme(IconThemeData original) { } ThemeData _buildShrineTheme() { - final ThemeData base = ThemeData.light(); + final ThemeData base = ThemeData(); return base.copyWith( - appBarTheme: const AppBarTheme( - systemOverlayStyle: SystemUiOverlayStyle.dark, - elevation: 0, - ), + appBarTheme: const AppBarTheme(systemOverlayStyle: SystemUiOverlayStyle.dark, elevation: 0), scaffoldBackgroundColor: shrineBackgroundWhite, cardColor: shrineBackgroundWhite, primaryIconTheme: _customIconTheme(base.iconTheme), inputDecorationTheme: const InputDecorationTheme( - border: CutCornersBorder( - borderSide: BorderSide(color: shrineBrown900, width: 0.5), - ), + border: CutCornersBorder(borderSide: BorderSide(color: shrineBrown900, width: 0.5)), contentPadding: EdgeInsets.symmetric(vertical: 20, horizontal: 16), ), textTheme: _buildShrineTextTheme(base.textTheme), - textSelectionTheme: const TextSelectionThemeData( - selectionColor: shrinePink100, - ), + textSelectionTheme: const TextSelectionThemeData(selectionColor: shrinePink100), primaryTextTheme: _buildShrineTextTheme(base.primaryTextTheme), iconTheme: _customIconTheme(base.iconTheme), - colorScheme: _shrineColorScheme.copyWith( - error: shrineErrorRed, - primary: shrinePink100, - ), + colorScheme: _shrineColorScheme.copyWith(error: shrineErrorRed, primary: shrinePink100), ); } TextTheme _buildShrineTextTheme(TextTheme base) { - return GoogleFonts.rubikTextTheme(base - .copyWith( - headlineSmall: base.headlineSmall!.copyWith( - fontWeight: FontWeight.w500, - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - titleLarge: base.titleLarge!.copyWith( - fontSize: 18, - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - bodySmall: base.bodySmall!.copyWith( - fontWeight: FontWeight.w400, - fontSize: 14, - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - bodyLarge: base.bodyLarge!.copyWith( - fontWeight: FontWeight.w500, - fontSize: 16, - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - bodyMedium: base.bodyMedium!.copyWith( - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - titleMedium: base.titleMedium!.copyWith( - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - headlineMedium: base.headlineMedium!.copyWith( - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - labelLarge: base.labelLarge!.copyWith( - fontWeight: FontWeight.w500, - fontSize: 14, - letterSpacing: letterSpacingOrNone(defaultLetterSpacing), - ), - ) - .apply( - displayColor: shrineBrown900, - bodyColor: shrineBrown900, - )); + return GoogleFonts.rubikTextTheme( + base + .copyWith( + headlineSmall: base.headlineSmall!.copyWith( + fontWeight: FontWeight.w500, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + titleLarge: base.titleLarge!.copyWith( + fontSize: 18, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodySmall: base.bodySmall!.copyWith( + fontWeight: FontWeight.w400, + fontSize: 14, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodyLarge: base.bodyLarge!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 16, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + bodyMedium: base.bodyMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + titleMedium: base.titleMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + headlineMedium: base.headlineMedium!.copyWith( + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + labelLarge: base.labelLarge!.copyWith( + fontWeight: FontWeight.w500, + fontSize: 14, + letterSpacing: letterSpacingOrNone(defaultLetterSpacing), + ), + ) + .apply(displayColor: shrineBrown900, bodyColor: shrineBrown900), + ); } const ColorScheme _shrineColorScheme = ColorScheme( diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart index d14a7e63f125c51839bc550c69d554cb197d6d73..43ca170ac9dcbe41370ffa84dc827e17dfd72683 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/shrine/triangle_category_indicator.dart @@ -18,25 +18,23 @@ const List _vertices = [ ]; class TriangleCategoryIndicator extends CustomPainter { - const TriangleCategoryIndicator( - this.triangleWidth, - this.triangleHeight, - ); + const TriangleCategoryIndicator(this.triangleWidth, this.triangleHeight); final double triangleWidth; final double triangleHeight; @override void paint(Canvas canvas, Size size) { - final Path myPath = Path() - ..addPolygon( - List.from(_vertices.map((Offset vertex) { - return Offset(size.width, size.height) / 2 + - Offset(vertex.dx * triangleWidth / 34, - vertex.dy * triangleHeight / 28); - })), - true, - ); + final Path myPath = + Path()..addPolygon( + List.from( + _vertices.map((Offset vertex) { + return Offset(size.width, size.height) / 2 + + Offset(vertex.dx * triangleWidth / 34, vertex.dy * triangleHeight / 28); + }), + ), + true, + ); final Paint myPaint = Paint()..color = shrinePink400; canvas.drawPath(myPath, myPaint); } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart index 5a587e4bc568446875deef57f0cd7f7658db5556..e3864aa125ae7edba6ac51bf81b1876b32712bef 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/starter/app.dart @@ -46,10 +46,7 @@ class StarterApp extends StatelessWidget { onSurface: Colors.black, brightness: Brightness.light, ), - dividerTheme: const DividerThemeData( - thickness: 1, - color: Color(0xFFE5E5E5), - ), + dividerTheme: const DividerThemeData(thickness: 1, color: Color(0xFFE5E5E5)), platform: GalleryOptions.of(context).platform, ), ); @@ -61,8 +58,6 @@ class _Home extends StatelessWidget { @override Widget build(BuildContext context) { - return const ApplyTextOptions( - child: HomePage(), - ); + return const ApplyTextOptions(child: HomePage()); } } diff --git a/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart b/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart index fb84874d9a631a9e0ef4bea55d2ada9acefa4988..e4fef86c353d86dd7f6d6b901efbe6e1081e7d2c 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/studies/starter/home.dart @@ -20,28 +20,21 @@ class HomePage extends StatelessWidget { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; final SafeArea body = SafeArea( child: Padding( - padding: isDesktop - ? const EdgeInsets.symmetric(horizontal: 72, vertical: 48) - : const EdgeInsets.symmetric(horizontal: 16, vertical: 24), + padding: + isDesktop + ? const EdgeInsets.symmetric(horizontal: 72, vertical: 48) + : const EdgeInsets.symmetric(horizontal: 16, vertical: 24), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SelectableText( localizations.starterAppGenericHeadline, - style: textTheme.displaySmall!.copyWith( - color: colorScheme.onSecondary, - ), + style: textTheme.displaySmall!.copyWith(color: colorScheme.onSecondary), ), const SizedBox(height: 10), - SelectableText( - localizations.starterAppGenericSubtitle, - style: textTheme.titleMedium, - ), + SelectableText(localizations.starterAppGenericSubtitle, style: textTheme.titleMedium), const SizedBox(height: 48), - SelectableText( - localizations.starterAppGenericBody, - style: textTheme.bodyLarge, - ), + SelectableText(localizations.starterAppGenericBody, style: textTheme.bodyLarge), ], ), ), @@ -54,9 +47,7 @@ class HomePage extends StatelessWidget { const VerticalDivider(width: 1), Expanded( child: Scaffold( - appBar: const AdaptiveAppBar( - isDesktop: true, - ), + appBar: const AdaptiveAppBar(isDesktop: true), body: body, floatingActionButton: FloatingActionButton.extended( heroTag: 'Extended Add', @@ -81,10 +72,7 @@ class HomePage extends StatelessWidget { heroTag: 'Add', onPressed: () {}, tooltip: localizations.starterAppTooltipAdd, - child: Icon( - Icons.add, - color: Theme.of(context).colorScheme.onSecondary, - ), + child: Icon(Icons.add, color: Theme.of(context).colorScheme.onSecondary), ), ); } @@ -92,17 +80,15 @@ class HomePage extends StatelessWidget { } class AdaptiveAppBar extends StatelessWidget implements PreferredSizeWidget { - const AdaptiveAppBar({ - super.key, - this.isDesktop = false, - }); + const AdaptiveAppBar({super.key, this.isDesktop = false}); final bool isDesktop; @override - Size get preferredSize => isDesktop - ? const Size.fromHeight(appBarDesktopHeight) - : const Size.fromHeight(kToolbarHeight); + Size get preferredSize => + isDesktop + ? const Size.fromHeight(appBarDesktopHeight) + : const Size.fromHeight(kToolbarHeight); @override Widget build(BuildContext context) { @@ -110,24 +96,23 @@ class AdaptiveAppBar extends StatelessWidget implements PreferredSizeWidget { final GalleryLocalizations localizations = GalleryLocalizations.of(context)!; return AppBar( automaticallyImplyLeading: !isDesktop, - title: isDesktop - ? null - : SelectableText(localizations.starterAppGenericTitle), - bottom: isDesktop - ? PreferredSize( - preferredSize: const Size.fromHeight(26), - child: Container( - alignment: AlignmentDirectional.centerStart, - margin: const EdgeInsetsDirectional.fromSTEB(72, 0, 0, 22), - child: SelectableText( - localizations.starterAppGenericTitle, - style: themeData.textTheme.titleLarge!.copyWith( - color: themeData.colorScheme.onPrimary, + title: isDesktop ? null : SelectableText(localizations.starterAppGenericTitle), + bottom: + isDesktop + ? PreferredSize( + preferredSize: const Size.fromHeight(26), + child: Container( + alignment: AlignmentDirectional.centerStart, + margin: const EdgeInsetsDirectional.fromSTEB(72, 0, 0, 22), + child: SelectableText( + localizations.starterAppGenericTitle, + style: themeData.textTheme.titleLarge!.copyWith( + color: themeData.colorScheme.onPrimary, + ), ), ), - ), - ) - : null, + ) + : null, actions: [ IconButton( icon: const Icon(Icons.share), @@ -170,10 +155,7 @@ class _ListDrawerState extends State { child: ListView( children: [ ListTile( - title: SelectableText( - localizations.starterAppTitle, - style: textTheme.titleLarge, - ), + title: SelectableText(localizations.starterAppTitle, style: textTheme.titleLarge), subtitle: SelectableText( localizations.starterAppGenericSubtitle, style: textTheme.bodyMedium, @@ -184,9 +166,7 @@ class _ListDrawerState extends State { return ListTile( selected: i == selectedItem, leading: const Icon(Icons.favorite), - title: Text( - localizations.starterAppDrawerItem(i + 1), - ), + title: Text(localizations.starterAppDrawerItem(i + 1)), onTap: () { setState(() { selectedItem = i; diff --git a/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart b/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart index 6c976d96181841d92f3489bd8a8f5d7bcf58cbe6..9693d8e896c2fe81f1c9adeba3dfb90c326e87ec 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/themes/gallery_theme_data.dart @@ -12,8 +12,7 @@ class GalleryThemeData { static final Color _lightFocusColor = Colors.black.withOpacity(0.12); static final Color _darkFocusColor = Colors.white.withOpacity(0.12); - static ThemeData lightThemeData = - themeData(lightColorScheme, _lightFocusColor); + static ThemeData lightThemeData = themeData(lightColorScheme, _lightFocusColor); static ThemeData darkThemeData = themeData(darkColorScheme, _darkFocusColor); static ThemeData themeData(ColorScheme colorScheme, Color focusColor) { @@ -32,10 +31,7 @@ class GalleryThemeData { focusColor: focusColor, snackBarTheme: SnackBarThemeData( behavior: SnackBarBehavior.floating, - backgroundColor: Color.alphaBlend( - _lightFillColor.withOpacity(0.80), - _darkFillColor, - ), + backgroundColor: Color.alphaBlend(_lightFillColor.withOpacity(0.80), _darkFillColor), contentTextStyle: _textTheme.titleMedium!.apply(color: _darkFillColor), ), ); diff --git a/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart b/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart index de2b98d27684ff291700ef1e09d7b9e351a600b3..08c022ba63fa5a410ed876bbc18bed57482867aa 100644 --- a/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart +++ b/flutter/dev/integration_tests/new_gallery/lib/themes/material_demo_theme_data.dart @@ -7,67 +7,54 @@ import 'package:flutter/material.dart'; class MaterialDemoThemeData { static final ThemeData themeData = ThemeData( - colorScheme: _colorScheme.copyWith( - background: Colors.white, - ), - canvasColor: _colorScheme.background, - highlightColor: Colors.transparent, - indicatorColor: _colorScheme.onPrimary, - scaffoldBackgroundColor: _colorScheme.background, - secondaryHeaderColor: _colorScheme.background, - typography: Typography.material2018( - platform: defaultTargetPlatform, - ), - visualDensity: VisualDensity.standard, - // Component themes - appBarTheme: AppBarTheme( - color: _colorScheme.primary, - iconTheme: IconThemeData(color: _colorScheme.onPrimary), - ), - bottomAppBarTheme: BottomAppBarTheme( - color: _colorScheme.primary, - ), - checkboxTheme: CheckboxThemeData( - fillColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { - return null; - } - return states.contains(MaterialState.selected) - ? _colorScheme.primary - : null; - }), - ), - radioTheme: RadioThemeData( - fillColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { - return null; - } - return states.contains(MaterialState.selected) - ? _colorScheme.primary - : null; - }), - ), - snackBarTheme: const SnackBarThemeData( - behavior: SnackBarBehavior.floating, - ), - switchTheme: SwitchThemeData( - thumbColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { - return null; - } - return states.contains(MaterialState.selected) - ? _colorScheme.primary - : null; - }), - trackColor: MaterialStateProperty.resolveWith((Set states) { - if (states.contains(MaterialState.disabled)) { - return null; - } - return states.contains(MaterialState.selected) - ? _colorScheme.primary.withAlpha(0x80) - : null; - }), - )); + colorScheme: _colorScheme.copyWith(background: Colors.white), + canvasColor: _colorScheme.background, + highlightColor: Colors.transparent, + indicatorColor: _colorScheme.onPrimary, + scaffoldBackgroundColor: _colorScheme.background, + secondaryHeaderColor: _colorScheme.background, + typography: Typography.material2018(platform: defaultTargetPlatform), + visualDensity: VisualDensity.standard, + // Component themes + appBarTheme: AppBarTheme( + color: _colorScheme.primary, + iconTheme: IconThemeData(color: _colorScheme.onPrimary), + ), + bottomAppBarTheme: BottomAppBarTheme(color: _colorScheme.primary), + checkboxTheme: CheckboxThemeData( + fillColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) ? _colorScheme.primary : null; + }), + ), + radioTheme: RadioThemeData( + fillColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) ? _colorScheme.primary : null; + }), + ), + snackBarTheme: const SnackBarThemeData(behavior: SnackBarBehavior.floating), + switchTheme: SwitchThemeData( + thumbColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) ? _colorScheme.primary : null; + }), + trackColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return null; + } + return states.contains(MaterialState.selected) + ? _colorScheme.primary.withAlpha(0x80) + : null; + }), + ), + ); static const ColorScheme _colorScheme = ColorScheme( primary: Color(0xFF6200EE), diff --git a/flutter/dev/integration_tests/new_gallery/pubspec.yaml b/flutter/dev/integration_tests/new_gallery/pubspec.yaml index a931c48101045365aa44f6fcdc57b12fea990089..fe2b3f25c2190b8e5ddadb3c9964513278e6e4af 100644 --- a/flutter/dev/integration_tests/new_gallery/pubspec.yaml +++ b/flutter/dev/integration_tests/new_gallery/pubspec.yaml @@ -5,7 +5,7 @@ version: 2.10.2+021002 # See README.md for details on versioning. environment: flutter: ^3.13.0 - sdk: ^3.1.0 + sdk: ^3.7.0-0 dependencies: flutter: @@ -14,101 +14,101 @@ dependencies: sdk: flutter adaptive_breakpoints: 0.1.7 animations: 2.0.11 - collection: 1.18.0 + collection: 1.19.1 cupertino_icons: 1.0.8 flutter_gallery_assets: 1.0.2 flutter_localized_locales: 2.0.5 flutter_staggered_grid_view: 0.7.0 - google_fonts: 4.0.4 - intl: 0.19.0 - meta: 1.15.0 - provider: 6.1.2 + google_fonts: 6.2.1 + intl: 0.20.2 + meta: 1.16.0 + provider: 6.1.4 rally_assets: 3.0.1 scoped_model: 2.0.0 shrine_images: 2.0.2 - url_launcher: 6.3.0 + url_launcher: 6.3.1 vector_math: 2.1.4 - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - ffi: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http: 0.13.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + ffi: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" nested: 1.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_android: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_foundation: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider: 2.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_android: 2.2.16 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_foundation: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" path_provider_linux: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" path_provider_platform_interface: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path_provider_windows: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - platform: 3.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_windows: 2.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" plugin_platform_interface: 2.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_android: 6.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_ios: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_linux: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_macos: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_android: 6.3.15 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_ios: 6.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_linux: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_macos: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" url_launcher_platform_interface: 2.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_web: 2.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - url_launcher_windows: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - win32: 5.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - xdg_directories: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_web: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_windows: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + xdg_directories: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" dev_dependencies: flutter_test: sdk: flutter flutter_driver: sdk: flutter - test: 1.25.7 + test: 1.25.15 - _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 3.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true @@ -311,4 +311,4 @@ flutter: fonts: - asset: packages/flutter_gallery_assets/fonts/GalleryIcons.ttf -# PUBSPEC CHECKSUM: 579a +# PUBSPEC CHECKSUM: 985f diff --git a/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart b/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart index fe9cf2d6bd2cef0896ce3814dfae106f6264c3c1..1481a879e379fbe3c7c51bd665ddb78a5f6f96a7 100644 --- a/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart +++ b/flutter/dev/integration_tests/new_gallery/test/demo_descriptions_test.dart @@ -34,13 +34,7 @@ void main() { final List allDemoDescriptions = allDemos.map((GalleryDemo d) => d.describe).toList(); expect(_isUnique(allDemoDescriptions), true); - expect( - _stringListEquality.equals( - allDemoDescriptions, - Demos.allDescriptions(), - ), - true, - ); + expect(_stringListEquality.equals(allDemoDescriptions, Demos.allDescriptions()), true); }); test('Special demo descriptions are correct', () { diff --git a/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart b/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart index da0ca1b5eab7a7aacbdcb9dc27f28d0996ac98a9..183a809225418602b70e01d02e97699c4b7dc4e1 100644 --- a/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart +++ b/flutter/dev/integration_tests/new_gallery/test/pages/home_test.dart @@ -28,8 +28,7 @@ void main() { await tester.pumpWidget(const GalleryApp()); await tester.pumpAndSettle(); - final ListView listview = - tester.widget(find.byKey(const ValueKey('HomeListView'))); + final ListView listview = tester.widget(find.byKey(const ValueKey('HomeListView'))); expect(listview.primary, true); }); diff --git a/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart b/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart index d62371ebb08a2e78c56ee9a9c8807a2eed19d0c0..c4264d0d3b44828fd13348880fdb03661c199954 100644 --- a/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart +++ b/flutter/dev/integration_tests/new_gallery/test_driver/transitions_perf_test.dart @@ -89,28 +89,21 @@ Future scrollToTop(SerializableFinder demoItem, FlutterDriver driver) asyn stdout.writeln('scrolling to top'); // Scroll to the Categories header. - await driver.scroll( - demoItem, - 0, - 5000, - const Duration(milliseconds: 200), - ); + await driver.scroll(demoItem, 0, 5000, const Duration(milliseconds: 200)); handleOverscrollAnimation(); // Scroll to top. - await driver.scroll( - categoriesHeader, - 0, - 500, - const Duration(milliseconds: 200), - ); + await driver.scroll(categoriesHeader, 0, 500, const Duration(milliseconds: 200)); handleOverscrollAnimation(); } /// Returns a [Future] that resolves to true if the widget specified by [finder] /// is present, false otherwise. -Future isPresent(SerializableFinder finder, FlutterDriver driver, - {Duration timeout = const Duration(seconds: 5)}) async { +Future isPresent( + SerializableFinder finder, + FlutterDriver driver, { + Duration timeout = const Duration(seconds: 5), +}) async { try { await driver.waitFor(finder, timeout: timeout); return true; @@ -180,10 +173,14 @@ Future runDemos( // back to its previous position, if it's too large, it may scroll too far. // To resolve this, we scroll 75% of the list width/height dimensions on // each increment. - final DriverOffset topLeft = - await driver.getTopLeft(demoList, timeout: const Duration(seconds: 10)); - final DriverOffset bottomRight = await driver.getBottomRight(demoList, - timeout: const Duration(seconds: 10)); + final DriverOffset topLeft = await driver.getTopLeft( + demoList, + timeout: const Duration(seconds: 10), + ); + final DriverOffset bottomRight = await driver.getBottomRight( + demoList, + timeout: const Duration(seconds: 10), + ); final double listWidth = bottomRight.dx - topLeft.dx; final double listHeight = bottomRight.dy - topLeft.dy; await driver.scrollUntilVisible( @@ -234,20 +231,18 @@ void main([List args = const []]) { driver = await FlutterDriver.connect(); // See _handleMessages() in transitions_perf.dart. - _allDemos = List.from(json.decode( - await driver.requestData('demoDescriptions'), - ) as List); + _allDemos = List.from( + json.decode(await driver.requestData('demoDescriptions')) as List, + ); if (_allDemos.isEmpty) { throw 'no demo names found'; } // See _handleMessages() in transitions_perf.dart. - isTestingCraneOnly = - await driver.requestData('isTestingCraneOnly') == 'true'; + isTestingCraneOnly = await driver.requestData('isTestingCraneOnly') == 'true'; // See _handleMessages() in transitions_perf.dart. - isTestingReplyOnly = - await driver.requestData('isTestingReplyOnly') == 'true'; + isTestingReplyOnly = await driver.requestData('isTestingReplyOnly') == 'true'; if (args.contains('--with_semantics')) { stdout.writeln('Enabling semantics...'); @@ -261,7 +256,8 @@ void main([List args = const []]) { await driver.close(); stdout.writeln( - 'Timeline summaries for profiled demos have been output to the build/ directory.'); + 'Timeline summaries for profiled demos have been output to the build/ directory.', + ); }); test('only Crane', () async { @@ -270,25 +266,15 @@ void main([List args = const []]) { } // Collect timeline data for just the Crane study. - final Timeline timeline = await driver.traceAction( - () async { - await runDemos( - ['crane@study'], - driver, - additionalActions: () async => driver.scroll( - craneFlyList, - 0, - -1000, - const Duration(seconds: 1), - ), - scrollToTopWhenDone: false, - ); - }, - streams: const [ - TimelineStream.dart, - TimelineStream.embedder, - ], - ); + final Timeline timeline = await driver.traceAction(() async { + await runDemos( + ['crane@study'], + driver, + additionalActions: + () async => driver.scroll(craneFlyList, 0, -1000, const Duration(seconds: 1)), + scrollToTopWhenDone: false, + ); + }, streams: const [TimelineStream.dart, TimelineStream.embedder]); final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('transitions-crane', pretty: true); @@ -300,41 +286,35 @@ void main([List args = const []]) { } // Collect timeline data for just the Crane study. - final Timeline timeline = await driver.traceAction( - () async { - await runDemos( - ['reply@study'], - driver, - additionalActions: () async { - // Tap compose fab to trigger open container transform/fade through - await driver.tap(replyFab); - // Exit compose page - await driver.tap(replyExit); - // Tap search icon to trigger shared axis transition - await driver.tap(replySearch); - // Exit search page - await driver.tap(replyExit); - // Tap on email to trigger open container transform - await driver.tap(replyEmail); - // Exit email page - await driver.tap(replyExit); - // Tap Reply logo to open bottom drawer/navigation rail - await driver.tap(replyLogo); - // Tap Reply logo to close bottom drawer/navigation rail - await driver.tap(replyLogo); - // Tap Reply logo to open bottom drawer/navigation rail - await driver.tap(replyLogo); - // Tap sent mailbox destination to trigger fade through transition - await driver.tap(replySentMailbox); - }, - scrollToTopWhenDone: false, - ); - }, - streams: const [ - TimelineStream.dart, - TimelineStream.embedder, - ], - ); + final Timeline timeline = await driver.traceAction(() async { + await runDemos( + ['reply@study'], + driver, + additionalActions: () async { + // Tap compose fab to trigger open container transform/fade through + await driver.tap(replyFab); + // Exit compose page + await driver.tap(replyExit); + // Tap search icon to trigger shared axis transition + await driver.tap(replySearch); + // Exit search page + await driver.tap(replyExit); + // Tap on email to trigger open container transform + await driver.tap(replyEmail); + // Exit email page + await driver.tap(replyExit); + // Tap Reply logo to open bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap Reply logo to close bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap Reply logo to open bottom drawer/navigation rail + await driver.tap(replyLogo); + // Tap sent mailbox destination to trigger fade through transition + await driver.tap(replySentMailbox); + }, + scrollToTopWhenDone: false, + ); + }, streams: const [TimelineStream.dart, TimelineStream.embedder]); final TimelineSummary summary = TimelineSummary.summarize(timeline); await summary.writeTimelineToFile('transitions-reply', pretty: true); @@ -350,10 +330,7 @@ void main([List args = const []]) { () async { await runDemos(_profiledDemos, driver); }, - streams: const [ - TimelineStream.dart, - TimelineStream.embedder, - ], + streams: const [TimelineStream.dart, TimelineStream.embedder], retainPriorEvents: true, ); @@ -361,8 +338,7 @@ void main([List args = const []]) { await summary.writeTimelineToFile('transitions', pretty: true); // Execute the remaining tests. - final Set unprofiledDemos = Set.from(_allDemos) - ..removeAll(_profiledDemos); + final Set unprofiledDemos = Set.from(_allDemos)..removeAll(_profiledDemos); await runDemos(unprofiledDemos.toList(), driver); }, timeout: Timeout.none); }); diff --git a/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle b/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle index f9a615f46c00fb6bc1d4ed6f5343f645021add11..70cc6a001520ab4b8ec3fd3355ceb6bb9f75f2a2 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle +++ b/flutter/dev/integration_tests/platform_interaction/android/app/build.gradle @@ -2,6 +2,11 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +plugins { + id "com.android.application" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -10,20 +15,22 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { + namespace = "com.yourcompany.platforminteraction" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } defaultConfig { diff --git a/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml b/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml index 6c7c6a539bdc282212bad2c316bd6fb160107f19..ac590f1d1c290bb3409e97962ff6f73bd9930687 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml +++ b/flutter/dev/integration_tests/platform_interaction/android/app/src/main/AndroidManifest.xml @@ -2,8 +2,7 @@ Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> - + android:value="2" /> diff --git a/flutter/dev/integration_tests/platform_interaction/android/build.gradle b/flutter/dev/integration_tests/platform_interaction/android/build.gradle index a2a88669529869e1fd2debbc4b67f4f7415b93ae..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/build.gradle +++ b/flutter/dev/integration_tests/platform_interaction/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.7.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile b/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile index eb605802d98f5f505e9112f6f1d9c85b5269553d..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile +++ b/flutter/dev/integration_tests/platform_interaction/android/buildscript-gradle.lockfile @@ -1,64 +1,68 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.databinding:databinding-common:7.3.0=classpath -androidx.databinding:databinding-compiler-common:7.3.0=classpath -com.android.databinding:baseLibrary:7.3.0=classpath -com.android.tools.analytics-library:crash:30.3.0=classpath -com.android.tools.analytics-library:protos:30.3.0=classpath -com.android.tools.analytics-library:shared:30.3.0=classpath -com.android.tools.analytics-library:tracker:30.3.0=classpath +androidx.databinding:databinding-common:8.7.0=classpath +androidx.databinding:databinding-compiler-common:8.7.0=classpath +com.android.application:com.android.application.gradle.plugin:8.7.0=classpath +com.android.databinding:baseLibrary:8.7.0=classpath +com.android.tools.analytics-library:crash:31.7.0=classpath +com.android.tools.analytics-library:protos:31.7.0=classpath +com.android.tools.analytics-library:shared:31.7.0=classpath +com.android.tools.analytics-library:tracker:31.7.0=classpath com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath -com.android.tools.build:aapt2-proto:7.3.0-8691043=classpath -com.android.tools.build:aaptcompiler:7.3.0=classpath -com.android.tools.build:apksig:7.3.0=classpath -com.android.tools.build:apkzlib:7.3.0=classpath -com.android.tools.build:builder-model:7.3.0=classpath -com.android.tools.build:builder-test-api:7.3.0=classpath -com.android.tools.build:builder:7.3.0=classpath -com.android.tools.build:bundletool:1.9.0=classpath -com.android.tools.build:gradle-api:7.3.0=classpath -com.android.tools.build:gradle:7.3.0=classpath -com.android.tools.build:manifest-merger:30.3.0=classpath +com.android.tools.build:aapt2-proto:8.7.0-12006047=classpath +com.android.tools.build:aaptcompiler:8.7.0=classpath +com.android.tools.build:apksig:8.7.0=classpath +com.android.tools.build:apkzlib:8.7.0=classpath +com.android.tools.build:builder-model:8.7.0=classpath +com.android.tools.build:builder-test-api:8.7.0=classpath +com.android.tools.build:builder:8.7.0=classpath +com.android.tools.build:bundletool:1.17.1=classpath +com.android.tools.build:gradle-api:8.7.0=classpath +com.android.tools.build:gradle-settings-api:8.7.0=classpath +com.android.tools.build:gradle:8.7.0=classpath +com.android.tools.build:manifest-merger:31.7.0=classpath com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath -com.android.tools.ddms:ddmlib:30.3.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.3.0=classpath -com.android.tools.lint:lint-model:30.3.0=classpath -com.android.tools.lint:lint-typedef-remover:30.3.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpath -com.android.tools:annotations:30.3.0=classpath -com.android.tools:common:30.3.0=classpath -com.android.tools:dvlib:30.3.0=classpath -com.android.tools:repository:30.3.0=classpath -com.android.tools:sdk-common:30.3.0=classpath -com.android.tools:sdklib:30.3.0=classpath -com.android:signflinger:7.3.0=classpath -com.android:zipflinger:7.3.0=classpath -com.github.gundy:semver4j:0.16.4=classpath +com.android.tools.ddms:ddmlib:31.7.0=classpath +com.android.tools.layoutlib:layoutlib-api:31.7.0=classpath +com.android.tools.lint:lint-model:31.7.0=classpath +com.android.tools.lint:lint-typedef-remover:31.7.0=classpath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=classpath +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=classpath +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=classpath +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=classpath +com.android.tools:annotations:31.7.0=classpath +com.android.tools:common:31.7.0=classpath +com.android.tools:dvlib:31.7.0=classpath +com.android.tools:repository:31.7.0=classpath +com.android.tools:sdk-common:31.7.0=classpath +com.android.tools:sdklib:31.7.0=classpath +com.android:signflinger:8.7.0=classpath +com.android:zipflinger:8.7.0=classpath com.google.android:annotations:4.1.1.4=classpath -com.google.api.grpc:proto-google-common-protos:2.0.1=classpath +com.google.api.grpc:proto-google-common-protos:2.17.0=classpath com.google.auto.value:auto-value-annotations:1.6.2=classpath com.google.code.findbugs:jsr305:3.0.2=classpath -com.google.code.gson:gson:2.8.9=classpath -com.google.crypto.tink:tink:1.3.0-rc2=classpath +com.google.code.gson:gson:2.10.1=classpath +com.google.crypto.tink:tink:1.7.0=classpath com.google.dagger:dagger:2.28.3=classpath -com.google.errorprone:error_prone_annotations:2.4.0=classpath +com.google.errorprone:error_prone_annotations:2.18.0=classpath com.google.flatbuffers:flatbuffers-java:1.12.0=classpath com.google.guava:failureaccess:1.0.1=classpath -com.google.guava:guava:30.1-jre=classpath +com.google.guava:guava:32.0.1-jre=classpath com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath -com.google.j2objc:j2objc-annotations:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.17.2=classpath -com.google.protobuf:protobuf-java:3.17.2=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple:1.1=classpath +com.google.protobuf:protobuf-java-util:3.22.3=classpath +com.google.protobuf:protobuf-java:3.22.3=classpath +com.google.testing.platform:core-proto:0.0.9-alpha02=classpath com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath com.squareup:javapoet:1.10.0=classpath com.squareup:javawriter:2.5.0=classpath @@ -66,28 +70,27 @@ com.sun.activation:javax.activation:1.2.0=classpath com.sun.istack:istack-commons-runtime:3.0.8=classpath com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath commons-codec:commons-codec:1.11=classpath -commons-io:commons-io:2.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.39.0=classpath -io.grpc:grpc-context:1.39.0=classpath -io.grpc:grpc-core:1.39.0=classpath -io.grpc:grpc-netty:1.39.0=classpath -io.grpc:grpc-protobuf-lite:1.39.0=classpath -io.grpc:grpc-protobuf:1.39.0=classpath -io.grpc:grpc-stub:1.39.0=classpath -io.netty:netty-buffer:4.1.52.Final=classpath -io.netty:netty-codec-http2:4.1.52.Final=classpath -io.netty:netty-codec-http:4.1.52.Final=classpath -io.netty:netty-codec-socks:4.1.52.Final=classpath -io.netty:netty-codec:4.1.52.Final=classpath -io.netty:netty-common:4.1.52.Final=classpath -io.netty:netty-handler-proxy:4.1.52.Final=classpath -io.netty:netty-handler:4.1.52.Final=classpath -io.netty:netty-resolver:4.1.52.Final=classpath -io.netty:netty-transport:4.1.52.Final=classpath -io.perfmark:perfmark-api:0.23.0=classpath -it.unimi.dsi:fastutil:8.4.0=classpath +io.grpc:grpc-api:1.57.0=classpath +io.grpc:grpc-context:1.57.0=classpath +io.grpc:grpc-core:1.57.0=classpath +io.grpc:grpc-netty:1.57.0=classpath +io.grpc:grpc-protobuf-lite:1.57.0=classpath +io.grpc:grpc-protobuf:1.57.0=classpath +io.grpc:grpc-stub:1.57.0=classpath +io.netty:netty-buffer:4.1.93.Final=classpath +io.netty:netty-codec-http2:4.1.93.Final=classpath +io.netty:netty-codec-http:4.1.93.Final=classpath +io.netty:netty-codec-socks:4.1.93.Final=classpath +io.netty:netty-codec:4.1.93.Final=classpath +io.netty:netty-common:4.1.93.Final=classpath +io.netty:netty-handler-proxy:4.1.93.Final=classpath +io.netty:netty-handler:4.1.93.Final=classpath +io.netty:netty-resolver:4.1.93.Final=classpath +io.netty:netty-transport-native-unix-common:4.1.93.Final=classpath +io.netty:netty-transport:4.1.93.Final=classpath +io.perfmark:perfmark-api:0.26.0=classpath jakarta.activation:jakarta.activation-api:1.2.1=classpath jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath javax.annotation:javax.annotation-api:1.3.2=classpath @@ -96,57 +99,60 @@ net.java.dev.jna:jna-platform:5.6.0=classpath net.java.dev.jna:jna:5.6.0=classpath net.sf.jopt-simple:jopt-simple:4.9=classpath net.sf.kxml:kxml2:2.3.0=classpath -org.apache.commons:commons-compress:1.20=classpath -org.apache.httpcomponents:httpclient:4.5.13=classpath -org.apache.httpcomponents:httpcore:4.4.13=classpath +org.apache.commons:commons-compress:1.21=classpath +org.apache.httpcomponents:httpclient:4.5.14=classpath +org.apache.httpcomponents:httpcore:4.4.16=classpath org.apache.httpcomponents:httpmime:4.5.6=classpath -org.bitbucket.b_c:jose4j:0.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.67=classpath -org.bouncycastle:bcprov-jdk15on:1.67=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.19=classpath +org.bitbucket.b_c:jose4j:0.9.5=classpath +org.bouncycastle:bcpkix-jdk18on:1.77=classpath +org.bouncycastle:bcprov-jdk18on:1.77=classpath +org.bouncycastle:bcutil-jdk18on:1.77=classpath +org.checkerframework:checker-qual:3.33.0=classpath +org.codehaus.mojo:animal-sniffer-annotations:1.23=classpath org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath org.glassfish.jaxb:txw2:2.3.2=classpath org.jdom:jdom2:2.0.6=classpath org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpath -org.jetbrains.kotlin:kotlin-build-common:1.7.10=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpath -org.jetbrains.kotlin:kotlin-project-model:1.7.10=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpath -org.jetbrains.kotlin:kotlin-util-io:1.7.10=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpath +org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.8.10=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.8.10=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.8.10=classpath +org.jetbrains.kotlin:kotlin-build-common:1.8.10=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.8.10=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.8.10=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.8.10=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.8.10=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.8.10=classpath +org.jetbrains.kotlin:kotlin-project-model:1.8.10=classpath +org.jetbrains.kotlin:kotlin-reflect:1.9.20=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.8.10=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.8.10=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=classpath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.8.10=classpath +org.jetbrains.kotlin:kotlin-util-io:1.8.10=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.8.10=classpath org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.json:json:20180813=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.1=classpath +org.ow2.asm:asm-analysis:9.6=classpath +org.ow2.asm:asm-commons:9.6=classpath +org.ow2.asm:asm-tree:9.6=classpath +org.ow2.asm:asm-util:9.6=classpath +org.ow2.asm:asm:9.6=classpath org.slf4j:slf4j-api:1.7.30=classpath org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/dev/integration_tests/platform_interaction/android/gradle.properties b/flutter/dev/integration_tests/platform_interaction/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/gradle.properties +++ b/flutter/dev/integration_tests/platform_interaction/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties b/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/dev/integration_tests/platform_interaction/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile b/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile index e160a81ffd42a36bca35a414c624786fdac26bc3..e914d37f4a11ec988f25450ed17567e21e048750 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile +++ b/flutter/dev/integration_tests/platform_interaction/android/project-app.lockfile @@ -1,28 +1,39 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -36,6 +47,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -46,36 +59,100 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.5.0=lintClassPath com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -83,8 +160,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt @@ -93,18 +172,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/dev/integration_tests/platform_interaction/android/settings.gradle b/flutter/dev/integration_tests/platform_interaction/android/settings.gradle index eec0e0e6a7f3fa2c1780635724cf551743d3f9dc..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/dev/integration_tests/platform_interaction/android/settings.gradle +++ b/flutter/dev/integration_tests/platform_interaction/android/settings.gradle @@ -18,11 +18,24 @@ pluginManagement { includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") - plugins { - id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + repositories { + google() + mavenCentral() + gradlePluginPortal() } } -include ":app" +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.7.0" apply false + id "org.jetbrains.kotlin.android" version "1.8.10" apply false +} + +include ":app" diff --git a/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..4f746537f280af75dcdac17b8e41c5a5d051e1d1 100644 --- a/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -50,6 +50,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/dev/integration_tests/platform_interaction/lib/main.dart b/flutter/dev/integration_tests/platform_interaction/lib/main.dart index fdfe0854ae3d29ac5eae10bc6e8842d16bcbda52..f32c8a7a0f1fdb77ea4181b04991ccfbc772bdda 100644 --- a/flutter/dev/integration_tests/platform_interaction/lib/main.dart +++ b/flutter/dev/integration_tests/platform_interaction/lib/main.dart @@ -23,9 +23,7 @@ class TestApp extends StatefulWidget { } class _TestAppState extends State { - static final List steps = [ - () => systemNavigatorPop(), - ]; + static final List steps = [() => systemNavigatorPop()]; Future? _result; int _step = 0; @@ -39,10 +37,7 @@ class _TestAppState extends State { }); } - Widget _buildTestResultWidget( - BuildContext context, - AsyncSnapshot snapshot, - ) { + Widget _buildTestResultWidget(BuildContext context, AsyncSnapshot snapshot) { return TestStepResult.fromSnapshot(snapshot).asWidget(context); } @@ -51,15 +46,10 @@ class _TestAppState extends State { return MaterialApp( title: 'Platform Interaction Test', home: Scaffold( - appBar: AppBar( - title: const Text('Platform Interaction Test'), - ), + appBar: AppBar(title: const Text('Platform Interaction Test')), body: Padding( padding: const EdgeInsets.all(20.0), - child: FutureBuilder( - future: _result, - builder: _buildTestResultWidget, - ), + child: FutureBuilder(future: _result, builder: _buildTestResultWidget), ), floatingActionButton: FloatingActionButton( key: const ValueKey('step'), diff --git a/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart b/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart index 9b9f5010e5f01b3dc114678975a449be545f98b4..d2613c0996acf53739c32f68ee1f00e7c646872a 100644 --- a/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart +++ b/flutter/dev/integration_tests/platform_interaction/lib/src/system_navigation.dart @@ -15,8 +15,7 @@ Future systemNavigatorPop() { final Completer completer = Completer(); channel.setMessageHandler((String? message) async { - completer.complete( - const TestStepResult('System navigation pop', '', TestStatus.ok)); + completer.complete(const TestStepResult('System navigation pop', '', TestStatus.ok)); return ''; }); SystemNavigator.pop(); diff --git a/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart b/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart index 4bd004b5feb348850370ee30cd94323937330e12..ebcab623cc26325cb992720002eef2c61184e0ee 100644 --- a/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart +++ b/flutter/dev/integration_tests/platform_interaction/lib/src/test_step.dart @@ -16,21 +16,12 @@ class TestStepResult { const TestStepResult(this.name, this.description, this.status); factory TestStepResult.fromSnapshot(AsyncSnapshot snapshot) { - switch (snapshot.connectionState) { - case ConnectionState.none: - return const TestStepResult('Not started', nothing, TestStatus.ok); - case ConnectionState.waiting: - return const TestStepResult('Executing', nothing, TestStatus.pending); - case ConnectionState.done: - if (snapshot.hasData) { - return snapshot.data!; - } else { - final Object? result = snapshot.error; - return result! as TestStepResult; - } - case ConnectionState.active: - throw 'Unsupported state ${snapshot.connectionState}'; - } + return switch (snapshot.connectionState) { + ConnectionState.none => const TestStepResult('Not started', nothing, TestStatus.ok), + ConnectionState.waiting => const TestStepResult('Executing', nothing, TestStatus.pending), + ConnectionState.done => snapshot.data ?? snapshot.error! as TestStepResult, + ConnectionState.active => throw 'Unsupported state: ConnectionState.active', + }; } final String name; @@ -54,8 +45,7 @@ class TestStepResult { const Text(' ', style: normal), Text( status.toString().substring('TestStatus.'.length), - key: ValueKey( - status == TestStatus.pending ? 'nostatus' : 'status'), + key: ValueKey(status == TestStatus.pending ? 'nostatus' : 'status'), style: bold, ), ], diff --git a/flutter/dev/integration_tests/platform_interaction/pubspec.yaml b/flutter/dev/integration_tests/platform_interaction/pubspec.yaml index 3ac42cfa92417783946485658591ef2199d2f298..5eff422967ca468111f0e73a7be2a14b787d3b69 100644 --- a/flutter/dev/integration_tests/platform_interaction/pubspec.yaml +++ b/flutter/dev/integration_tests/platform_interaction/pubspec.yaml @@ -2,67 +2,68 @@ name: platform_interaction description: Integration test for platform interactions. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter flutter_driver: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: 7e66 +# PUBSPEC CHECKSUM: 9c1e diff --git a/flutter/dev/integration_tests/pure_android_host_apps/README.md b/flutter/dev/integration_tests/pure_android_host_apps/README.md new file mode 100644 index 0000000000000000000000000000000000000000..37db4fe175d7b339977fb7b5a8f046f60f0e103e --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/README.md @@ -0,0 +1,2 @@ +This directory contains minimal Android apps used by integration tests for testing add-to-app +use cases. \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/README.md b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/README.md new file mode 100644 index 0000000000000000000000000000000000000000..58298306d186a10c7e044d7cf333b247036b902d --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/README.md @@ -0,0 +1,10 @@ +# Android custom host app + +Android host app for a Flutter module created using +```sh +$ flutter create -t module hello +$ cd hello +$ flutter build aar +``` +and placed in a sibling folder to (a clone of) the host app. +Used by the `module_custom_host_app_name_test.dart` device lab test. diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/build.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..56ec3b21e2b44c6f9687b299b39631ee3b51e863 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/build.gradle @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +apply plugin: 'com.android.application' + +android { + namespace = "io.flutter.add2app" + compileSdk = 35 + + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = "26.3.11579264" // This version must exactly match the version of the NDK that the recipe pulls from CIPD. + ndkPath = systemNdkPath + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + + defaultConfig { + applicationId "io.flutter.add2app" + minSdk = 21 + targetSdk = 35 + versionCode 1 + versionName "1.0" + } +} + +dependencies { + implementation project(':flutter') + implementation 'androidx.appcompat:appcompat:1.7.0' +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/AndroidManifest.xml b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..6a73e6c126020c1511e54741f8e610ee9e6e1f8d --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/java/io/flutter/add2app/MainActivity.java b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/java/io/flutter/add2app/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..f9b74d4aad2cb3f5ef853b0eaf33aa40a15f35f3 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/SampleApp/src/main/java/io/flutter/add2app/MainActivity.java @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.add2app; + +import android.os.Bundle; +import androidx.appcompat.app.AppCompatActivity; +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/build.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..8715e3234ced132d381ee42813422b713fcacfad --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/build.gradle @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:8.8.1' + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle.properties b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..252fddfc9d5f8dce328173228183ffb1cd32337f --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle.properties @@ -0,0 +1,4 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true +flutter.hostAppProjectName=SampleApp diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle/wrapper/gradle-wrapper.properties b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..ff9e5553ed41e3528318e051c05cc1e83d11844a --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Tue Feb 18 12:03:21 EST 2025 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/settings.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..9d54e69fe07941280a44c691154432ed5bfeb44b --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_custom_host_app/settings.gradle @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +include ':SampleApp' +setBinding(new Binding([gradle: this])) +evaluate(new File(settingsDir.parentFile, 'hello/.android/include_flutter.groovy')) diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/README.md b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6f3df6b413bb0b70913a4790f7a20374cf0e9c62 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/README.md @@ -0,0 +1,8 @@ +# Android host app + +Android host app for a Flutter module created using +```sh +$ flutter create -t module hello +``` +and placed in a sibling folder to (a clone of) the host app. +Used by the `build_android_host_app_with_module_aar.dart` device lab test. diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/build.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..518a685691b9773beb12001c10840c37b0f583b1 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/build.gradle @@ -0,0 +1,36 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +apply plugin: 'com.android.application' + +android { + namespace = "io.flutter.add2app" + compileSdk = 35 + + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = "26.3.11579264" // This version must exactly match the version of the NDK that the recipe pulls from CIPD. + ndkPath = systemNdkPath + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } + + defaultConfig { + applicationId "io.flutter.add2app" + minSdk = 21 + targetSdk = 35 + versionCode 1 + versionName "1.0" + } +} + +dependencies { + implementation project(':flutter') +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/AndroidManifest.xml b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..6a73e6c126020c1511e54741f8e610ee9e6e1f8d --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/java/io/flutter/add2app/MainActivity.java b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/java/io/flutter/add2app/MainActivity.java new file mode 100644 index 0000000000000000000000000000000000000000..d25aebe72ca0ab3b52a7f9da6878dde00771a589 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/app/src/main/java/io/flutter/add2app/MainActivity.java @@ -0,0 +1,10 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package io.flutter.add2app; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..8e0242ac5755c22f526ccd4d7b6101a8f58c37a1 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/build.gradle @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:REPLACEME' + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle.properties b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..f018a61817f55e78bb92ce8df2dda423ec570a4a --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +android.enableJetifier=true diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle/wrapper/gradle-wrapper.properties b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..56a30819350e23eab3a8195c9cf44f59cf95371b --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-REPLACEME-all.zip diff --git a/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/settings.gradle b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..6c933debbaf4cc4e626336f1513fd9188a306175 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/android_host_app_v2_embedding/settings.gradle @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +include ':app' +setBinding(new Binding([gradle: this])) +evaluate(new File(settingsDir.parentFile, 'hello/.android/include_flutter.groovy')) diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/README.md b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/README.md new file mode 100644 index 0000000000000000000000000000000000000000..17eeba520f726ad2d8735519a800a2e6a0eec15c --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/README.md @@ -0,0 +1,2 @@ +This directory contains a minimal Android app that uses the Kotlin DSL for its Gradle files. +It is used in add-to-app integration testing. \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/build.gradle.kts b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/build.gradle.kts new file mode 100644 index 0000000000000000000000000000000000000000..0453bd8dc9aa66559108544541c329a85566c5f1 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/build.gradle.kts @@ -0,0 +1,79 @@ +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.jetbrains.kotlin.android) +} + +android { + namespace = "com.example.myapplication" + compileSdk = 34 + + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + val systemNdkPath: String? = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = "26.3.11579264" // This version must exactly match the version of the NDK that the recipe pulls from CIPD. + ndkPath = systemNdkPath + } + + defaultConfig { + applicationId = "com.example.myapplication" + minSdk = 24 + targetSdk = 34 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + vectorDrawables { + useSupportLibrary = true + } + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_17.toString() + } + buildFeatures { + compose = true + } + composeOptions { + kotlinCompilerExtensionVersion = "1.5.1" + } + packaging { + resources { + excludes += "/META-INF/{AL2.0,LGPL2.1}" + } + } +} + +dependencies { + + implementation(project(":flutter")) + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.androidx.activity.compose) + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.ui) + implementation(libs.androidx.ui.graphics) + implementation(libs.androidx.ui.tooling.preview) + implementation(libs.androidx.material3) + testImplementation(libs.junit) + androidTestImplementation(libs.androidx.junit) + androidTestImplementation(libs.androidx.espresso.core) + androidTestImplementation(platform(libs.androidx.compose.bom)) + androidTestImplementation(libs.androidx.ui.test.junit4) + debugImplementation(libs.androidx.ui.tooling) + debugImplementation(libs.androidx.ui.test.manifest) +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/proguard-rules.pro b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/proguard-rules.pro new file mode 100644 index 0000000000000000000000000000000000000000..481bb434814107eb79d7a30b676d344b0df2f8ce --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt new file mode 100644 index 0000000000000000000000000000000000000000..e9283cf4d899da306f79b1656ac2ab1d21d6c792 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/androidTest/java/com/example/myapplication/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.myapplication + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.myapplication", appContext.packageName) + } +} \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/AndroidManifest.xml b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..556be8696c62ab5685f9b19ef9eb8433016f1be9 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/AndroidManifest.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/MainActivity.kt b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..9d5d8f1833b8b919797d9092cb47385ca4dc2f69 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/MainActivity.kt @@ -0,0 +1,55 @@ +package com.example.myapplication + +import android.os.Bundle +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.activity.enableEdgeToEdge +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.material3.Scaffold +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.Preview +import com.example.myapplication.ui.theme.MyApplicationTheme +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + enableEdgeToEdge() + setContent { + MyApplicationTheme { + Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> + Greeting( + name = "Android", + modifier = Modifier.padding(innerPadding) + ) + } + } + } + + startActivity( + FlutterActivity.createDefaultIntent(this) + ) + } +} + +@Composable +fun Greeting( + name: String, + modifier: Modifier = Modifier +) { + Text( + text = "Hello $name!", + modifier = modifier + ) +} + +@Preview(showBackground = true) +@Composable +fun GreetingPreview() { + MyApplicationTheme { + Greeting("Android") + } +} diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Color.kt b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Color.kt new file mode 100644 index 0000000000000000000000000000000000000000..1ce3e5dd7bba4274461afbc25bf9369cc7490280 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.example.myapplication.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Theme.kt b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Theme.kt new file mode 100644 index 0000000000000000000000000000000000000000..174f73f9601c252adae3b39f69896dcf69c7e5cc --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Theme.kt @@ -0,0 +1,58 @@ +package com.example.myapplication.ui.theme + +import android.app.Activity +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun MyApplicationTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Type.kt b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Type.kt new file mode 100644 index 0000000000000000000000000000000000000000..3721e8c196b57d1ff54a5ea11650edaaf6f43ed1 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/java/com/example/myapplication/ui/theme/Type.kt @@ -0,0 +1,20 @@ +package com.example.myapplication.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = + Typography( + bodyLarge = + TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + ) diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/colors.xml b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/colors.xml new file mode 100644 index 0000000000000000000000000000000000000000..fdceae597305da43c5e6ab68c76fd509655c10e2 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/colors.xml @@ -0,0 +1,14 @@ + + + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/strings.xml b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/strings.xml new file mode 100644 index 0000000000000000000000000000000000000000..3d52828be9a3a9cb13f882e6cb4216c08441f1b0 --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/strings.xml @@ -0,0 +1,7 @@ + + + + My Application + \ No newline at end of file diff --git a/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/themes.xml b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/themes.xml new file mode 100644 index 0000000000000000000000000000000000000000..a6962141257c37b8392f3d864115799fb250abae --- /dev/null +++ b/flutter/dev/integration_tests/pure_android_host_apps/host_app_kotlin_gradle_dsl/app/src/main/res/values/themes.xml @@ -0,0 +1,9 @@ + + + + + +