in_app_auto_updates 0.0.5
in_app_auto_updates: ^0.0.5 copied to clipboard
This is a lightweight Flutter plugin designed to check whether your app is up-to-date on the Google Play Store.
import 'package:flutter/material.dart';
import 'package:in_app_auto_updates/in_app_auto_updates.dart';
void main() => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
MyAppState createState() => MyAppState();
}
class MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
InAppUpdate().autoForceUpdate();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
title: const Text('In-app Auto updates'),
),
body: const Center(
child: Padding(
padding: EdgeInsets.all(8.0),
child: Text('In-app Auto updates : Immediate updates are fullscreen UX flows that require the user to update and restart the app in order to continue using it. This UX flow is best for cases where an update is critical to the core functionality of your app. After a user accepts an immediate update, Google Play handles the update installation and app restart.',style: TextStyle(letterSpacing: 1.0)),),
),
),
);
}
}