in_app_update_flutter 1.0.3
in_app_update_flutter: ^1.0.3 copied to clipboard
A Flutter plugin to display an in-app update prompt for iOS using the App Store product page. This avoids navigating the user out of your app, providing a seamless and native update experience.
import 'package:flutter/material.dart';
import 'package:in_app_update_flutter/in_app_update_flutter.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('In-App Update Example')),
body: Center(
child: ElevatedButton(
onPressed: () async {
await InAppUpdateFlutter().showUpdate(appStoreId: "544007664");
},
child: const Text("Check for Update"),
),
),
),
);
}
}