device_apps_repair 1.0.0

###statement First, mark the original author of the plug-in´╝îAuthor: Edouard Marquez Uploader moi@edouard-marquez.me

Flutter Device apps repair 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 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

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:

//uint8list  Type
Image.memory(app.icon);

0.0.1 #

  • TODO: Describe initial release.

example/README.md

device_apps_repair_example #

Demonstrates how to use the device_apps_repair plugin.

Getting Started #

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.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  device_apps_repair: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:device_apps_repair/device_apps_repair.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
9
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

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.

Fix lib/device_apps_repair.dart. (-1 points)

Analysis of lib/device_apps_repair.dart reported 2 hints:

line 18 col 13: This function has a return type of 'List

line 52 col 13: This function has a return type of 'Application', but doesn't end with a return statement.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test

Admin