VirtualKeyboard constructor

const VirtualKeyboard({
  1. Key? key,
  2. required KeyboardConfigController configurationController,
  3. required KeyboardViewInsetsState? insetsState,
  4. VirtualKeyboardStyle? decorations,
  5. int maxKeys = 10,
  6. double? maxHeight,
  7. EdgeInsets keyPadding = const EdgeInsets.all(8),
  8. EdgeInsets keyboardPadding = const EdgeInsets.symmetric(horizontal: 8),
})

Implementation

const VirtualKeyboard({
  super.key,
  required this.configurationController,
  required this.insetsState,
  this.decorations,
  this.maxKeys = 10,
  this.maxHeight,
  this.keyPadding = const EdgeInsets.all(8),
  this.keyboardPadding = const EdgeInsets.symmetric(horizontal: 8),
}) : assert(insetsState != null,
          'The KeyboardViewInsetsState does not exist. Most probably you forgot to initiate KeyboardViewInsets, or the context is from the upper widget tree and does not contain the KeyboardViewInsets widget.');