getInputDecoration method

InputDecoration getInputDecoration(
  1. ColorScheme colors,
  2. String? label,
  3. String? placeholder
)

Implementation

InputDecoration getInputDecoration(ColorScheme colors, String? label, String? placeholder) {
  return InputDecoration(
    border: InputBorder.none,
    hintText: placeholder ?? label,
    hintStyle: getHintStyle(colors),
    isCollapsed: true,
    contentPadding: const EdgeInsets.symmetric(vertical: 5),
  );
}