###statement First, mark the original author of the plug-in，Author: Edouard Marquez Uploader email@example.com
Plugin to get the list of installed applications (iOS is not supported yet).
First, you have to import the package in your dart files with:
To get the list of the apps installed on the device:
List<Application> apps = await DeviceApps.getInstalledApplications();
You can filter system apps if necessary. Note: The list of apps is not ordered!
You can now get only those apps with launch intent by using the following option. Also add
includeSystemApps option to get all the apps that have launch intent.
// Returns a list of only those apps that have launch intent // The main thing is to modify this place. List<ApplicationWithIcon> apps = await DeviceApps.getInstalledApplications(onlyAppsWithLaunchIntent: true, includeSystemApps: true)
To get a specific app by package name:
Application app = await DeviceApps.getApp('com.frandroid.app');
To check if an app is installed (via its package name):
bool isInstalled = await DeviceApps.isAppInstalled('com.frandroid.app');
To open an application
When calling the
getApp() methods, you can ask for the icon.
To display the image, just call:
//uint8list Type Image.memory(app.icon);
Demonstrates how to use the device_apps_repair plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Add this to your package's pubspec.yaml file:
dependencies: device_apps_repair: ^1.0.0
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0||Apr 1, 2019|
|0.0.2||Apr 1, 2019|
|0.0.1||Apr 1, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Apr 22, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Document public APIs. (-1 points)
16 out of 16 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
flutter format to format