FLUTTER ECOSYSTEM

russbiggs/progresso

Flutter 的線性進度條

進度 專案封面
Stars
4
Forks
0
最近推送(UTC)
2021年3月31日
專案狀態
未封存
Russ Biggs GitHub avatar
GITHUB User

Russ Biggs ↗

Director of Technology @openaq

@openaqAlbuquerque, NM官方網站 ↗
語言DartSwiftKotlinObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

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

展開 / 收合專案 README

Progresso

A linear progress bar for Flutter.

Getting Started

Add to pubspec.yaml

progresso: <lastest version>

import in your flutter project

import 'package:progresso/progresso.dart';

Features

In its simplest form Progresso takes a progress parameter (0.0 to 1.0)

basic

Progresso(progress: 0.5);

You can also configure the color

custom color

Progresso(
    progress: 0.5, 
    progressColor: Colors.red, 
    backgroundColor: Colors.blue
);

Progresso can even start at a value that is not zero!

non-zero start

Progresso(start: 0.3, progress: 0.5);

Give the progress bar different stroke caps:

round end caps

Progresso(
    progress: 0.5, 
    progressStrokeCap: StrokeCap.round,
    backgroundStrokeCap: StrokeCap.round
);

Give a List of points to show points along the progress bar

points

Progresso(progress: 0.5, points: [0.2, 0.4]);