smart_update 1.0.0 copy "smart_update: ^1.0.0" to clipboard
smart_update: ^1.0.0 copied to clipboard

Flutter package for checking and prompting app upgrades from app stores

Smart Update #

A Flutter package for checking and prompting app upgrades from app stores with multi-platform support.

Features #

  • ✅ Multi-platform support (iOS App Store, Google Play Store, Custom Appcast)
  • ✅ Semantic version comparison
  • ✅ Configurable upgrade policies
  • ✅ Localization support
  • ✅ Customizable UI dialogs
  • ✅ Debug modes for testing
  • ✅ User preference persistence
  • ✅ Critical update enforcement

Getting Started #

Add this to your package's pubspec.yaml file:

dependencies:
  smart_update: ^1.0.0

Usage #

Basic Usage #

import 'package:smart_update/smart_update.dart';

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: UpgradeAlert(
        child: Scaffold(
          appBar: AppBar(title: Text('My App')),
          body: Center(child: Text('Hello World')),
        ),
      ),
    );
  }
}

Advanced Configuration #

UpgradeAlert(
  config: UpgradeConfig(
    debugMode: true,
    countryCode: 'US',
    minDays: 3,
    dialogStyle: UpgradeDialogStyle.material,
  ),
  child: MyHomePage(),
)

License #

MIT License

0
likes
150
points
144
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package for checking and prompting app upgrades from app stores

Homepage

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 smart_update