symbolEffect-style icon micro-interactions for Mix #809
leoafarias
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Should Mix add a SwiftUI-like
symbolEffectAPI for icons (bounce/pulse/wiggle/rotate/breathe) using existing Mix animation infrastructure?The goal is a tiny, ergonomic API for common icon micro-interactions with minimal new engine surface. Effects are transform/opacity only (Flutter icons are font glyphs).
Problem
Today, simple icon effects require custom animation boilerplate per screen. That makes design-system motion inconsistent and repetitive.
Proposed API (Swift-like entry point)
Proposed API (explicit helper methods, validated plan style)
What users do today (current Mix API)
Indefinite effects today require manual controllers or wrapper widgets (AnimatedBuilder, custom state), which is more boilerplate than a style-level API.
Constraints / Prerequisites
Before shipping effects, the current phase animation driver needs fixes:
PhaseAnimationDriver.updateDriver.Downsides / Risks
animationproperty if both are used.Alternatives (if we do not add symbolEffect)
phaseAnimationrecipes (bounce/pulse/rotate).IconStyler().motion(.bounce(...)).Open Questions
.symbolEffect) or explicit helpers (.bounceOnChange)?Scope
Beta Was this translation helpful? Give feedback.
All reactions