[Gestures · State Management · UI] - Hidden Discount Swipe
textpost · published
Attachments
🎭 Scenario
This mini-app simulates a shopping cart screen in an e-commerce app. The user can view a single product card, swipe it to reveal a hidden promo panel, copy a discount code, and apply it in a text field below the card.
You can find the technical requirements and mockups in the attachments section ☝️

🔤 Fonts - Host Grotesk
🔗 Useful Links for This Challenge
🤔 What's Allowed?
Standard Android / Jetpack libraries.
Use of Jetpack Compose Gesture APIs (e.g., swipeable, animateFloatAsState).
Material 3 components or simple custom ones.
Use of SnackbarHost or AnimatedVisibility for feedback messages.
Hardcoded promo code validation logic.
⚠️ What's not important
Real backend or promo validation API (hardcoded logic only).
Multiple products or cart list (only one item required).
Quantity modification (buttons are static).
Complex animation physics (simple horizontal transition is enough).
Advanced error styling (basic red text is fine).
🏆 Submission & Rewards
A successful submission of this challenge via the
/submit-challengecommand on Discord grants you 100 XP. You can use it in any channel on Discord :)A successful submission consists of these parts
A link to a Gist with your implementation
A screen recording (max 20 seconds) showing:
Swiping the product card to reveal the promo panel.
Copying the promo code (“Copied!” message appears).
Applying a valid code — discount applied to $149.
Entering an invalid code — “Invalid code” shown.



