inputBackgroundColor property

  1. @override
Color get inputBackgroundColor
override

Background color for the input field.

Implementation

@override
Color get inputBackgroundColor {
  final isDark = Theme.of(context).brightness == Brightness.dark;
  final surfaceColor = Theme.of(context).colorScheme.surface;
  return isDark ? surfaceColor.withOpacity(0.7) : surfaceColor;
}