simple_update_dialog 1.0.2 copy "simple_update_dialog: ^1.0.2" to clipboard
simple_update_dialog: ^1.0.2 copied to clipboard

A simple package for showing a paltform-specific dialog to promote users to update the app.

simple_update_dialog #

A simple package for showing a paltform-specific dialog to promote users to update the app.

Usage #

To use this plugin, add simple_update_dialog as a dependency in your pubspec.yaml file.

Screenshots #

Screenshot Screenshot

Example #

import 'package:flutter/material.dart';
import 'package:simple_update_dialog/simple_update_dialog.dart';

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            SimpleUpdateDialog.showUpdateDialog(
              context: context,
              isForceUpdate: false,
              dialogConfig: DialogConfig(
                appStoreUrl: '',
                playStoreUrl: '',
                currentVersion: '1.0.0',
                latestAndroidVersion: '1.0.1',
                latestIOSVersion: '1.0.1',
                minAndroidAppVerAllowed: '1.0.0',
                minIOSAppVerAllowed: '1.0.0',
              ),
            );
          },
          child: const Text("Show Update Dialog"),
        ),
      ),
    );
  }
}

See the example app for better understanding.

3
likes
160
pub points
69%
popularity

Publisher

verified publisherhozefakhety.in

A simple package for showing a paltform-specific dialog to promote users to update the app.

Repository (GitHub)
View/report issues

Topics

#app-update #auto-update #dialog

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, url_launcher

More

Packages that depend on simple_update_dialog