launcher_helper 0.2.0+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 64

launcher_helper #

pub package

This package assists when creating a launcher. Some of it features includes: Getting list of installed applications, launching them and getting phone's wallpaper, etc.

Only Android is supported.

Usage #

  • Add launcher_helper as a dependency in pubspec.yaml.
  • Import package as: import 'package:launcher_helper/launcher_helper.dart';
  • Use LauncherHelper class to use package methods
  • Check Example's README.md for more information.

Note #

  • From 0.2.0, launcher_helper is no longer dependant upon palette_generator. But, if you are using launcher_helper 0.1.1 then you have to include palette_generator in your project

Changelog #

0.2.0+1 #

  • Improved package health
  • Documentation fixes

0.2.0 #

  • Added palette generator, no need to add palette_generator as a dependency in projects.
  • Can generate Color palette to use in user interface and theming from wallpapers.
  • Can generate color palettes from an application icon or image.
  • Provided [Applications] to better use information from appinfo.
  • Calculate luminance/brightness of wallpaper or an image. Also has methods to determine brightness of wallpaper (or any other image) using dominant colors.

0.1.1 #

  • Fetching Wallpaper now works with External Storage access permission
  • Has a method to calculate brightness of image using platform code
  • Added method to generate color palette from wallpaper
  • Changed License format

0.1.0+1 #

Modified README.md, added a note when fetching wallpapers (to use with external storage access permission)

0.1.0 #

Constructed files from previous project with Androidx support with Kotlin

What works #

  • Getting Application List
  • Launching Apps
  • Getting App icons

What doesn't work #

  • Fetching wallpaper
  • Setting Wallpaper
  • Getting Live wallpaper
  • Setting Live wallpaper

example/README.md

launcher_helper_example #

Demonstrates how to use the launcher_helper plugin.

Getting Started #

Add launcher_helper: <version> to your project's pubspec.yaml file.

You can import this package as: import 'package:launcher_helper/launcher_helper.dart';

Use methods from LauncherHelper with try/catch in an asynchronous method as Platform messages are asynchronous and they may fail.

Check example code.


  • To get all applications & their additional information, use getApps method from LauncherHelper. It returns a List of Maps of applications with their information.

  • Wallpaper is fetched as Uint8List bytes through getWallpaper method. Use these ImageData bytes in Image.memory() as argument to parameter bytes to display wallpaper.

  • permission_handler 3.2.2 is used in the example to get external storage access permission.

  • Applications can be launched with launchApp(<Package-name>) method of Launcherhelper; It requires package name of app as String to launch them.

Note:

  • Don't forget to get external storage access permission before using getWallpaper.

Use this package as a library

1. Depend on it

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


dependencies:
  launcher_helper: ^0.2.0+1

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:launcher_helper/launcher_helper.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
28
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
64
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.13.1+4
  • Flutter: 1.12.13+hotfix.2

Health suggestions

Format lib/src/_launcher_helper.dart.

Run flutter format to format lib/src/_launcher_helper.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
collection ^1.14.6 1.14.11 1.14.12
flutter 0.0.0
path ^1.6.1 1.6.4
Transitive dependencies
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test