upgrader 5.0.0-alpha.1 copy "upgrader: ^5.0.0-alpha.1" to clipboard
upgrader: ^5.0.0-alpha.1 copied to clipboard

outdated

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

example/lib/main.dart

/*
 * Copyright (c) 2019-2022 Larry Aasen. All rights reserved.
 */

import 'package:flutter/material.dart';
import 'package:upgrader/upgrader.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({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Upgrader Example',
      home: UpgradeAlert(
          child: Scaffold(
        appBar: AppBar(title: Text('Upgrader Example')),
        body: Center(child: Text('Checking...')),
      )),
    );
  }
}
2121
likes
0
pub points
100%
popularity

Publisher

verified publisherlarryaasen.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

License

unknown (license)

Dependencies

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

More

Packages that depend on upgrader