flutter_pinput 2.0.1
flutter_pinput: ^2.0.1 copied to clipboard
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
2.0.1 #
- Fix:
Pinput.buildernow defaultsautofillHintsto[AutofillHints.oneTimeCode], matchingPinput(), so iOS SMS code autofill works out of the box with the builder constructor too. - Fix: Characters made of several UTF-16 code units (emoji, combined characters) now fill exactly one pin
instead of being split across pins.
PinputControllerExt.length,delete()andappend()count characters too. - Fix: Replacing
smsRetrievernow disposes the old retriever and listens to the new one; a late code from the replaced retriever is ignored. - Fix: The animated cursor no longer keeps scheduling frames, so
WidgetTester.pumpAndSettlesettles whilePinputis focused. The cursor now blinks like the native caret instead of pulsing continuously. - Fix: Decreasing
lengthnow trims a longer pin to the new length instead of keeping the extra characters. - Fix:
debugFillPropertiesno longer listsenabled,obscureTextandkeyboardTypetwice, and reports the real defaults ofuseNativeKeyboard,textInputAction,separatorBuilderandautofillHints. - Docs: README explains how to accept digits only with
FilteringTextInputFormatter.digitsOnly. - Docs: Updated the
SmsRetrieverdocumentation and SmartAuth example tosmart_auth3.x. - Chore: Removed the legacy
_ambiguatehelper and a no-op platformswitch. - Chore: Added GitHub Actions CI (format, analyze, test, publish dry-run on Flutter 3.47.0 and stable) and tests for validation, input, keyboard, clipboard, SMS retriever and widget lifecycle.
- Chore: Rewrote the 1.0.0 and 1.0.1 changelog entries from the git history.
2.0.0 #
- Breaking: Migrated from
package:flutter/material.dartandpackage:flutter/cupertino.dartto the decoupledmaterial_uiandcupertino_uipackages.Pinputmust now be used under aMaterialApp/Themefrommaterial_ui; see the migration guide in the README. - Breaking: Minimum SDK raised to Dart
3.13/ Flutter3.47. Stay on1.0.3for older Flutter versions. - Breaking: Removed
hintLocalesparameter (as in upstream pinput 6.0.1). - Sync with upstream pinput 6.0.2.
- Perf: Dropped
IntrinsicWidth(extra layout pass); layout is unchanged, verified across parent constraints. - Fix: Resolved pub.flutter-io.cn static analysis warnings (
document_ignores,unnecessary_unawaited). - Chore: Published package now ships only
example/lib/main.dart(archive 26 KB -> 21 KB). - Chore: Constructors use the new
newsyntax.
1.0.3 #
- Refactor: Code cleanup and optimization in pinput.dart and pinput_state.dart.
- Update: Improve code structure and maintainability.
- Update: Example app improvements and updates.
1.0.2 #
- Fix: Correct issue tracker URL in pubspec.yaml (changed from
.gitissuesto/issues). - Update: Update README.md with correct pub package link (changed from
pinputtoflutter_pinput). - Update: Update GitHub repository links in README.md (changed from
tkko/flutter_pinputtoSunnatilloShavkatov/flutter_pinput). - Update: Update LinkedIn profile link in README.md.
1.0.1 #
- Chore: Point
homepage,repositoryandissue_trackerto this repository. - Chore: Removed files that only applied to the upstream repository (funding, issue templates, migration guide, publish script).