updating progress indicator every 1000 data points is enough
parent
f066c23321
commit
2ce020c019
|
@ -43,7 +43,7 @@ Future<void> parseActivity({
|
|||
content: Row(
|
||||
children: [
|
||||
CircularProgressIndicator(value: value / 100, color: MyColor.progress),
|
||||
Text(' storing »${activity.name}«'),
|
||||
Text(' xxx storing »${activity.name}«'),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -453,7 +453,7 @@ class Activity {
|
|||
counter++;
|
||||
percentage = await handleDataMessage(dataMessage: dataMessage);
|
||||
|
||||
if (counter % 100 == 0) {
|
||||
if (counter % 1000 == 0) {
|
||||
percentage = (counter / numberOfMessages * 100).round();
|
||||
yield percentage;
|
||||
}
|
||||
|
|
Reference in New Issue