I am writing an app that uploads an image to a server, and instead of just showing a spinner, I\'d love to be able to get progress on the status of that upload.
Ad
Try dio library. The onSendProgress callback would be helpful.
onSendProgress
example:
response = await dio.post( "http://www.example.com", data: data, onSendProgress: (int sent, int total) { print("$sent $total"); }, );
Reference: https://github.com/flutterchina/dio/issues/103