Skip to content

一个Flutter版本简单、轻量、可随意定制的Android版本更新库;A simple, lightweight, and customizable Android version update library for Flutter

License

Notifications You must be signed in to change notification settings

azhon/flutter_app_update

Repository files navigation

一、Introduce

dependencies:
  flutter_app_update: ^latest_version
  • Create UpdateModel and set apk url
 UpdateModel model = UpdateModel(
   url,
   "flutterUpdate.apk",
   /// android res/mipmap icon name
   "ic_launcher",
   'https://itunes.apple.com/cn/app/xxxx',
 );
 AzhonAppUpdate.update(model).then((value) => debugPrint('$value'));
  • Add listener
@override
void initState() {
  super.initState();
  AzhonAppUpdate.listener((ResultModel model) {
    debugPrint('$model');
  });
}

三、Screenshot

   

About

一个Flutter版本简单、轻量、可随意定制的Android版本更新库;A simple, lightweight, and customizable Android version update library for Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published