- Added
activeBorderWidth
,selectedBorderWidth
,inactiveBorderWidth
,disabledBorderWidth
,errorBorderWidth
- Updated Dart SDK constraint
sdk: ">=2.12.0 <4.0.0"
- Use
PinCodePlatform
insteadPlatform
enum - Numerous bug fixes, thanks to each and one contributer for resolving issues
- Added new attributes
readOnly
,textGradient
,errorTextDirection
,errorTextMargin
,autoUnfocus
- Resolved blinkDebounce
setState()
afterdispose()
bug. - Example app refactor
- Fixed extra padding if autoValidate is not provided
- Added ScrollPadding, errorBorderColor
- Much requested feature placeholder has been added
hintCharacter
hintStyle
has been added to customize the hint TextStyle
- Added
useExternalAutoFillGroup
to use this widget with externalAutofillGroup
- Added
fieldOuterPadding
to add extra padding on each cells. Default to 0.0
- Added null-safety to the main branch.
- Added
AutofillContextAction
, default isAutofillContextAction.commit
- Migrated to null-safety.
- Minimum Flutter version is set to 1.22.0
- Fixed default text value not showing, #153
- Reopen keyboard onTap on the cells #92, thanks to https://github.com/YaroslavGS for the suggestion
- Added haptic feedback
enum HapticFeedbackTypes { heavy, light, medium, selection, vibrate, }
- Added animated obscure widget support
obscuringWidget
andblinkWhenObscuring
- Fixed bug related to TextStyle not given.
- Fixed bug related to setState is being called after disposal.
[6.0.2] - Added fallback color when the cursor color fails to retrive and fixed deprecated List
constructors.
[6.0.1] - Fixed read-only warning when field is not enabled
& cursor animation now only triggers if showCursor = true
-
Added Cursor ` /// Whether to show cursor or not final bool showCursor;
/// The color of the cursor, default to Theme.of(context).accentColor final Color cursorColor;
/// width of the cursor, default to 2 final double cursorWidth;
/// Height of the cursor, default to FontSize + 8; final double cursorHeight; `
-
Added boxhShadows
autoValidate
changed according to the new version of Flutter- Minimum Flutter version is set to 1.22.0
- typo fixes
- Added
obscuringCharacter
, Must not be empty. Single character is recommended. Default is ● - 'Black Circle' (U+25CF)
- Fixed typo
- Dispose error animation stream when widget is disposed
- Added
errorAnimationDuration
to customize Error animation duration. - Added
enablePinAutofill
to enable or disable the auto-fill feature.
- Chagned
textInputType
to more familiarkeyboardType
to change they keyboard type
- Fixed rootNavigator issue for paste dialogs, #101
[5.0.1] - onTap bug fixed, used root navigator for showing dialogs
- Added onSave, onTap callbacks.
- Added PastedTextStyle.
- Added iOS autofill added wtih Flutter version 1.20.0
- Must provide context in the
appContext
parameter. - Minimum Flutter version is set to 1.20.0
- Reopen keyboard onTap on the cells #92, thanks to https://github.com/YaroslavGS for the suggestion
- Added support for flutter-web
- Replaced internal automatic OS selection for dialog styles, you can select which style you want by configuring with the DialogConfig
[3.1.2] Documentation update
[3.1.1] Documentation update
Better performance overall
- Added new parameter called
validator
,autoValidate
&errorTextSpace
.
- The internal
TextField
has been changed toTextFormField
to work withForm
- The debug logs will not be printed in release builds.
Better Performance overall
- Fixed bug where calling setState will not reflect the change on the parent view
Better performance overall
- Added new parameter called
bool Function(String text) beforeTextPaste
, a callback method to validate if text can be pasted. - Introduced
PinTheme
&DialogConfig
- Added an optional constructor parameter:
void Function(String) onCompleted
. which triggers when all fields are filled.
- When pressing the back button to close the keyboard, you can't open the keyboard back up again. #51
- When we long press on the OTP field to paste the code & if clipboard data is NULL, it gets crashed. #45
- Removed all the color, cell height, width & dialogconfiguration and moved them in
PinTheme
andDialogConfig
[2.5.1] Documentation update
Better Performance overall
- Added errorAnimationController to trigger shake animation. Can be used for errors.
- Added autoDisposeControllers which can be set to true for auto TextEidtingController and FocusNode disposal.
- Fixed typos & Optimzied code
Better Performance overall
- Optional: Exposed TextCapitalization, TextInputAction.
- Added background color customization for each cell(SelectedCell, UnselectedCell and InactiveCell). But you must set
enableActiveFill = true
. - Added warning messages
- Fixed typos & Optimzied code
[2.3.0+3] Fixed bug regarding misplaced cursor selection.
[2.3.0+2] - Fixed bug where after opening keyboard the view will not automatically scroll up.
[2.3.0+1] - Updated documentation
Better Performance overall
- Optional: Exposed
controller
so that one can control the texts programmatically - Updated the example code with clear and set manual text buttons.
- Fixed minor bugs and optimized code
[2.2.1+2] - Added two more parameters, affirmativeText and negativeText
[2.2.1+1] - Added two more parameters, dialogTitle and dialogContent
[2.2.1] - Reformatted the code, made the whole widget clickable
[2.2.0+4] - Documentation updated
[2.2.0+3] - Documentation updated
[2.2.0+2] - Allowed transparent background color
[2.2.0+1] - Documentation updated
Better performance overall
- Colors:
selectedColor
is the color set on the current index. Default isColors.blue
disabledColor
is the color if the TextField is disabled. Default isColors.grey
- Optional
focusNode
can be passed to the constructor to manage it from outside.- Added a listener to the focusNode which triggers a rebuild on every change so it'll reflect the correct color on each pin.
- Added a new constructor parameter called
enabled
. Default is true - Added an optional constructor parameter:
void Function(String) onCompleted
. which triggers when all fields are filled.
- Colors:
activeColor
andinactiveColor
were swapped
- Keyboard does not show up onTap #4
- Renamed
currentText
toonChanged
[2.1.1] - Fixed bug regarding ios autofill not triggering currentText callback
- Added otp code pasting by pressing and holding the fields.
- iOS autofill support
- Revamped the example app with flare animation.
- Minor bug fixes
[2.0.4] - Added autofocus option and fixed bug regarding ugly cursor.
[2.0.3] - Fixed bug regarding keyboard not showing up after dismissing it.
[2.0.2] - Minor fixes.
[2.0.1] - Minor fixes.
-
Added new parameters such as backgroundColor, borderRadius, fieldHeight, fieldWidth, mainAxisAlignment, activeColor, inactiveColor, borderWidth, animationType, animationDuration, animationCurve, textInputType
-
Supports animation while changing value of pin code field field
-
Pressing backspace will focus the previous pin code field
-
Removed onDone and onErrorCheck callbacks
-
Removed shouldTriggerFucntions stream
-
Removed Functions enum
-
Changed PinCodeFieldShape.round to PinCodeFieldShape.circle
-
Can not focus on individual pin code field anymore
[1.1.2] - Minor fixes.
[1.1.1] - Minor fixes.
[1.1.0] - Added onDone and onError callbacks. Added 3 different types of shapes with custom TextStyle
[1.0.4] - Minor typo fixes.
[1.0.3] - Added more documentations.
[1.0.2] - Updated readme.
[1.0.1] - Changed gif file location.