store_redirect 2.0.4 copy "store_redirect: ^2.0.4" to clipboard
store_redirect: ^2.0.4 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",
              );
            },
          ),
        ),
      ),
    );
  }
}
copied to clipboard
274
likes
160
points
89.5k
downloads

Publisher

verified publisherdanieldallos.com

Weekly Downloads

2024.09.16 - 2025.03.31

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on store_redirect