v0.3.4animated_flip_counter
1つの数値から別の数値に切り替わる暗黙のアニメーションウィジェットで、スタイル、少数桁、負の値をカスタマイズできます。
653いいね 7.2万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
1つの数値から別の数値に切り替わる、暗黙的なアニメーションウィジェットです。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
An implicit animation widget that flips from one number to another.
It can be useful to display information that's constantly changing.
Simply pass in a value and an optional duration and curve, just like any other implicit animation widget in Flutter.
AnimatedFlipCounter(
duration: Duration(milliseconds: 500),
value: _value, // pass in a value like 2014
)
Use fractionDigits to specify how many digits to show after the decimal point. It handles negative values as well.
AnimatedFlipCounter(
value: _value,
fractionDigits: 2, // decimal precision
suffix: "%",
textStyle: TextStyle(
fontSize: 40,
color: _value >= 0 ? Colors.green : Colors.red,
),
)
Use the familiar TextStyle parameter for styling, and use prefix and suffix for additional texts.
AnimatedFlipCounter(
value: _value,
prefix: "Level ",
textStyle: TextStyle(
fontSize: 80,
fontWeight: FontWeight.bold,
letterSpacing: -8.0,
color: Colors.yellow,
shadows: [
BoxShadow(
color: Colors.orange,
offset: Offset(8, 8),
blurRadius: 8,
),
],
),
)
依存関係一覧 3 件
{"sdk":"flutter"}—{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗