How to adjust download buffer size on flutter http, dio or flutter_downloader?

为君一笑 提交于 2021-01-27 18:12:56

问题


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:

  1. master
  2. dev
  3. beta
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!