AnimatedKeyboardPadding constructor

const AnimatedKeyboardPadding({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(milliseconds: 250),
  4. Curve curve = Curves.easeOut,
})

Creates an AnimatedKeyboardPadding widget.

The child parameter is required and represents the widget that will receive animated bottom padding based on keyboard state.

The duration parameter controls how long the animation takes. Defaults to 250 milliseconds.

The curve parameter controls the animation easing. Defaults to Curves.easeOut.

Implementation

const AnimatedKeyboardPadding({
  super.key,
  required this.child,
  this.duration = const Duration(milliseconds: 250),
  this.curve = Curves.easeOut,
});