in_app_auto_updates 0.0.5 copy "in_app_auto_updates: ^0.0.5" to clipboard
in_app_auto_updates: ^0.0.5 copied to clipboard

PlatformAndroid
unlisted

This is a lightweight Flutter plugin designed to check whether your app is up-to-date on the Google Play Store.

example/lib/main.dart

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)),),
        ),
      ),
    );
  }
}
3
likes
160
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

This is a lightweight Flutter plugin designed to check whether your app is up-to-date on the Google Play Store.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on in_app_auto_updates

Packages that implement in_app_auto_updates