I need to know if there is a way to update its content like a value of a linear progress indicator, is that possible, I searched for this problem but didn't find a satisfying answer.
code
else {
setState(() {
percentage = (event.snapshot.bytesTransferred /
event.snapshot.totalByteCount);
});
print(percentage);
}
});
return showDialog(
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text('Uploading'),
content: Column(
children: [
Center(
child: Text('Uploading .... Please Be Patient'),
),
SizedBox(
height: height * 0.02,
),
LinearProgressIndicator(
value: percentage != null ? percentage : 0.0,
)
],
),
);
},
barrierDismissible: false,
);