flutter_pinned_shortcut

Last updated:

0 purchases

flutter_pinned_shortcut Image
flutter_pinned_shortcut Images
Add to Cart

Description:

flutter pinned shortcut

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

Import the plugin #
import 'package:flutter_pinned_shortcut/flutter_pinned_shortcut.dart';
copied to clipboard
Create an Object #
final FlutterPinnedShortcut flutterPinnedShortcutPlugin = FlutterPinnedShortcut();
copied to clipboard
Add a shortcut #
void addPinnedShortcut() {
_flutterPinnedShortcutPlugin.createPinnedShortcut(
id: "1",
label: "Followers",
action: "followers",
iconAssetName: "assets/icon.png"
);
}
copied to clipboard
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.
}
});
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.