FLUTTER ECOSYSTEM

Yagon2395/animated_number

一個用於創建動畫數字的 Flutter 套件。

animated_number 專案封面
Stars
1
Forks
1
最近推送(UTC)
2022年12月19日
專案狀態
未封存
Yago Nunes GitHub avatar
GITHUB User

Yago Nunes ↗

🎓Computer Engineer, 📱 Postgraduate in Mobile Development and Flutter enthusiast

CapgeminiBrazil
語言DartKotlin

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

Animated Number flutter package

This is an custom widget developed for flutter with some awesome features that will make your users more satisfied when they look into their numbers.

Preview

Sample

Getting started

Supported platforms
Android iOS Linux macOS Web Windows
Support SDK 16+ 9.0+ Any 10.11+ Any Any

Usage

To use this plugin, add animated_number as a dependency in your pubspec.yaml file.

Examples
AnimatedNumber(
    startValue: 0,
    endValue: 2000,
    duration: Duration(seconds: 2),
    isFloatingPoint: false,
    style: TextStyle(
    color: Colors.orange,
    fontSize: 24,
    ),
)
AnimatedNumber(
    startValue: 0,
    endValue: 5500.38273626732,
    duration: Duration(seconds: 5),
    isFloatingPoint: true,
    decimalPoint: 4,
    style: TextStyle(
        color: Colors.lightBlue,
        fontSize: 42,
    ),
)

Features

Properties Type Description
startValue num Desired start value.
endValue num Desired end value.
duration Duration Duration for the animation.
isFloatingPoint bool Flag that controls if the iteration of the animation will be integer or floating point.
decimalPoint int Desired decimal points.
style TextStyle? Text style.
textAlign TextAlign? How the text should be aligned horizontally.
prefixText String? Desired prefix text.
sufixText String? Desired sufix text.
Contact
Any questions, issues or improvements feel free to contact me.
yagon2395@gmail.com
License

MIT