coword 1.0.0 coword: ^1.0.0 copied to clipboard
A package for creating widget to validate confirm password. Coword can be used for the confirmed password entered for each character is correct or not
Installing: #
In your pubspec.yaml
dependencies:
coword: latest_version
Basic Usage #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
),
Types #
Dots Type #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
type: CowordTypes.dots,
),
Rectangle Type #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
type: CowordTypes.rectangle,
),
Animations #
Fade Animation #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
cowordAnimation: const CowordAnimation.fade(
toAnimate: true,
animationDuration: Duration(milliseconds: 500),
disappearanceFadeAnimationDuration: Duration(milliseconds: 200),
curve: Curves.easeOutCubic,
),
),
Scale Animation #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
cowordAnimation: const CowordAnimation.scale(
toAnimate: true,
animationDuration: Duration(milliseconds: 500),
disappearanceFadeAnimationDuration: Duration(milliseconds: 200),
curve: Curves.easeOutCubic,
appearanceDisappearanceFadeAnimationEnabled: true,
),
),
Colors #
Match Color #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
cowordStyle: const CowordStyle(
matchedColor: Colors.blue,
),
),
Unmatch Color #
Coword(
passwordController: passwordController,
confirmationPasswordController: confirmationPasswordController,
cowordStyle: const CowordStyle(
unmatchedColor: Colors.purple,
),
),