FLUTTER ECOSYSTEM

russbiggs/progresso

Flutter用の線形プログレスバー

進行状況 のプロジェクト画像
Stars
4
Forks
0
最終プッシュ(UTC)
2021/03/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]);