FLUTTER ECOSYSTEM

sourcemain/checkmark

アニメーション付きチェックマークウィジェット。

チェックマーク のプロジェクト画像
Stars
1
Forks
0
最終プッシュ(UTC)
2022/01/09
プロジェクト状態
公開中
Eliot Lew GitHub avatar
GITHUB User

Eliot Lew ↗

@axichat
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^1.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

An animated check mark widget. It automatically animates when you toggle it on/off. It can also be styled.

Appearance

https://media.giphy.com/media/stjy5VIfjE8NEIuW4Q/giphy.gif

Parameters

class CheckMark extends ImplicitlyAnimatedWidget {
  const CheckMark({
    Key? key,
    Duration duration = const Duration(milliseconds: 300),
    Curve curve = Curves.linear,
    VoidCallback? onEnd,
    this.active = false,
    this.activeColor = const Color(0xff4fffad),
    this.inactiveColor = const Color(0xffe3e8ed),
    this.strokeWidth = 5,
    this.strokeJoin = StrokeJoin.round,
    this.strokeCap = StrokeCap.round,
  })
}

Usage

Check the /example folder for an example of the above functionality.

Minimal example:

SizedBox(
  height: 50,
  width: 50,
  child: CheckMark(
    active: checked,
    curve: Curves.decelerate,
    duration: const Duration(milliseconds: 500),
  ),
),

Additional information

If you find any problems, please file an issue if one doesn't already exist.