ch4rl3x / RevealSwipe

Compose RevealSwipe
Apache License 2.0
202 stars 11 forks source link

Reveal size #2

Open nicola73 opened 2 years ago

nicola73 commented 2 years ago

Hello, congratulations for the excellent work. Would it be possible to make sure that the uncovered area after the swipe is automatically calculated dinamically based on the revealed part size, both left and right? Currently i use "maxRevealDp = x.dp" but a fixed size doesn't fit all situations. Thank you.

ch4rl3x commented 2 years ago

Hey. What exactly do you mean? Without a fixed size, there will no swipe limit right? Which situation do you mean?

nicola73 commented 2 years ago

The revealed width must coincide with the width of the controls positioned under automatically. If you set a fixed reveal size, with maxRevealDp, it may not be adequate for the swipe controls on the back. I must set a larger maxRevealDp to ensure the underneath visibility:

Screenshot_20220104_090545

instead the length should be automatic:

Screenshot_20220104_090716