flutter_pinned_shortcut 0.0.4 copy "flutter_pinned_shortcut: ^0.0.4" to clipboard
flutter_pinned_shortcut: ^0.0.4 copied to clipboard

PlatformAndroid

A new Flutter plugin to create Pinned shortcuts for Android similer to Messenger chat bubble.

flutter_pinned_shortcut #

A new Flutter plugin to create Pinned shortcuts for Android similer to Messenger chat bubble.

Screenshot #

Screenshot 2022-12-06 at 12 10 03

Import the plugin #

import 'package:flutter_pinned_shortcut/flutter_pinned_shortcut.dart';

Create an Object #

  final FlutterPinnedShortcut flutterPinnedShortcutPlugin = FlutterPinnedShortcut();

Add a shortcut #

  void addPinnedShortcut() {
    _flutterPinnedShortcutPlugin.createPinnedShortcut(
      id: "1",
      label: "Followers",
      action: "followers",
      iconAssetName: "assets/icon.png"
    );
  }

Get Incoming action and navigate to right screen when the app starts #


  @override
  void initState() {
    super.initState();
    getIncomingAction();
  }
  
  
  void getIncomingAction() {
    _flutterPinnedShortcutPlugin.getLaunchAction((action) {
      switch (action) {
        case "followers":

          ///navigate to follower screen.
          break;
        case "profile":

        ///navigate to profile screen.
      }
    });
  }
13
likes
160
pub points
74%
popularity

Publisher

unverified uploader

A new Flutter plugin to create Pinned shortcuts for Android similer to Messenger chat bubble.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_pinned_shortcut