package_installer_plus 1.0.0 copy "package_installer_plus: ^1.0.0" to clipboard
package_installer_plus: ^1.0.0 copied to clipboard

PlatformAndroid

A flutter plugin to install apk

package_installer_plus #

A flutter plugin to install android apk

Usage #

Add dependency to pubspec.yaml file

package_installer_plus: ^1.0.0

Android #

No need any additional configuration.

Example #

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

void main() {
  runApp(Scaffold(
    body: Center(
      child: RaisedButton(
        onPressed: _installApk,
        child: Text('Install Apk'),
      ),
    ),
  ));
}

_installApk() async{
  String filePath = 'update.apk';
  await PackageInstallerPlus().installApk(filePath: filePath);
}
4
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter plugin to install apk

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on package_installer_plus