multi_form_fields 1.0.1 copy "multi_form_fields: ^1.0.1" to clipboard
multi_form_fields: ^1.0.1 copied to clipboard

A powerful Flutter package for managing multiple form fields with built-in debouncing, automatic focus control, and TextEditingController management.

Changelog #

All notable changes to this project will be documented in this file.

1.0.0 - 2026-01-21 #

🎉 Initial Release #

Features

  • MultiFormFieldsMixin - Core mixin for managing multiple form fields

    • Automatic TextEditingController creation and disposal
    • Automatic FocusNode management
    • Type-safe form field keys (supports enums, strings, and any comparable type)
  • Debouncing Support

    • Global debounce duration configuration (default 600ms)
    • Per-field custom debounce durations
    • Separate callbacks for immediate (onFieldChanged) and debounced (onFieldDebounced) events
  • Focus Management

    • requestFocus() - Programmatically focus on any field
    • unFocus() - Remove focus from a field
    • hasFocus() - Check if a field has focus
    • Automatic FocusNode lifecycle management
  • Text Control

    • getText() - Get current text value (returns null if empty)
    • setText() - Set text programmatically with optional callback triggering
    • getController() - Access underlying TextEditingController
    • Initial values support during initialization
  • MultiFormScope

    • InheritedWidget for sharing form state across widget tree
    • Context extension for easy access: context.multipleForm<K, W>()
    • Perfect for breaking down large forms into smaller components
  • FormKey Utility

    • Type-safe wrapper class for form field keys
    • Optional alternative to using enums

Future Plans #

1.1.0 Planned #

  • Form validation helpers
  • Error message management
  • Form state persistence

For more information, visit GitHub Repository

1
likes
145
points
--
downloads

Publisher

verified publisherflutterlab.uz

Weekly Downloads

A powerful Flutter package for managing multiple form fields with built-in debouncing, automatic focus control, and TextEditingController management.

Repository (GitHub)
View/report issues

Topics

#form #text-field #debounce #form-validation #form-management

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on multi_form_fields