Skip to content

Feature Request: Implicitly-Animated Children #90

@RyanRamchandar

Description

@RyanRamchandar

Feature Request: Implicitly-Animated Children

Need
When I toggle a flag to show or hide a widget inside ResizableContainer, the child pops in/out with no transition. It would be great if the package could animate that change automatically (à la AnimatedSwitcher).

Suggested API

ResizableContainer(
  size: _size,
  animateChildren: true,          // NEW – defaults to false
  childTransitionBuilder: _,      // optional custom transition
  child: …,
)

If animateChildren is true, the container wraps its child in an implicit animation (fade / scale by default) whenever the child or ResizeableSize changes for example.

Why

Smoother UX for simple show/hide use-cases.
Backwards-compatible: existing code keeps working with animateChildren left at false.
Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions