store_redirect 1.0.2 store_redirect: ^1.0.2 copied to clipboard
A Flutter plugin to redirect users to an app page in Google Play Store and Apple App Store.
import 'package:flutter/material.dart';
import 'package:store_redirect/store_redirect.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(title: new Text('Launch App Redirect')),
body: new Center(
child: new RaisedButton(
child: new Text("Redirect App"),
onPressed: () {
StoreRedirect.redirect(
androidAppId: "com.iyaffle.rangoli",
iOSAppId: "585027354");
}))));
}
}