native static method
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,
);
}
}