upgrader 0.4.2 copy "upgrader: ^0.4.2" to clipboard
upgrader: ^0.4.2 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) 2018 Larry Aasen. All rights reserved.
 */

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  MyApp({
    Key key,
  }) : super(key: key) {
    Upgrader().clearSavedSettings();
    Upgrader().installAppStoreVersion('1.1.0');
    Upgrader().installAppStoreListingURL(
        'https://itunes.apple.com/us/app/google-maps-transit-food/id585027354?mt=8&uo=4');
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Upgrader Example',
      home: Scaffold(
          appBar: AppBar(
            title: Text('Upgrader Example'),
          ),
          body: UpgradeAlert(
            child: Center(child: Text('Checking...')),
          )),
    );
  }
}
2127
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, flutter, http, package_info, shared_preferences, url_launcher, version, xml

More

Packages that depend on upgrader