Skip to content

Commit a01ae02

Browse files
authored
Remove hintLocales from Pinput widget and update version to 6.0.1 (#225)
1 parent d3035ed commit a01ae02

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### 6.0.1 ·25/11/2025
2+
3+
- fix: removed hintLocales [PR](https://github.com/Tkko/Flutter_Pinput/pull/224)
4+
15
#### 6.0.0 ·18/11/2025
26

37
- feat: add hintLocales

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ publish_to: none
1717
version: 1.0.0+1
1818

1919
environment:
20-
sdk: '>=3.10.0 <4.0.0'
21-
flutter: ">=3.38.1"
20+
sdk: '>=3.8.0 <4.0.0'
21+
flutter: ">=3.32.0"
2222

2323

2424
dependencies:

lib/src/pinput.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class Pinput extends StatefulWidget {
114114
this.pinputAutovalidateMode = PinputAutovalidateMode.onSubmit,
115115
this.scrollPadding = const EdgeInsets.all(20),
116116
this.contextMenuBuilder = _defaultContextMenuBuilder,
117-
this.hintLocales,
118117
Key? key,
119118
}) : assert(obscuringCharacter.length == 1),
120119
assert(length > 0),
@@ -170,7 +169,6 @@ class Pinput extends StatefulWidget {
170169
this.pinputAutovalidateMode = PinputAutovalidateMode.onSubmit,
171170
this.scrollPadding = const EdgeInsets.all(20),
172171
this.contextMenuBuilder = _defaultContextMenuBuilder,
173-
this.hintLocales,
174172
Key? key,
175173
}) : assert(length > 0),
176174
assert(
@@ -464,9 +462,6 @@ class Pinput extends StatefulWidget {
464462
/// See also: [EditableText.onTapUpOutside].
465463
final TapRegionUpCallback? onTapUpOutside;
466464

467-
/// {@macro flutter.services.TextInputConfiguration.hintLocales}
468-
final List<Locale>? hintLocales;
469-
470465
static Widget _defaultContextMenuBuilder(
471466
BuildContext context,
472467
EditableTextState editableTextState,
@@ -842,12 +837,5 @@ class Pinput extends StatefulWidget {
842837
defaultValue: _defaultContextMenuBuilder,
843838
),
844839
);
845-
properties.add(
846-
DiagnosticsProperty<List<Locale>?>(
847-
'hintLocales',
848-
hintLocales,
849-
defaultValue: null,
850-
),
851-
);
852840
}
853841
}

lib/src/pinput_state.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class _PinputState extends State<Pinput>
372372
child: Stack(
373373
alignment: Alignment.topCenter,
374374
children: [
375-
// the editable need to be the full size, otherwise the focus is not correct when getting the renderbox from the focus
375+
// the editable need to be the full size, otherwise the focus is not correct when getting the render box from the focus
376376
Positioned.fill(
377377
child: _buildEditable(textSelectionControls, field),
378378
),
@@ -455,7 +455,6 @@ class _PinputState extends State<Pinput>
455455
widget.toolbarEnabled ? textSelectionControls : null,
456456
keyboardAppearance:
457457
widget.keyboardAppearance ?? Theme.of(context).brightness,
458-
hintLocales: widget.hintLocales,
459458
),
460459
),
461460
);

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pinput
2-
version: 6.0.0
2+
version: 6.0.1
33
description: Pin code input (OTP) text field, iOS SMS autofill, Android SMS autofill One Time Code, Password, Passcode, Captcha, Security, Coupon, Wowcher, 2FA, Two step verification
44
homepage: https://github.com/Tkko/Flutter_PinPut
55
repository: https://github.com/Tkko/Flutter_PinPut
@@ -19,7 +19,7 @@ funding:
1919
- https://ko-fi.com/flutterman
2020

2121
environment:
22-
sdk: '>=2.15.0 <4.0.0'
22+
sdk: '>=2.19.0 <4.0.0'
2323
flutter: ">=3.7.0"
2424

2525

0 commit comments

Comments
 (0)