cortinico/slidetoact

Is there any way to change text color partially ?

adneerav opened this issue · 2 comments

What kind of issue is this?

  • Feature Request. How to change text color for the swiped area content text. ?

Details

I want to change text color for the swiped content area.
Example :

I have text "Slide to pay" & initially text color is RED
Now if I swipe up to "Slide".
Text color of "Slide" text should be changed to GREEN & remaining text("to pay") color should remain same as per initial color(RED).

Any suggestion or help ?

If I understand correctly, you're asking for support to partially color the text based on the slide percentage. So if you slide till 50%, half of the text should be colored differently than the other half.

That's currently not supported at the moment. Suggestions/ideas on how to do it are more than welcome.

Yes correct,

I have done that by calculating text size and innerthumb position.

I'll implement that using style attributes and create PR whenever I have some spare time.

Thanks