Skip to content

Commit 65d11d0

Browse files
committed
initial support for ohos
1 parent 701defb commit 65d11d0

File tree

6 files changed

+150
-173
lines changed

6 files changed

+150
-173
lines changed

.flutter-plugins

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This is a generated file; do not edit or check into version control.
2+
file_picker=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\file_picker-8.0.0\\
3+
flutter_plugin_android_lifecycle=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\flutter_plugin_android_lifecycle-2.0.17\\
4+
path_provider_linux=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_linux-2.0.0\\
5+
path_provider_windows=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\path_provider_windows-2.1.7\\
6+
shared_preferences=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences-2.1.1\\
7+
shared_preferences_android=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_android-2.1.0\\
8+
shared_preferences_foundation=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_foundation-2.2.0\\
9+
shared_preferences_linux=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_linux-2.2.0\\
10+
shared_preferences_web=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_web-2.1.0\\
11+
shared_preferences_windows=C:\\Users\\samuioto\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dev\\shared_preferences_windows-2.2.0\\

lib/manage_credentials_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class _CredentialDialogState extends State<CredentialDialog> {
360360

361361
// 认证方式选择
362362
DropdownButtonFormField<AuthType>(
363-
initialValue: _authType,
363+
value: _authType,
364364
decoration: const InputDecoration(
365365
labelText: '认证方式',
366366
),

lib/quick_connect_dialog.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class _QuickConnectDialogState extends State<QuickConnectDialog> {
201201
children: [
202202
Expanded(
203203
child: DropdownButtonFormField<Credential>(
204-
initialValue: _selectedCredential,
204+
value: _selectedCredential,
205205
decoration: const InputDecoration(
206206
labelText: '认证凭证',
207207
),
@@ -236,7 +236,7 @@ class _QuickConnectDialogState extends State<QuickConnectDialog> {
236236

237237
// 连接类型 - 修复默认值问题
238238
DropdownButtonFormField<ConnectionType>(
239-
initialValue: _selectedType,
239+
value: _selectedType,
240240
decoration: const InputDecoration(
241241
labelText: '连接类型',
242242
),

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import file_picker
98
import shared_preferences_foundation
109

1110
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
12-
FilePickerPlugin.register(with: registry.registrar(forPlugin: "FilePickerPlugin"))
1311
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
1412
}

0 commit comments

Comments
 (0)