###statement First, mark the original author of the plug-in，Author: Edouard Marquez Uploader email@example.com
Flutter Device apps repair plugin
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:
List of installed applications
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!
Get apps with launch intent
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)
Get an application
To get a specific app by package name:
Application app = await DeviceApps.getApp('com.frandroid.app');
Check if an application is installed
To check if an app is installed (via its package name):
bool isInstalled = await DeviceApps.isAppInstalled('com.frandroid.app');
Open an application
To open an application
Displaying app icon
When calling the
getApp() methods, you can ask for the icon.
To display the image, just call:
//uint8list Type Image.memory(app.icon);
- Foreign Function Interface for interoperability with the C programming language. [...]
- HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
- Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.