shortcut 0.0.1 copy "shortcut: ^0.0.1" to clipboard
shortcut: ^0.0.1 copied to clipboard

A flutter plugin can create desktop shortcut not actions,currently just support android.

shortcut #

A flutter plugin can create desktop shortcut not actions,currently just support android.

About shortcut #

because i didn't find a plugin can add desktop shortcut on android,so i create it by myself.

Installing #

  1. Add shortcut to your pubspec.yaml file:
dependencies:
  shortcut:
  1. Import shortcut in files that it will be used:
import 'package:shortcut/shortcut.dart';

Add a shortcut to desktop #

Shortcut.addShortcut(
    assetName: 'assets/image/xxx',
    name: 'Hello',
    packageName: 'com.nightmare',
    activityName: 'com.nightmare.MainActivity',
    intentExtra: {
    'route': '/rom',
    },
);

now i didn't create single class for options or anothor object,maybe in the future.

4
likes
130
pub points
51%
popularity

Publisher

unverified uploader

A flutter plugin can create desktop shortcut not actions,currently just support android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on shortcut