filled static method

InputDecoration filled(
  1. BuildContext context, {
  2. String? hintText,
  3. Widget? prefixIcon,
})

Filled form field with rounded corners — used in address forms.

Implementation

static InputDecoration filled(
  BuildContext context, {
  String? hintText,
  Widget? prefixIcon,
}) {
  final data = <String, dynamic>{
    'name': 'filled', 'context': context,
    'hintText': hintText, 'prefixIcon': prefixIcon,
  };
  final result = MooseScope.hookRegistryOf(context).execute<dynamic>('styles:input', data);
  if (result is InputDecoration) return result;
  return _defaultFilled(context, hintText: hintText, prefixIcon: prefixIcon);
}