smooth-app icon indicating copy to clipboard operation
smooth-app copied to clipboard

Add shortcuts for Hunger Games, Product to Be Completed list

Open teolemon opened this issue 2 years ago • 11 comments

Problem

  • As a power contributor, I want to play Hunger Games in the transportation, or go to the Product to Be Completed list, and help categorize new products
  • it currently takes me 3 taps (for Hunger Games) or 4 taps (for Product to Be Completed list)

Proposed solution

  • [ ] Add Android app shortcuts for "Hunger Games"
  • [ ] Add Android app shortcuts for "Product to Be Completed" list

Part of

  • #2479

teolemon avatar Oct 30 '22 11:10 teolemon

@teolemon There are three tabs in bottom nav bar ,Only possible screen I can think of is Profile screen ,So where exactly are intending to put these shortcut ,One thing I can think of is, We can put floating action buttons on right bottom corner on profile screen itself.

omkarChend1kar avatar Nov 12 '22 15:11 omkarChend1kar

Screenshot_20221112-174508.png

teolemon avatar Nov 12 '22 16:11 teolemon

This is not a shortcut within the app, this would be a shortcut from your android home screen

teolemon avatar Nov 12 '22 16:11 teolemon

Understood

omkarChend1kar avatar Nov 12 '22 17:11 omkarChend1kar

I have found couple of plugins which could get this done for us, There are two plugins which could exactly helps us for this enhancements

  • https://pub.dev/packages/app_shortcuts
  • https://pub.dev/packages/flutter_app_shortcut

There is also one another thing that I found, Quick actions which is somewhat different, In this user have to long press on app icon to get required shortcuts, This can be implemented using following plugin itself :

  • https://pub.dev/packages/quick_actions

image

Although, I would like to know your views on whether we can use these plugins or we should go with the Method Channels implementation from scratch.

omkarChend1kar avatar Nov 13 '22 04:11 omkarChend1kar

Here goes the same thing as with similar issues, we likely need Navigator V2 for this

#921 #920

Although, I would like to know your views on whether we can use these plugins or we should go with the Method Channels implementation from scratch.

@g123k is likely the one to have a preferece here

M123-dev avatar Nov 13 '22 11:11 M123-dev

@M123-dev @g123k I have good news about Navigator V2.

Around #3018, part of the solution is not to wait for an answer when you open a new page.

Typically, we used to say "open that page and get the product as a result" (and that was not compliant with deep-linking).

When #3018 is completed, we'll never expect a page to return anything. If the page "succeeds", it will mean that it has

  • put locally temporary product changes
  • sent the same changes to the server
  • refreshed the providers (and therefore all product related pages/widgets) (including the calling page)

monsieurtanuki avatar Nov 13 '22 11:11 monsieurtanuki

Also @omkarChend1kar this is not shortcuts on the main icon. As the screenshot shows, this is the ability to add additional icons to some parts of the app (or even specific lists). I believe it's an Android only feature, called pinned shortcuts. https://developer.android.com/develop/ui/views/launch/shortcuts/creating-shortcuts#pinned

teolemon avatar Nov 13 '22 12:11 teolemon

Also @omkarChend1kar this is not shortcuts on the main icon. As the screenshot shows, this is the ability to add additional icons to some parts of the app (or even specific lists). I believe it's an Android only feature, called pinned shortcuts. https://developer.android.com/develop/ui/views/launch/shortcuts/creating-shortcuts#pinned

Yeah, I am aware about that ,I thought mentioning it might be useful for this kind of usecase.

omkarChend1kar avatar Nov 13 '22 12:11 omkarChend1kar

Here goes the same thing as with similar issues, we likely need Navigator V2 for this

#921 #920

Although, I would like to know your views on whether we can use these plugins or we should go with the Method Channels implementation from scratch.

@g123k is likely the one to have a preferece here

Okay

omkarChend1kar avatar Nov 13 '22 14:11 omkarChend1kar

@teolemon Pinned shortcuts are the equivalent of iOS force touch feature. The only question is here: do you want dynamic items (eg: a direction to a custom list) or some hard coded lists.

Depending on that, the implementation may differ.

g123k avatar Nov 13 '22 15:11 g123k