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,
    ),
),

Libraries

coword