flutter_password_input 0.4.0
flutter_password_input: ^0.4.0 copied to clipboard
A customizable password text field widget with Caps Lock detection, visibility toggle, force English input mode, and comprehensive theming support.
0.4.0 #
BREAKING
- Rename
PasswordFieldWarningtoPasswordFieldStatus— update all references in prefix/suffix builders and switch expressions PasswordFieldWidgetBuilderparameter renamed fromwarningtostatus
feat
- Add
PasswordFieldStatus.checkedandPasswordFieldStatus.unchecked— builders receive these states whenisCheckedistrue/false - Add
isChecked(bool?) toPasswordTextField—nullapplies no checked styling,true/falsechanges border color accordingly; not intended to be used withhasCustomError - Add
checkedBorderColortoPasswordTextFieldTheme(falls back toColors.green) - Add
uncheckedBorderColortoPasswordTextFieldTheme(falls back toerrorBorderColor)
0.3.4 #
feat
- Add
PasswordFieldWarning.disabled— prefix/suffix builders now receivedisabledstate whenenabled: false - Add
disabledBorderColortoPasswordTextFieldThemefor customizable disabled border color (falls back toborderColorwith 50% opacity) - Add
disabledTextStyletoPasswordTextFieldThemefor customizable disabled text style (falls back totextStyle) - Visibility toggle button is now properly disabled when
enabled: false
0.3.3 #
deps
- Upgrade
flutter_imefrom^2.1.1to^2.1.3(fix Caps Lock detection miss after app switch)
0.3.2 #
fix
- Fix
hasCustomErrorstate being lost when focus leaves and returns to the field
0.3.1 #
deps
- Upgrade
just_tooltipfrom^0.2.1to^0.2.3(bug fix)
0.3.0 #
BREAKING
- Replace
prefixWidgetwithprefixWidgetBuilder(PasswordFieldWidgetBuilder?) — builder receives(BuildContext, PasswordFieldWarning)so icons can react to warning state - Replace
suffixWidgetwithsuffixWidgetBuilder(PasswordFieldWidgetBuilder?) — same builder signature
feat
- Add
PasswordFieldWarningenum (none,capsLock,pasteBlocked,customError) representing the active warning - Add
PasswordFieldWidgetBuildertypedef for prefix/suffix builders - Border and floating-label color now uses last-triggered warning semantics instead of fixed priority
- When an active warning turns off, the field falls back to the next still-active warning via
_resolveActiveWarning()
0.2.2 #
feat
- Add
directionandalignmenttoWarningTooltipThemefor theme-level tooltip positioning (overrides per-warning alignment when set) - Add
waitDurationtoWarningTooltipThemefor delayed tooltip appearance - Add
showDurationtoWarningTooltipThemefor auto-hiding tooltips after a set time - Re-export
TooltipDirectionandTooltipAlignmentenums for direct use
0.2.1 #
feat
- Add
prefixIconConstraintsandsuffixIconConstraintstoPasswordTextFieldfor controlling icon size
0.2.0 #
feat
- Add
hasCustomErrortoPasswordTextFieldfor external error state control (default: false)- Changes border color and floating label color when active
- Works in both focused and unfocused states
- Add
customErrorBorderColortoPasswordTextFieldTheme(falls back toerrorBorderColor)
0.1.8 #
fix
- Fix tooltip alternating issue when both CapsLock and paste warnings are active at the same position
- Paste tooltip now takes priority over CapsLock tooltip; CapsLock tooltip restores after paste warning expires
feat
- Paste tooltip animation replays on repeated Ctrl+V press
- Ignore key repeat events when holding Ctrl+V (only triggers once per key press)
0.1.7 #
feat
- Add tooltip animation parameters to
WarningTooltipTheme:animation: Animation style (none,fade,scale,slide,fadeScale,fadeSlide,rotation)animationCurve: Custom easing curvefadeBegin: Starting opacity for fade animationsscaleBegin: Starting scale for scale animationsslideOffset: Slide distance ratio for slide animationsrotationBegin: Starting rotation for rotation animations
- Re-export
TooltipAnimationenum for direct use
deps
- Upgrade
just_tooltipfrom^0.2.0to^0.2.1
0.1.6 #
feat
- Add
interactiveoption toWarningTooltipThemeto control whether tooltip stays visible on hover (default: true)
deps
- Upgrade
just_tooltipfrom^0.1.7to^0.2.0 - Migrate tooltip styling parameters to new
JustTooltipThemeAPI (breaking change in just_tooltip 0.2.0)
0.1.5 #
feat
- Add
WarningDisplayModeenum (message,tooltip) to switch warning display between inline text and tooltip - Add
warningDisplayModetoPasswordTextField(default:message) - Tooltip mode uses
just_tooltippackage with per-warning independent positioning viacapsLockWarningAlignmentandpasteWarningAlignment - Add
WarningTooltipThemeclass for full tooltip styling customization:backgroundColor,borderRadius,padding,elevation,boxShadowborderColor,borderWidthtextStyle,offset,crossAxisOffset,screenMarginanimationDurationshowArrow,arrowBaseWidth,arrowLength,arrowPositionRatio
- Add
tooltipThemetoPasswordTextFieldTheme - Paste warning now hides when focus is lost (consistent with Caps Lock warning behavior)
deps
- Add
just_tooltip: ^0.1.7
0.1.4 #
feat
- Add
WarningAlignmentenum with 6 positions (topLeft,topCenter,topRight,bottomLeft,bottomCenter,bottomRight) - Add
capsLockWarningAlignmentandpasteWarningAlignmenttoPasswordTextField(default:bottomLeft) - Add
pasteWarningBorderColortoPasswordTextFieldThemefor independent paste warning border/text color (falls back toerrorBorderColor) - Paste warning now changes border color and floating label color
0.1.3 #
feat
- Add paste warning message when paste is blocked (
disablePaste: true)showPasteWarning: Whether to show warning (default: true)pasteWarningText: Custom warning message (default: 'Paste is disabled')pasteWarningDuration: Auto-hide duration (default: 3 seconds)onPasteBlocked: Callback when paste attempt is blocked- Warning auto-hides when user starts typing
- Add
pasteWarningStyletoPasswordTextFieldTheme
0.1.2 #
feat
- Add
disablePasteoption to block paste functionality (default: false)- Blocks both keyboard shortcuts (Ctrl+V/Cmd+V) and context menu paste
0.1.1 #
feat
- Add
forceEnglishInputoption to force English keyboard input when focused (default: true)- Windows: Disables IME when focused, re-enables when unfocused
- macOS: Switches to English keyboard and maintains it while focused
- Add
ExcludeFocuswrapper to visibility toggle button to prevent focus stealing
chore
- Add macOS platform support to example app
- Update
flutter_imedependency version
0.1.0 #
feat
- Add
PasswordTextFieldwidget with obscured text input - Add Caps Lock detection using
flutter_imepackage (Windows, macOS supported) - Add password visibility toggle button
- Add
prefixWidgetandsuffixWidgetsupport - Add
PasswordTextFieldThemefor comprehensive styling customization - Add
merge()andcopyWith()methods for theme manipulation - Add interactive playground example app
docs
- Add detailed English documentation for all public APIs