方形进度条,因为为什么不呢?

Build Status

特点

  • 动态尺寸
  • 动画进度条
  • 渐变色条支持
  • ✨魔法✨

alt text

安装

dependencies:
  square_progress_bar: ^1.0.2

入门

只需提供 0.0 到 1.0 范围内的进度百分比,即可完成。

用法

          SizedBox(
            width: 100,
            height: 100,
            child: SquareProgressBar(
              percentage: 0.7,
              isAnimation: true,
              gradientBarColor: const LinearGradient(
                begin: Alignment.topRight,
                end: Alignment.bottomLeft,
                colors: <Color>[Colors.red, Colors.amber],
                tileMode: TileMode.repeated,
              ),
            ),
          )

许可证

MIT 开源软件,太棒了!

GitHub

查看 Github