UpdatWindowManager constructor
const
UpdatWindowManager({
- required String currentVersion,
- required Future<
String?> getLatestVersion(), - required Future<
String> getBinaryUrl(- String? latestVersion
- required String appName,
- Future<
File> getDownloadFileLocation(- String? latestVersion
- Widget updateChipBuilder({
- required String appVersion,
- required void checkForUpdate(),
- required BuildContext context,
- required void dismissUpdate(),
- required String? latestVersion,
- required Future<
void> launchInstaller(), - required void openDialog(),
- required void startUpdate(),
- required UpdatStatus status,
- void updateDialogBuilder({
- required String appVersion,
- required String? changelog,
- required void checkForUpdate(),
- required BuildContext context,
- required void dismissUpdate(),
- required String? latestVersion,
- required Future<
void> launchInstaller(), - required void openDialog(),
- required void startUpdate(),
- required UpdatStatus status,
- Future<
String?> getChangelog()?, - void callback(
- UpdatStatus status
- bool openOnDownload = false,
- bool closeOnInstall = false,
- bool launchOnExit = true,
- Key? key,
- required Widget child,
UpdatWindowManager is designed to make automatic update handling simple. The update is (by default) automatically
downloaded and the user is notified that the update is ready. Then, the user may decide to install or dismiss the update.
Even if the update is dismissed the installer will then launch just before the app is closed. This widget is ideal to use with
silent installes such as msi
on Windows as the update will start without user interaction in the bakground.
Implementation
const UpdatWindowManager({
required this.currentVersion,
required this.getLatestVersion,
required this.getBinaryUrl,
required this.appName,
this.getDownloadFileLocation,
this.updateChipBuilder,
this.updateDialogBuilder,
this.getChangelog,
this.callback,
this.openOnDownload = false,
this.closeOnInstall = false,
this.launchOnExit = true,
Key? key,
required this.child,
}) : super(key: key);