From 93c340e03e6cb531d186f1d2da2e0b8f3ac54a66 Mon Sep 17 00:00:00 2001 From: weilu Date: Mon, 19 Feb 2024 22:15:52 +0800 Subject: [PATCH] Allow deprecated members --- analysis_options.yaml | 6 ++++-- pubspec.yaml | 2 +- test_driver/goods/goods_test.dart | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 2550a4880..9ae5a4837 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -20,8 +20,10 @@ analyzer: strict-inference: true strict-raw-types: true errors: - # allow self-reference to deprecated members (we do this because otherwise we have - # to annotate every member in every test, assert, etc, when we deprecate something) + # allow deprecated members (we do this because otherwise we have to annotate + # every member in every test, assert, etc, when we or the Dart SDK deprecates + # something (https://github.com/flutter/flutter/issues/143312) + deprecated_member_use: ignore deprecated_member_use_from_same_package: ignore # Turned off until null-safe rollout is complete. # unnecessary_null_comparison: ignore diff --git a/pubspec.yaml b/pubspec.yaml index 3bd90033d..26148f59a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -34,7 +34,7 @@ dependencies: # Flutter 轮播图 https://github.com/mdddj/flutter_swiper_null_safety flutter_swiper_null_safety_flutter3: ^4.0.0 # flutter_swiper很久不维护,可以使用这个替代 # 启动URL的插件(支持Web) https://github.com/flutter/packages/tree/main/packages/url_launcher - url_launcher: 6.1.8 + url_launcher: 6.2.4 # 图片选择插件 https://github.com/flutter/packages/tree/main/packages/image_picker image_picker: 1.0.4 # 侧滑删除 https://github.com/letsar/flutter_slidable diff --git a/test_driver/goods/goods_test.dart b/test_driver/goods/goods_test.dart index 6ff9e0b64..e5214c87e 100644 --- a/test_driver/goods/goods_test.dart +++ b/test_driver/goods/goods_test.dart @@ -28,6 +28,7 @@ void main() { await driver.tap(find.text('待售')); await delayed(); final SerializableFinder pageView = find.byValueKey('pageView'); + await driver.waitFor(pageView); await driver.scroll(pageView, 400.0, 0, scrollDuration); await delayed();