appyx icon indicating copy to clipboard operation
appyx copied to clipboard

Gesture navigation

Open KovalevAndrey opened this issue 1 year ago • 6 comments

Explore and create an API for navigating with gestures

KovalevAndrey avatar Aug 24 '22 09:08 KovalevAndrey

Also please note Android 13 predictive back gesture. Support for it would be awesome! https://developer.android.com/guide/navigation/predictive-back-gesture

amal avatar Aug 30 '22 13:08 amal

@amal I think it's already in place https://github.com/bumble-tech/appyx/pull/32

KovalevAndrey avatar Aug 30 '22 18:08 KovalevAndrey

@KovalevAndrey it's awesome, thank you!

amal avatar Aug 30 '22 18:08 amal

I'm curious, what's the reason for promoting this instead of encouraging people to use, say, horizontal pager from Accompanist?

saket avatar Sep 01 '22 21:09 saket

@saket having a consistent API is one of the reasons. You could easy change from a full screen implementation to horizontal pager without a potentially substantial refactor.

LachlanMcKee avatar Sep 01 '22 23:09 LachlanMcKee

@saket NavModel at any given level of the tree coordinates navigation of the subtree. It allows us to keep our codebase organised in a tree structure, and use to use parent-child api, etc. Implementing it with, say, horizontal pager breaks this tree structure.

KovalevAndrey avatar Sep 02 '22 08:09 KovalevAndrey