swift_field 0.2.0 copy "swift_field: ^0.2.0" to clipboard
swift_field: ^0.2.0 copied to clipboard

Production-grade Flutter form widgets: text fields, password fields, searchable dropdowns, and gradient buttons. Zero dependencies.

0.2.0 #

New Widgets #

  • SFPinCode — fully customizable Pin / OTP input field powered by Pinput
    • Per-state themes — independent SFPinTheme for default, focused, submitted, following, disabled, and error states
    • Mixed shapes — each state can use a completely different BoxDecoration shape (circle, rounded, square, underline, gradient, or any custom decoration)
    • Smooth animation — decoration properties (color, border, border-radius, size) tween automatically between state changes
    • Entry animationsSFPinAnimationType: none, scale, fade, slide, rotation
    • Validationvalidator, errorText, forceErrorState, errorBuilder, sfPinAutovalidateMode
    • Haptic feedbackSFHapticFeedbackType: lightImpact, mediumImpact, heavyImpact, selectionClick, vibrate
    • Obscure text — custom obscuringCharacter or any obscuringWidget
    • Custom cursor — standard blinking cursor or pass any Widget as cursor
    • SMS Autofill — iOS OneTimeCode out of the box; Android via smsRetriever
    • Custom separator — insert any widget between boxes via separatorBuilder
    • Builder constructorSFPinCode.builder for 100% custom box widget per state
    • Controller helperssetText, append, delete, clear
  • SFPinTheme — per-state decoration model with copyWith, copyDecorationWith, copyBorderWith

0.1.1 #

Enhancements #

  • SFSpinnerStyle.ios — increased CupertinoActivityIndicator radius from spinnerSize / 2 to spinnerSize / 1.5 for better visibility

0.1.0 #

Breaking Changes #

  • SFDropdown and SFDropdownSearch now use SFDropdownItem instead of Flutter's DropdownMenuItem — no external packages required.

New Features #

  • SFButton — gradient background support via gradient parameter
  • SFButton — spinner style chooser via SFSpinnerStyle (android / ios)
  • SFIconButton — gradient background support
  • SFIconButton — layout mode via SFIconButtonMode (compact / expanded)
  • SFIconButton — loading state with isLoading + SFSpinnerStyle
  • SFTheme.gradient — global gradient applied to all buttons
  • Removed dropdown_button2 dependency — zero external dependencies

Bug Fixes #

  • Fixed loading spinner invisible on dark buttons (replaced ElevatedButton with Material + Ink + InkWell)
  • Fixed button background going grey during loading state
  • Fixed SFDropdownSearch FilterCallback return type (List not Iterable)
  • Fixed SFDropdownSearch search text appearing in main field instead of inside the dropdown panel

0.0.1 #

  • Initial release
  • SFTextField — configurable text form field
  • SFPasswordField — password field with built-in show/hide toggle
  • SFDropdown — styled dropdown
  • SFDropdownSearch — dropdown with built-in search panel
  • SFButton — full-width button with loading state
  • SFIconButton — compact icon + label button
  • SFTheme — global theme configuration
2
likes
160
points
95
downloads
screenshot

Documentation

API reference

Publisher

verified publishershailendrakumar.site

Weekly Downloads

Production-grade Flutter form widgets: text fields, password fields, searchable dropdowns, and gradient buttons. Zero dependencies.

Repository (GitHub)
View/report issues

Topics

#text-field #dropdown #button #dropdown-search #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on swift_field