Skip to content

Flutter plugin to get the list of installed applications (iOS is not supported yet).

License

Notifications You must be signed in to change notification settings

mohitjadav86/flutter_plugin_device_apps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Device apps plugin

Pub

A plugin to get the list of installed applications (iOS is not supported yet).

Getting Started

First, you have to import the package in your dart files with:

import 'package:device_apps/device_apps.dart';

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
List<Application> 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

DeviceApps.openApp('com.frandroid.app');

Displaying app icon

When calling the getInstalledApplications() or getApp() methods, you can ask for the icon. To display the image, just call:

Image.memory(app.icon);

About

Flutter plugin to get the list of installed applications (iOS is not supported yet).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 44.5%
  • Dart 37.4%
  • Ruby 12.1%
  • Objective-C 6.0%