VirtualKeyboard constructor

const VirtualKeyboard({
  1. Key? key,
  2. required Widget child,
  3. bool isEnabled = false,
  4. Duration transitionDuration = const Duration(milliseconds: 400),
})

Display a simulated on screen keyboard on top of the given child widget.

When isEnabled is updated, a transitionDuration starts to display or hide the virtual keyboard.

No interraction is available, its only purpose is to display the visual and update media query's viewInsets for child.

Implementation

const VirtualKeyboard({
  Key? key,
  required this.child,
  this.isEnabled = false,
  this.transitionDuration = const Duration(milliseconds: 400),
}) : super(key: key);