Skip to content

Commit 7dbc929

Browse files
authored
Add spellCheckConfiguration to DialogTextField (#127)
2 parents 60b6aaa + a767a95 commit 7dbc929

File tree

13 files changed

+39
-14
lines changed

13 files changed

+39
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.1.0
2+
3+
- Add `spellCheckConfiguration` to `DialogTextField`
4+
15
## 2.0.0
26

37
- Support Flutter 3.16

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>12.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
# platform :ios, '12.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ EXTERNAL SOURCES:
2424
:path: ".symlinks/plugins/url_launcher_ios/ios"
2525

2626
SPEC CHECKSUMS:
27-
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
28-
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
27+
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
28+
image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425
2929
mono_kit: 67c15c1486e232d7f44ac47286933e80aa02f7a3
30-
url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86
30+
url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
3131

32-
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
32+
PODFILE CHECKSUM: c4c93c5f6502fe2754f48404d3594bf779584011
3333

34-
COCOAPODS: 1.14.2
34+
COCOAPODS: 1.15.2

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
97C146E61CF9000F007C117D /* Project object */ = {
165165
isa = PBXProject;
166166
attributes = {
167-
LastUpgradeCheck = 1430;
167+
LastUpgradeCheck = 1510;
168168
ORGANIZATIONNAME = "";
169169
TargetAttributes = {
170170
97C146ED1CF9000F007C117D = {
@@ -351,7 +351,7 @@
351351
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352352
GCC_WARN_UNUSED_FUNCTION = YES;
353353
GCC_WARN_UNUSED_VARIABLE = YES;
354-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
354+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
355355
MTL_ENABLE_DEBUG_INFO = NO;
356356
SDKROOT = iphoneos;
357357
SUPPORTED_PLATFORMS = iphoneos;
@@ -433,7 +433,7 @@
433433
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
434434
GCC_WARN_UNUSED_FUNCTION = YES;
435435
GCC_WARN_UNUSED_VARIABLE = YES;
436-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
436+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
437437
MTL_ENABLE_DEBUG_INFO = YES;
438438
ONLY_ACTIVE_ARCH = YES;
439439
SDKROOT = iphoneos;
@@ -482,7 +482,7 @@
482482
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
483483
GCC_WARN_UNUSED_FUNCTION = YES;
484484
GCC_WARN_UNUSED_VARIABLE = YES;
485-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
485+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
486486
MTL_ENABLE_DEBUG_INFO = NO;
487487
SDKROOT = iphoneos;
488488
SUPPORTED_PLATFORMS = iphoneos;

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

example/lib/pages/text_input_dialog_page.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,22 @@ class TextInputDialogPage extends ConsumerWidget {
3737
logger.info(text);
3838
},
3939
),
40+
ListTile(
41+
title: const Text(
42+
'No Title/Message(spellCheckConfiguration disabled)'),
43+
onTap: () async {
44+
final text = await showTextInputDialog(
45+
context: context,
46+
textFields: const [
47+
DialogTextField(
48+
spellCheckConfiguration: SpellCheckConfiguration.disabled(),
49+
autocorrect: false,
50+
),
51+
],
52+
);
53+
logger.info(text);
54+
},
55+
),
4056
ListTile(
4157
title: const Text('No Message'),
4258
onTap: () async {

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ packages:
1515
path: ".."
1616
relative: true
1717
source: path
18-
version: "2.0.0"
18+
version: "2.1.0"
1919
analyzer:
2020
dependency: transitive
2121
description:

lib/src/text_input_dialog/ios_text_input_dialog.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class _IOSTextInputDialogState extends State<IOSTextInputDialog> {
148148
onSubmitted: isLast && widget.autoSubmit
149149
? (_) => submitIfValid()
150150
: null,
151+
spellCheckConfiguration: field.spellCheckConfiguration,
151152
);
152153
},
153154
),

lib/src/text_input_dialog/macos_text_input_dialog.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class _MacOSTextInputDialogState extends State<MacOSTextInputDialog> {
155155
onSubmitted: isLast && widget.autoSubmit
156156
? (_) => submitIfValid()
157157
: null,
158+
// No spellCheckConfiguration for macos_ui
158159
),
159160
),
160161
);

0 commit comments

Comments
 (0)