inputDecoration static method

InputDecoration inputDecoration({
  1. String? label,
  2. String? hint,
  3. Widget? icon,
  4. bool filled = true,
})

Implementation

static InputDecoration inputDecoration({
  String? label,
  String? hint,
  Widget? icon,
  bool filled = true,
}) =>
    InputDecoration(
        hintStyle: TextStyle(color: AppColors.textColor),
        suffixIcon: icon,
        suffixStyle: TextStyle(color: AppColors.textColor),
        prefixStyle: TextStyle(color: AppColors.textColor),
        filled: filled,
        fillColor: AppColors.mainColor,
        labelText: label,
        hintText: hint,
        border: const GradientOutlineInputBorder(
          borderRadius: BorderRadius.all(Radius.circular(20)),
        ));