From 2ccf5e17e755df613ffc44f46deed7c0af36fdc4 Mon Sep 17 00:00:00 2001 From: cjand <1747143535@qq.com> Date: Wed, 27 Nov 2024 15:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D3.22?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cjand <1747143535@qq.com> --- example/lib/main.dart | 2 +- example/ohos/build-profile.json5 | 12 ------------ example/pubspec.yaml | 4 ++-- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index d88dcab..d7e6f82 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -24,7 +24,7 @@ class _MyAppState extends State { // Platform messages are asynchronous, so we initialize in an async method. Future initPlatformState() async { - String platformVersion; + String platformVersion = ''; // If the widget was removed from the tree while the asynchronous platform // message was in flight, we want to discard the reply rather than calling diff --git a/example/ohos/build-profile.json5 b/example/ohos/build-profile.json5 index 33fce70..ef8eeb4 100644 --- a/example/ohos/build-profile.json5 +++ b/example/ohos/build-profile.json5 @@ -24,17 +24,5 @@ } ] }, - { - "name": "open_app_settings", - "srcPath": "D:\\code\\Flutter\\open_app_settings-2.0.1\\ohos", - "targets": [ - { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - } ] } \ No newline at end of file diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 7d4d1fb..11bdd30 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,7 +6,7 @@ description: Demonstrates how to use the open_app_settings plugin. publish_to: 'none' # Remove this line if you wish to publish to pub.dev environment: - sdk: ">=2.7.0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: @@ -22,7 +22,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: ^0.1.3 + cupertino_icons: ^1.0.6 dev_dependencies: flutter_test: -- Gitee