flutter_code_input_fields 1.0.1 copy "flutter_code_input_fields: ^1.0.1" to clipboard
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 onChanged closures in initState to avoid re-allocation on every build.
  • Performance: convert _CodeInputField to StatefulWidget so only the affected field rebuilds on active-state change, removing the full-Row setState from the parent.
  • Simplify _moveToNextField and _moveToPreviousField to void — return values were unused after parent setState removal.
  • Remove unused index field from _CodeInputField.
  • Fix boxWidth parameter — was declared but never applied; now correctly sizes each box.
  • Replace Container with SizedBox for box sizing.
  • Fix text clipping when using large font sizes — default contentPadding changed to EdgeInsets.zero.
  • Add contentPadding parameter to allow customization of inner padding per box.

1.0.0 #

  • Initial stable release.
  • CodeInputFields widget with split box-style text input controlled by a single TextEditingController.
  • 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.
  • onChanged callback fires with the full concatenated value on every change.
3
likes
150
points
118
downloads

Documentation

API reference

Publisher

verified publisherseonwookkim.com

Weekly Downloads

Split box-style text fields controlled by a single controller

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_code_input_fields