store_redirect 2.0.2 copy "store_redirect: ^2.0.2" to clipboard
store_redirect: ^2.0.2 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: "com.iyaffle.rangoli",
                iOSAppId: "585027354",
              );
            },
          ),
        ),
      ),
    );
  }
}
239
likes
140
pub points
99%
popularity

Publisher

unverified uploader

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