Skip to content
pubscout

animated_fractionally_sized_box

2.0.1, released 4 years ago by an unverified publisher

An animated version of FractionallySizedBox that gradually changes values over time.

WASM-readyRepository archived
$ flutter pub add animated_fractionally_sized_box
Source repository

What it does

Provides an AnimatedFractionallySizedBox widget that automatically animates between old and new size factor properties when they change. It uses a provided duration and curve, behaving similarly to a standard FractionallySizedBox but with implicit animations.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to implicitly animate the widthFactor or heightFactor of a FractionallySizedBox.
  • You want a drop-in animated alternative to FractionallySizedBox without managing AnimationControllers manually.

Skip it when

  • You need to animate the child and its descendants directly.
  • You require fine-grained imperative control over the animation lifecycle.

Strengths

  • Easy to use as a drop-in replacement for FractionallySizedBox.
  • Automatically handles implicit animations between property changes.

Weaknesses

  • Does not animate the child widget or its descendants.
  • Limited to animating specific size factor properties.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
AnimatedFractionallySizedBox(
    widthFactor: widthFactor,
    heightFactor: heightFactor,
    alignment: Alignment.centerLeft,
    child: ...
)

Alternatives

Packages that do the same job and could replace animated_fractionally_sized_box.