updateProgress method
void
updateProgress()
Implementation
void updateProgress() {
new Timer.periodic(Duration(milliseconds: 500), (Timer t) {
setState(() {
progressValue += 0.2;
// we "finish" downloading here
if (progressValue > 1.0) {
progressValue = 0.0;
}
});
});
new Timer.periodic(Duration(seconds: 1), (Timer t) {
setState(() {
progressValue2 += 0.1;
// we "finish" downloading here
if (progressValue2 > 1.0) {
progressValue2 = 0.0;
}
});
});
}