getInputDecoration static method

InputDecoration getInputDecoration(
  1. Icon icon,
  2. String label
)

Implementation

static InputDecoration getInputDecoration(Icon icon, String label) {
  return InputDecoration(
    errorBorder: InputBorder.none,
    enabledBorder: InputBorder.none,
    floatingLabelBehavior: FloatingLabelBehavior.auto,
    focusedBorder: InputBorder.none,
    labelStyle: const TextStyle(
      color: Color(0xff8E8E93),
      fontStyle: FontStyle.normal,
      fontWeight: FontWeight.w300,
      fontSize: 13,
    ),
    labelText: label,
    prefixIcon: icon,
  );
}