v0.0.13progress_bar_chart
一个用于在垂直图表上使用进度指示器和动画显示多个值的包。
14喜欢 113近 30 天下载145Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个用于在垂直图表上使用进度指示器和动画显示多个值的包。
{"sdk":"flutter"}^0.20.2^4.5.0{"sdk":"flutter"}^4.0.0以下为英文项目原文快照,最新内容请访问 GitHub。
A package to display multipe values on a vertical chart using progess indicators and animation. Each value can has a color .
| Example 1 | Example 2 |
|---|---|
| Example | Example |
Example 1:
final List<StatisticsItem> stats = [
StatisticsItem(Colors.blue, 500, title: 'Type 1'),
StatisticsItem(Colors.green, 200, title: 'Type 2'),
StatisticsItem(Colors.red, 300, title: 'Type 3'),
StatisticsItem(Colors.yellow, 100, title: 'Type 4'),
];
ProgressBarChart(
values: stats,
height: 30,
borderRadius: 20,
totalPercentage: 1100,
unitLabel: 'kg',
),
Example 2:
final List<StatisticsItem> stats = [
StatisticsItem(Colors.blue, 0.4),
StatisticsItem(Colors.green, 0.3),
StatisticsItem(Colors.red, 0.2),
StatisticsItem(Colors.yellow, 0.1),
];
ProgressBarChart(
values: stats,
height: 30,
borderRadius: 20,
),
Without labels and colorblend:
final List<StatisticsItem> stats = [
StatisticsItem(Colors.blue, 0.4),
StatisticsItem(Colors.green, 0.3),
StatisticsItem(Colors.red, 0.2),
StatisticsItem(Colors.yellow, 0.1),
];
ProgressBarChart(
values: stats,
height: 30,
borderRadius: 20,
showLables: false,
colorBlend: false,
)