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

outdated

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();
            app.iosAppId = 300915900;
            app.androidPackageName = 'com.skysoft.kkbox.android';
            FlutterInstallAppPlugin.installApp(app);
          },
          child: Text(
            'Install App',
            style: TextStyle(color: Colors.white),
          ),
        )),
      ),
    );
  }
}
17
likes
0
pub points
83%
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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_install_app_plugin