native static method

Widget native({
  1. String? hint,
  2. String? label,
  3. Color? hintColor,
  4. double? padding,
  5. Color? bgColor,
  6. Color? labelColor,
  7. Color? borderColor,
  8. Color? focusBorderColor,
  9. bool? obscureText,
  10. required Function onChanged,
  11. Widget? suffix,
  12. Widget? prefix,
  13. TextInputType? keyboardType,
  14. TextEditingController? controller,
})

Native Text Fields

Implementation

static Widget native({
  String? hint,
  String? label,
  Color? hintColor,
  double? padding,
  Color? bgColor,
  Color? labelColor,
  Color? borderColor,
  Color? focusBorderColor,
  bool? obscureText,
  required Function onChanged,
  Widget? suffix,
  Widget? prefix,
  TextInputType? keyboardType,
  TextEditingController? controller,
}) {
  if (Platform.isIOS) {
    return iosTextField(
      hint,
      label,
      hintColor,
      padding,
      bgColor,
      labelColor,
      borderColor,
      focusBorderColor,
      obscureText,
      onChanged,
      suffix,
      prefix,
      keyboardType,
      controller,
    );
  } else {
    return androidTextField(
      hint,
      label,
      hintColor,
      padding,
      bgColor,
      labelColor,
      borderColor,
      focusBorderColor,
      obscureText,
      onChanged,
      suffix,
      prefix,
      keyboardType,
      controller,
    );
  }
}