hehuapei / study-demo Goto Github PK
View Code? Open in Web Editor NEW学习分享demo
Home Page: https://www.hehuapei.com
License: Apache License 2.0
学习分享demo
Home Page: https://www.hehuapei.com
License: Apache License 2.0
本人已经不研究flutter一段时间了,抽空跑了下项目,发现下载组件使用方法跟之前不一样了。
希望有继续研究的小伙伴贴一下处理方法或者直接pr,给需要的人!
对应代码位置:
flutter-app-update-demo/app_update_demo/lib/download_progress_dialog.dart
第87行和120行
官方文档:https://pub.dev/packages/flutter_downloader#-readme-tab-
FlutterDownloader.registerCallback(callback); // callback is a top-level or static function
Important note: your UI is rendered in the main isolate, while download events come from a background isolate (in other words, codes in callback are run in the background isolate), so you have to handle the communication between two isolates. For example:
学习一下
如何将app放到网站上去,给设备下载呀?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.