check_app_version 0.1.0
check_app_version: ^0.1.0 copied to clipboard

Flutter Android iOS Linux macOS web Windows

The plugin verifies that the version of the installed app is the most up-to-date, if not, it invites the user to update.

Check App Version #

A plugin that allows you to check the version of the app installed with a hypothetical version of the app published on the PlayStore / AppStore.

About #

The plugin compares two version codes:

  • The code for the app installed on the device.
  • Code for a new version of the app compiled using JSON.

In fact the package acquires the necessary information for the comparison between the two versions, through a JSON file compiled by the user himself.

Example of a JSON file at this link.

KeyValue
app_namethe name of the app
new_app_versionthe new app version
new_app_codethe new app code
app_packageandroid app package name
ios_app_idiOS app id number

Install #

Import the Check App Version package #

To use the Check App Version package, follow the plugin installation instructions.

Use the package #

Add the following import to your Dart code:

import 'package:check_app_version/show_dialog.dart';

We now have the option to use the method ShowDialog(jsonUrl: 'my url').checkVersion(); to check the version and show a message dialog, remember to replace 'my link' with the link that refers to our previously created and customized JSON file

    ShowDialog(
        context: context,
        jsonUrl: 'https://besimsoft.com/example.json',
        ).checkVersion();

Customize the message dialog #

In the ShowDialog() method we have many properties to be able to customize massage dialog.

PropertyFunction
jsonUrlthe JSON Link
dialogRadiusthe message dialog border radius value
backgroundColorthe message dialog background color
titlethe dialog message title
titleColorthe dialog message title color
bodythe dialog message body
bodyColorthe dialog message body color
barrierDismissibleif is TRUE you can dismiss the message dialog by tapping the modal barrier
onWillPopif is TRUE the message dialog it will disappear using only the action keys (default: TRUE)
updateButtonTextthe update button text
updateButtonTextColorthe update button text color
updateButtonColorthe update button text color
updateButtonRadiusthe update button text border radius value
laterButtonTextthe later button text
laterButtonColorthe later button color
laterButtonEnableif is FALSE the later button is not visible (default: FALSE)
1
likes
90
pub points
57%
popularity

Publisher

enzodesimone.dev

The plugin verifies that the version of the installed app is the most up-to-date, if not, it invites the user to update.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, get_version, http, open_appstore

More

Packages that depend on check_app_version