KeyboardTheme constructor

KeyboardTheme(
  1. BuildContext context, {
  2. EdgeInsets? keyPadding,
  3. Color? backgroundColor,
  4. double? borderWidth,
  5. Color? borderColor,
  6. Color? textColor,
  7. TextStyle? textStyle,
})

Implementation

KeyboardTheme(
  BuildContext context, {
  EdgeInsets? keyPadding,
  Color? backgroundColor,
  double? borderWidth,
  Color? borderColor,
  Color? textColor,
  TextStyle? textStyle,
})  : keyPadding = keyPadding ??
          const EdgeInsets.symmetric(
            horizontal: 8.0,
            vertical: 24.0,
          ),
      backgroundColor =
          backgroundColor ?? Theme.of(context).colorScheme.primary,
      borderWidth = borderWidth ?? 0.2,
      borderColor = borderColor ?? Theme.of(context).colorScheme.onPrimary,
      textColor = textColor ?? Theme.of(context).colorScheme.onPrimary,
      textStyle = textStyle ??
          Theme.of(context).textTheme.bodyMedium?.copyWith(
                color: Theme.of(context).colorScheme.onPrimary,
              );