AnimatedPadding

This widget motivated by AnimatedOpacity in Flutter.

Animated version of Padding which automatically transitions the indentation over a given duration whenever the given inset changes.

See: https://api.flutter.dev/flutter/widgets/AnimatedPadding-class.html

Props

padding

Value: EdgeGeometry | undefined

child

Value: Widget | undefined

duration

Value: number

curve

Value: Curve(default Curves.linear)

Examples

Basic