flutter_install_app_plugin 0.4.3 copy "flutter_install_app_plugin: ^0.4.3" to clipboard
flutter_install_app_plugin: ^0.4.3 copied to clipboard

A Flutter plug-in helps to install other iOS and Android apps on AppStore, Google Play or other stores.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_install_app_plugin/flutter_install_app_plugin.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Plugin example app'),
        ),
        body: new Center(
            child: new RaisedButton(
          color: Theme.of(context).primaryColor,
          onPressed: () {
            var app = AppSet()
              ..iosAppId = 300915900
              ..androidPackageName = 'com.skysoft.kkbox.android';
            FlutterInstallAppPlugin.installApp(app);
          },
          child: Text(
            'Install App',
            style: TextStyle(color: Colors.white),
          ),
        )),
      ),
    );
  }
}
15
likes
130
pub points
84%
popularity

Publisher

verified publisherzonble.net

A Flutter plug-in helps to install other iOS and Android apps on AppStore, Google Play or other stores.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_web_plugins, platform_detect

More

Packages that depend on flutter_install_app_plugin