slide_animated_password_lock 0.0.3 copy "slide_animated_password_lock: ^0.0.3" to clipboard
slide_animated_password_lock: ^0.0.3 copied to clipboard

A simple password input field with slide lock animation.

slide_animated_password_lock #

A simple password input field with slide lock animation.

Parameters #

hashedPassword - Correct hashed password value to trigger the sliding animation

hashMethod - Hashed method using for the password. Options available: HashMethod.PlainText/ HashMethod.SHA1/ HashMethod.SHA224/ HashMethod.SHA256/ HashMethod.SHA384/ HashMethod.SHA512/ HashMethod.MD5/ HashMethod.HMACMD5/ HashMethod.HMACSHA1/ HashMethod.HMACSHA256

hashKey - (Optional) Hash key in use if using HashMethod.HMACMD5/ HashMethod.HMACSHA1/ HashMethod.HMACSHA256

controller - Text Editing Controller for textfield

onUnlock - Function handler when unlocked

color - Color of the input field

width - (Optional) the total width of the widget. Default to 250, require > 0

height - (Optional) the height of the widget. Default to 40, require > 0

placeholder - (Optional) placeholder in the textfield. Default to an empty string.

Getting Started #

Add the plugin:

    dependencies:
        slide_animated_password_lock: ^1.0.0

Basic Usage #

 SlideAnimatedPasswordLock(
  hashedPassword: _hashedPassword,
  hashMethod: HashMethod.MD5,
  controller: _textFieldController,
  color: Theme.of(context).primaryColor,
  placeholder: "HELLO WORLD",
  onUnlock: (_unlocked){
    if (_unlocked){
      setState(()=>_msg = "Unlocked!");
    }else{
      setState(()=>_msg = "Please unlock!");
    }
  },
),
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A simple password input field with slide lock animation.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

crypto, flutter

More

Packages that depend on slide_animated_password_lock