flutter_package_manager 0.1.0 copy "flutter_package_manager: ^0.1.0" to clipboard
flutter_package_manager: ^0.1.0 copied to clipboard

discontinued
outdated

An android plugin supporting `PakcageManager`. You can get all of the installed apps and their app icon.

Package Manager for Android #

This plugin offers the ability of android's PackageManager. You can retrieve the app name, app launcher icon through this package with its package name. The package should be installed on a device.

This plugin supports android only.

How to use #

See the ./example and ./lib folders for the details.

Get package information from the package name #

import 'package:flutter_package_manager/flutter_package_manager.dart';

/// ... other codes

Future<PackageInfo> getPackageInfo() async {
  final PackageInfo info =
    await FlutterPackageManager.getPackageInfo('com.facebook.katana');
  return info;
}

PackageInfo class contains packageName, appName and appIconByteArray. appIconByteArray is an array of base64 byte image of app icon. You can get flutter's Image widget icon by appIcon getter. If the app is not installed, than null is returned.

Get package names of the all applications installed on the device #

import 'package:flutter_package_manager/flutter_package_manager.dart';

/// ... other codes

Future<List> getInstalledPackages() async {
  List packages = await FlutterPackageManager.getInstalledPackages();
  return packages;
}
14
likes
0
pub points
37%
popularity

Publisher

verified publishergihwan.com

An android plugin supporting `PakcageManager`. You can get all of the installed apps and their app icon.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_package_manager