flutter_updater 0.1.2 copy "flutter_updater: ^0.1.2" to clipboard
flutter_updater: ^0.1.2 copied to clipboard

outdated

flutter apk downloader for android with automatic install.

flutter_update #

A Flutter download plugin for android device,when download finished,plugin will automatic open archive, permission should be handle by yourself,(file write/read .etc).

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android .

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

simple usage #

implementation

or

define some else

final String directory = await getTemporaryDirectory().path;

FlutterUpdater.instance()
    ..registerCallback((updater){
      print("成功啦 success");
      updater.dispose();
      return;
    }, (updater,reason,flag){
      print("失败啦 failure:$reason flag=$flag");
      updater.dispose();
      return;
    })
    ..download(url:"http://download.dcloud.net.cn/HBuilder.9.0.2.macosx_64.dmg",
    savePath:"${directory}/xxx/",
    fileName:"HBuilder.9.0.2.macosx_64.dmg",callback: (desc){
     print("install desc $f");
    });
0
likes
0
pub points
40%
popularity

Publisher

unverified uploader

flutter apk downloader for android with automatic install.

Homepage

License

unknown (LICENSE)

Dependencies

dio, flutter, path

More

Packages that depend on flutter_updater