flutter_code_input_fields 1.0.1
flutter_code_input_fields: ^1.0.1 copied to clipboard
Split box-style text fields controlled by a single controller
1.0.1 #
- Performance: cache
onChangedclosures ininitStateto avoid re-allocation on every build. - Performance: convert
_CodeInputFieldtoStatefulWidgetso only the affected field rebuilds on active-state change, removing the full-RowsetStatefrom the parent. - Simplify
_moveToNextFieldand_moveToPreviousFieldtovoid— return values were unused after parentsetStateremoval. - Remove unused
indexfield from_CodeInputField. - Fix
boxWidthparameter — was declared but never applied; now correctly sizes each box. - Replace
ContainerwithSizedBoxfor box sizing. - Fix text clipping when using large font sizes — default
contentPaddingchanged toEdgeInsets.zero. - Add
contentPaddingparameter to allow customization of inner padding per box.
1.0.0 #
- Initial stable release.
CodeInputFieldswidget with split box-style text input controlled by a singleTextEditingController.- Supports 1–8 input fields (
length). - Configurable:
keyboardType,autofocus,style,inputFormatters,activeBorderColor,enabledBorderColor,borderWidth,borderRadius,spacing,boxWidth,cursorColor. - Auto-advances focus to the next field on input; moves back on delete.
onChangedcallback fires with the full concatenated value on every change.