Member-only story
Flutter App Update
Flutter Plugin that check if the user has the most recent version of your app installed or not. It shows the user an alert with a link to the appropriate app store page to update latest version .
There are so many packages to check an app update. Some of them are:
I had tried these all. But I found new_version_plus very easy to implement. So let’s go through it.
Step 1: Add new_version_plus as a dependency in pubspec.yaml file.
dependencies:
new_version_plus: ^0.0.9Step 2: Import it in the home screen or main.dart screen.
import 'package:new_version_plus/new_version_plus.dart';Step 3: Make a function to check an app update.
final newVersion = NewVersionPlus();
checkAppUpdate(NewVersionPlus newVersion) async {
final status = await newVersion.getVersionStatus();
if (status != null) {
if (status.canUpdate) {
newVersion.showUpdateDialog(…









