问题
I want to download a large file that is amount of about 300MB
.
It was a lot slower than I thought, and when I looked at the log, I saw that it was fetching bytes with a size of about 8KB
.
I haven't found a way to resize the download buffer even if I look for other flutter libraries.
How can I adjust that?
回答1:
Try using:
flutter clean
flutter channel stable
Flutter has the following channels, in increasing order of stability:
- master
- dev
- beta
- stable
Whenever you faced a strange behavior from the widgets and app you must change your channel to another channel and rebuild the app with that channel. If you want to use flutter for production app then many developer and even google recommend to use stable, It gets your apps true performance while testing. If you are using new feature and all feature that flutter provide that I would recommend master but not for production only for hobby project and improving your flutter skill and testing new thing that flutter provide.
来源:https://stackoverflow.com/questions/61956287/how-to-adjust-download-buffer-size-on-flutter-http-dio-or-flutter-downloader