Skip to content

Instantly share code, notes, and snippets.

@stefanJi
Last active June 9, 2019 14:59
Show Gist options
  • Save stefanJi/22db0db1a7944a95c3b93b7214d146ef to your computer and use it in GitHub Desktop.
Save stefanJi/22db0db1a7944a95c3b93b7214d146ef to your computer and use it in GitHub Desktop.
interval progress bar usage
Center(
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [10, 29, 18, 27, 16, 15, 24, 3, 20, 10]
.map<Widget>((i) {
return Padding(
padding: EdgeInsets.only(right: 10),
child: IntervalProgressBar(
direction: IntervalProgressDirection.vertical,
max: 30,
progress: i,
intervalSize: 2,
size: Size(12, 200),
highlightColor: Colors.red,
defaultColor: Colors.grey,
intervalColor: Colors.transparent,
intervalHighlightColor: Colors.transparent,
reverse: true,
radius: 0));
}).toList()),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment