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

Flutter package for prompting users to upgrade when there is a newer version of the app in the store.

example/lib/main.dart

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

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  // Only call clearSavedSettings() during testing to reset internal values.
  await Upgrader.clearSavedSettings(); // REMOVE this for release builds

  // On Android, the default behavior will be to use the Google Play Store
  // version of the app.
  // On iOS, the default behavior will be to use the App Store version of
  // the app, so update the Bundle Identifier in example/ios/Runner with a
  // valid identifier already in the App Store.
  runApp(MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'App Upgrader Flutter Example',
      home: AppUpgradeAlert(
          child: Scaffold(
        appBar: AppBar(title: Text('App Upgrader Flutter Example')),
        body: Center(child: Text('Checking...')),
      )),
    );
  }
}
9
likes
140
pub points
83%
popularity

Publisher

verified publishereleganceinfolab.com

Flutter package for prompting users to upgrade when there is a newer version of the app in the store.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

device_info_plus, flutter, html, http, os_detect, package_info_plus, shared_preferences, url_launcher, version, xml

More

Packages that depend on app_upgrader_flutter