updating progress indicator every 1000 data points is enough

upgrade-2021-project
Stefan Haslinger 2022-03-14 09:20:04 +01:00
parent f066c23321
commit 2ce020c019
2 changed files with 2 additions and 2 deletions

View File

@ -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}«'),
],
),
),

View File

@ -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;
}