Skip to content

Commit

Permalink
disable update checking
Browse files Browse the repository at this point in the history
  • Loading branch information
kateile committed Oct 31, 2024
1 parent cbbf787 commit ec57ac0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/app.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:in_app_update/in_app_update.dart';
//import 'package:in_app_update/in_app_update.dart';

import 'ui/home.dart';

Expand All @@ -13,21 +13,21 @@ class App extends StatefulWidget {
}

class AppState extends State<App> {
Future<void> checkForUpdate() async {
InAppUpdate.checkForUpdate().then((info) {
if (info.updateAvailability == UpdateAvailability.updateAvailable) {
InAppUpdate.performImmediateUpdate().then((_) {}).catchError((e) {
//print('performImmediateUpdate error: ${e.toString()}');
});
}
}).catchError((e) {
//print('checkForUpdate error: ${e.toString()}');
});
}
// Future<void> checkForUpdate() async {
// InAppUpdate.checkForUpdate().then((info) {
// if (info.updateAvailability == UpdateAvailability.updateAvailable) {
// InAppUpdate.performImmediateUpdate().then((_) {}).catchError((e) {
// //print('performImmediateUpdate error: ${e.toString()}');
// });
// }
// }).catchError((e) {
// //print('checkForUpdate error: ${e.toString()}');
// });
// }

@override
void initState() {
checkForUpdate().then((_) {});
//checkForUpdate().then((_) {});
super.initState();
}

Expand Down

0 comments on commit ec57ac0

Please sign in to comment.