Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #372 from egovernments/develop
Browse files Browse the repository at this point in the history
Develop to master
  • Loading branch information
egov-arindam authored Feb 21, 2023
2 parents 3d647b7 + f13be2c commit d260b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/mgramseva/lib/utils/common_methods.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:io';
import 'dart:math';

import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down Expand Up @@ -162,7 +161,8 @@ class CommonMethods {
void checkVersion(BuildContext context, String? latestAppVersion) async {
try {
if (latestAppVersion != null && !kIsWeb) {
if (packageInfo?.version != latestAppVersion) {
if (int.parse(packageInfo!.version.split('.').join("").toString()) <
int.parse(latestAppVersion.split('.').join("").toString())) {
late Uri uri;

if (Platform.isAndroid) {
Expand Down

0 comments on commit d260b83

Please sign in to comment.