swift_field 0.2.0
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
SFPinThemefor default, focused, submitted, following, disabled, and error states - Mixed shapes — each state can use a completely different
BoxDecorationshape (circle, rounded, square, underline, gradient, or any custom decoration) - Smooth animation — decoration properties (color, border, border-radius, size) tween automatically between state changes
- Entry animations —
SFPinAnimationType:none,scale,fade,slide,rotation - Validation —
validator,errorText,forceErrorState,errorBuilder,sfPinAutovalidateMode - Haptic feedback —
SFHapticFeedbackType:lightImpact,mediumImpact,heavyImpact,selectionClick,vibrate - Obscure text — custom
obscuringCharacteror anyobscuringWidget - Custom cursor — standard blinking cursor or pass any
Widgetascursor - SMS Autofill — iOS OneTimeCode out of the box; Android via
smsRetriever - Custom separator — insert any widget between boxes via
separatorBuilder - Builder constructor —
SFPinCode.builderfor 100% custom box widget per state - Controller helpers —
setText,append,delete,clear
- Per-state themes — independent
SFPinTheme— per-state decoration model withcopyWith,copyDecorationWith,copyBorderWith
0.1.1 #
Enhancements #
SFSpinnerStyle.ios— increasedCupertinoActivityIndicatorradius fromspinnerSize / 2tospinnerSize / 1.5for better visibility
0.1.0 #
Breaking Changes #
SFDropdownandSFDropdownSearchnow useSFDropdownIteminstead of Flutter'sDropdownMenuItem— no external packages required.
New Features #
SFButton— gradient background support viagradientparameterSFButton— spinner style chooser viaSFSpinnerStyle(android/ios)SFIconButton— gradient background supportSFIconButton— layout mode viaSFIconButtonMode(compact/expanded)SFIconButton— loading state withisLoading+SFSpinnerStyleSFTheme.gradient— global gradient applied to all buttons- Removed
dropdown_button2dependency — zero external dependencies
Bug Fixes #
- Fixed loading spinner invisible on dark buttons (replaced
ElevatedButtonwithMaterial+Ink+InkWell) - Fixed button background going grey during loading state
- Fixed
SFDropdownSearchFilterCallbackreturn type (ListnotIterable) - Fixed
SFDropdownSearchsearch text appearing in main field instead of inside the dropdown panel
0.0.1 #
- Initial release
SFTextField— configurable text form fieldSFPasswordField— password field with built-in show/hide toggleSFDropdown— styled dropdownSFDropdownSearch— dropdown with built-in search panelSFButton— full-width button with loading stateSFIconButton— compact icon + label buttonSFTheme— global theme configuration