aswinmohanme / flutter_plugin_device_apps

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Device apps plugin

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 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).

License:Apache License 2.0


Languages

Language:Java 44.0%Language:Dart 34.6%Language:Ruby 14.3%Language:Objective-C 7.1%