store_redirect 2.0.3 copy "store_redirect: ^2.0.3" to clipboard
store_redirect: ^2.0.3 copied to clipboard

A Flutter plugin to redirect users to an app page in Google Play Store and Apple App Store.

example/lib/main.dart

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 ElevatedButton(
            child: new Text("Redirect App"),
            onPressed: () {
              StoreRedirect.redirect(
                androidAppId: "io.github.x_wei.flutter_catalog",
                iOSAppId: "6482293361",
              );
            },
          ),
        ),
      ),
    );
  }
}
266
likes
160
points
72.7k
downloads

Publisher

verified publisherdanieldallos.com

Weekly Downloads

A Flutter plugin to redirect users to an app page in Google Play Store and Apple App Store.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on store_redirect