Sitemap
Go With Flutter

Flutter Tips & Tricks.

Member-only story

Flutter App Update

--

Press enter or click to view image in full size

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.

Press enter or click to view image in full size
Left: Android, Right: iOS

Step 1: Add new_version_plus as a dependency in pubspec.yaml file.

dependencies:
new_version_plus: ^0.0.9

Step 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(…

--

--

Lakshydeep Vikram
Lakshydeep Vikram

Written by Lakshydeep Vikram⁠

Software Developer | Google Dev Library Author | Flutter Enthusiast