animated_fractionally_sized_box 2.0.0
animated_fractionally_sized_box: ^2.0.0 copied to clipboard

Animated version of FractionallySizedBox that gradually changes its values over a period of time.

animated_fractionally_sized_box #

Animated version of FractionallySizedBox that gradually changes its values over a period of time.

Description #

The AnimatedFractionallySizedBox will automatically animate between the old and new values of properties when they change using the provided curve and duration. Properties that are null are not animated. Its child and descendants are not animated.

Usage #

  • Add this line to pubspec.yaml
dependencies:
  animated_fractionally_sized_box: ^2.0.0
  • Import package
import 'package:animated_fractionally_sized_box/animated_fractionally_sized_box.dart';
  • Use it the same as a FractionallySizedBox
AnimatedFractionallySizedBox(
    widthFactor: widthFactor,
    heightFactor: heightFactor,
    alignment: Alignment.centerLeft,
    child: ...
)
  • See example for usage
1
likes
120
pub points
43%
popularity

Animated version of FractionallySizedBox that gradually changes its values over a period of time.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_fractionally_sized_box