launcher_helper 0.3.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

launcher_helper #

pub package

This plugin is made to help you when building a launcher for Android. launcher_helper is Androidx compatible.

It offers the following features:

  • Getting list of installed applications with their icon and other details.
  • Launching application and getting phone's wallpaper.
  • Picking prominent colors from an image (wallpaper, icon, etc) for use in UI, etc.

Only Android is supported. Tested on android 10, pie and oreo.

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 this Example's README.md for more information regarding this plugin's usage.
  • Check documentation for library

Note #

  • If you are using launcher_helper 0.1.1 then you have to include palette_generator library in your project.
  • Plugin uses gradle version: 3.3.1 & kotlin version: 1.3.0
  • To get device wallpaper, app will need the READ_EXTERNAL_STORAGE permission on Android Oreo & above.

Changelog #

0.3.1 #

  • Changes in ApplicationCollection & Application

0.3.0+1 to 0.3.0+3 #

  • Documentation update

0.3.0 #

  • Introduced more methods to check if app with package-name is disabled or if it exists.
  • Changed [Applications] to [ApplicationCollection].
  • Added a method to update versionCode and versionName for an app as it changes on updates.
  • Removed inaccurate methods for brightness calculations.

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

red #

A showcase for implementations of plugin methods.

Getting Started #

Check this launcher_helper/example

Use this package as a library

1. Depend on it

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


dependencies:
  launcher_helper: ^0.3.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]
0
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]
50
Learn more about scoring.

We analyzed this package on Jan 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

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