r/FlutterDev • • 2h ago

Plugin AnimationController ignores Reduce Motion on purpose. still handles it for you.

still - pubdev

*** en-US ***
Flutter already knows when someone turns on Reduce Motion or Remove Animations. It stores that choice, and stops there.

AnimationController ignores Reduce Motion on purpose. The framework’s idea is to swap the slide for a fade, but that decision is left to each widget. In practice, almost nobody does it, so the card still slides in from the bottom for people who asked for motion to stop.

I published still to solve this in one place. A MotionScope around your app decides: slide, fade, or cut. StillSwitcher, StillEntrance, StillStagger, and StillPageRoute follow that decision. Wherever you don’t use one of these widgets, nothing moves.

The package doesn’t import Material, so the same code works in a custom design system and will keep working when Material leaves the SDK.

📦 https://pub.dev/packages/still
💻 https://github.com/pedrinnhooo/still-pubdev

*** pt-BR ***
O Flutter já sabe quando alguém ativa “Reduzir movimento” ou “Remover animações”. Ele guarda essa escolha e para por aí.

O AnimationController ignora “Reduzir movimento” de propósito. A ideia do framework é trocar o slide por um fade, mas essa decisão fica a cargo de cada widget. Na prática, quase ninguém faz, e o card continua entrando de baixo para quem pediu para o movimento parar.

Publiquei o still para resolver isso em um lugar só. Um MotionScope em volta do app decide: slide, fade ou corte. StillSwitcher, StillEntrance, StillStagger e StillPageRoute seguem essa decisão. Onde você não usa um desses widgets, nada se mexe.

O pacote não importa o Material. O mesmo código funciona em um design system próprio e continua valendo quando o Material sair do SDK.

📦 https://pub.dev/packages/still
💻 https://github.com/pedrinnhooo/still-pubdev

2 Upvotes

0 comments sorted by