From 89ba997f8d0367961385d3fd38c22628fd0fe447 Mon Sep 17 00:00:00 2001 From: mono Date: Wed, 21 Feb 2024 15:41:47 +0900 Subject: [PATCH 1/2] Update example/ios --- example/ios/Flutter/AppFrameworkInfo.plist | 2 +- example/ios/Podfile | 2 +- example/ios/Podfile.lock | 10 +++++----- example/ios/Runner.xcodeproj/project.pbxproj | 8 ++++---- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 4f8d4d2..8c6e561 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 11.0 + 12.0 diff --git a/example/ios/Podfile b/example/ios/Podfile index 88359b2..279576f 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '11.0' +# platform :ios, '12.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 1f98dff..fce4465 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -24,11 +24,11 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/url_launcher_ios/ios" SPEC CHECKSUMS: - Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 - image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5 + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 + image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425 mono_kit: 67c15c1486e232d7f44ac47286933e80aa02f7a3 - url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86 + url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812 -PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3 +PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011 -COCOAPODS: 1.14.2 +COCOAPODS: 1.15.2 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 65c1753..92544b2 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -164,7 +164,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { @@ -351,7 +351,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; @@ -433,7 +433,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -482,7 +482,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = iphoneos; diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index b52b2e6..e67b280 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ Date: Wed, 21 Feb 2024 15:42:03 +0900 Subject: [PATCH 2/2] Add `spellCheckConfiguration` to `DialogTextField` --- CHANGELOG.md | 4 ++++ example/lib/pages/text_input_dialog_page.dart | 16 ++++++++++++++++ example/pubspec.lock | 2 +- .../text_input_dialog/ios_text_input_dialog.dart | 1 + .../macos_text_input_dialog.dart | 1 + .../material_text_input_dialog.dart | 1 + .../show_text_input_dialog.dart | 2 ++ pubspec.yaml | 2 +- 8 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f26c290..eea42a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.0 + +- Add `spellCheckConfiguration` to `DialogTextField` + ## 2.0.0 - Support Flutter 3.16 diff --git a/example/lib/pages/text_input_dialog_page.dart b/example/lib/pages/text_input_dialog_page.dart index 4c60a45..04fa026 100644 --- a/example/lib/pages/text_input_dialog_page.dart +++ b/example/lib/pages/text_input_dialog_page.dart @@ -37,6 +37,22 @@ class TextInputDialogPage extends ConsumerWidget { logger.info(text); }, ), + ListTile( + title: const Text( + 'No Title/Message(spellCheckConfiguration disabled)'), + onTap: () async { + final text = await showTextInputDialog( + context: context, + textFields: const [ + DialogTextField( + spellCheckConfiguration: SpellCheckConfiguration.disabled(), + autocorrect: false, + ), + ], + ); + logger.info(text); + }, + ), ListTile( title: const Text('No Message'), onTap: () async { diff --git a/example/pubspec.lock b/example/pubspec.lock index e321351..9260eb7 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -15,7 +15,7 @@ packages: path: ".." relative: true source: path - version: "2.0.0" + version: "2.1.0" analyzer: dependency: transitive description: diff --git a/lib/src/text_input_dialog/ios_text_input_dialog.dart b/lib/src/text_input_dialog/ios_text_input_dialog.dart index f9790d6..ce59b80 100644 --- a/lib/src/text_input_dialog/ios_text_input_dialog.dart +++ b/lib/src/text_input_dialog/ios_text_input_dialog.dart @@ -148,6 +148,7 @@ class _IOSTextInputDialogState extends State { onSubmitted: isLast && widget.autoSubmit ? (_) => submitIfValid() : null, + spellCheckConfiguration: field.spellCheckConfiguration, ); }, ), diff --git a/lib/src/text_input_dialog/macos_text_input_dialog.dart b/lib/src/text_input_dialog/macos_text_input_dialog.dart index 1b0cb71..be1f245 100644 --- a/lib/src/text_input_dialog/macos_text_input_dialog.dart +++ b/lib/src/text_input_dialog/macos_text_input_dialog.dart @@ -155,6 +155,7 @@ class _MacOSTextInputDialogState extends State { onSubmitted: isLast && widget.autoSubmit ? (_) => submitIfValid() : null, + // No spellCheckConfiguration for macos_ui ), ), ); diff --git a/lib/src/text_input_dialog/material_text_input_dialog.dart b/lib/src/text_input_dialog/material_text_input_dialog.dart index 7a876b7..fadefba 100644 --- a/lib/src/text_input_dialog/material_text_input_dialog.dart +++ b/lib/src/text_input_dialog/material_text_input_dialog.dart @@ -138,6 +138,7 @@ class _MaterialTextInputDialogState extends State { onFieldSubmitted: isLast && widget.autoSubmit ? (_) => submitIfValid() : null, + spellCheckConfiguration: field.spellCheckConfiguration, ); }), ], diff --git a/lib/src/text_input_dialog/show_text_input_dialog.dart b/lib/src/text_input_dialog/show_text_input_dialog.dart index d7eb305..85b1d52 100644 --- a/lib/src/text_input_dialog/show_text_input_dialog.dart +++ b/lib/src/text_input_dialog/show_text_input_dialog.dart @@ -131,6 +131,7 @@ class DialogTextField { this.maxLines = 1, this.maxLength, this.autocorrect = true, + this.spellCheckConfiguration, }); final String? initialText; final String? hintText; @@ -144,4 +145,5 @@ class DialogTextField { final int maxLines; final int? maxLength; final bool autocorrect; + final SpellCheckConfiguration? spellCheckConfiguration; } diff --git a/pubspec.yaml b/pubspec.yaml index 1e143e9..099ec4b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: adaptive_dialog description: Show alert dialog or modal action sheet adaptively according to platform. -version: 2.0.0 +version: 2.1.0 repository: https://github.com/mono0926/adaptive_dialog funding: - https://github.com/sponsors/mono0926