multi_updater
A lightweight Flutter package that checks for app updates via Firebase Remote Config or a custom JSON API.
It shows an update dialog with options to update via App Store or Play Store β or to exit the app.
β¨ Features
- π₯ Firebase Remote Config support
- π Custom JSON endpoint fallback
- π² Works on both Android & iOS
- π§± Uses a simple wrapper β no need to modify every screen
- π
onUpdateTap
support β override default behavior
π Getting Started
Add dependency
π Usage
void main() {
runApp(
UpdaterWrapper(
iosPath: "https://apps.apple.com/app/id1234567890",
androidPath: "https://play.google.com/store/apps/details?id=com.example.app",
useFirebase: true,
remoteConfigKey: "latest_version",
jsonUrl: "https://example.com/version.json",
onUpdateTap: null, // optional: nothing happens if tapped
child: const MyApp(),
),
);
}
```yaml
dependencies:
multi_updater: ^1.0.5