FormHelper class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
dropDownWidget(BuildContext context, String hintText, dynamic value, List lstData, Function onChanged, Function onValidate, {double hintFontSize = 15, Color borderColor = Colors.redAccent, double borderRadius = 30, Color borderFocusColor = Colors.redAccent, double paddingLeft = 20, double paddingRight = 20, double paddingTop = 0, double paddingBottom = 0, String optionValue = "id", String optionLabel = "name", double contentPadding = 6, Color validationColor = Colors.redAccent, Color textColor = Colors.black, Color hintColor = Colors.black, double borderWidth = 2, double focusedBorderWidth = 2, double enabledBorderWidth = 1, Widget? suffixIcon, Icon? prefixIcon, bool showPrefixIcon = false, Color prefixIconColor = Colors.redAccent, double prefixIconPaddingLeft = 30, double prefixIconPaddingRight = 10, double prefixIconPaddingTop = 0, double prefixIconPaddingBottom = 0})
→ Widget
-
-
dropDownWidgetWithLabel(BuildContext context, String labelName, String hintText, dynamic value, List lstData, Function onChanged, Function onValidate, {double labelFontSize = 20, bool labelBold = true, double hintFontSize = 15, Color borderColor = Colors.redAccent, double borderRadius = 30, Color borderFocusColor = Colors.redAccent, double paddingLeft = 20, double paddingRight = 20, double paddingTop = 0, double paddingBottom = 0, String optionValue = "id", String optionLabel = "name", double contentPadding = 6, Color validationColor = Colors.redAccent, Color textColor = Colors.black, Color hintColor = Colors.black, double borderWidth = 2, double focusedBorderWidth = 2, double enabledBorderWidth = 1, Widget? suffixIcon, Icon? prefixIcon, bool showPrefixIcon = false, Color prefixIconColor = Colors.redAccent, double prefixIconPaddingLeft = 30, double prefixIconPaddingRight = 10, double prefixIconPaddingTop = 0, double prefixIconPaddingBottom = 0})
→ dynamic
-
-
fieldDecoration(BuildContext context, String hintText, String helperText, {Widget? prefixIcon, Widget? suffixIcon})
→ InputDecoration
-
-
inputFieldWidget(BuildContext context, String keyName, String hintText, Function onValidate, Function onSaved, {String initialValue = "", dynamic obscureText = false, double fontSize = 18, double hintFontSize = 15, double paddingLeft = 20, double paddingRight = 20, double paddingTop = 0, double paddingBottom = 0, Icon? prefixIcon, Widget? suffixIcon, double borderRadius = 30, Color borderColor = Colors.redAccent, Color borderFocusColor = Colors.redAccent, double borderWidth = 2, double focusedBorderWidth = 2, double enabledBorderWidth = 1, bool showPrefixIcon = false, Color prefixIconColor = Colors.redAccent, double prefixIconPaddingLeft = 30, double prefixIconPaddingRight = 10, double prefixIconPaddingTop = 0, double prefixIconPaddingBottom = 0, bool isMultiline = false, Function? onChange, Color textColor = Colors.black, Color hintColor = Colors.black, Color validationColor = Colors.redAccent, double contentPadding = 6, int multilineRows = 4, bool isNumeric = false, Color backgroundColor = Colors.transparent, Color borderErrorColor = Colors.redAccent, Color borderFocusedErrorColor = Colors.redAccent, double errorBorderWidth = 2, double focusedErrorBorderWidth = 2, bool isReadonly = false, int maxLength = 50})
→ Widget
-
-
inputFieldWidgetWithLabel(BuildContext context, String keyName, String labelName, String hintText, Function onValidate, Function onSaved, {String initialValue = "", dynamic obscureText = false, double labelFontSize = 20, bool labelBold = true, double fontSize = 18, double hintFontSize = 15, double paddingLeft = 20, double paddingRight = 20, double paddingTop = 0, double paddingBottom = 0, Widget? suffixIcon, Icon? prefixIcon, double borderRadius = 30, Color borderColor = Colors.redAccent, Color borderFocusColor = Colors.redAccent, double borderWidth = 2, double focusedBorderWidth = 2, double enabledBorderWidth = 1, bool showPrefixIcon = false, Color prefixIconColor = Colors.redAccent, double prefixIconPaddingLeft = 30, double prefixIconPaddingRight = 10, double prefixIconPaddingTop = 0, double prefixIconPaddingBottom = 0, double containerHeight = 60, double containerWidth = 0, bool isMultiline = false, Function? onChange, Color textColor = Colors.black, Color hintColor = Colors.black, Color validationColor = Colors.redAccent, double contentPadding = 6, int multilineRows = 4, bool isNumeric = false, Color backgroundColor = Colors.transparent, Color borderErrorColor = Colors.redAccent, Color borderFocusedErrorColor = Colors.redAccent, double errorBorderWidth = 2, double focusedErrorBorderWidth = 2, bool isReadonly = false, Color labelFontColor = Colors.black})
→ Widget
-
-
showSimpleAlertDialog(BuildContext context, String title, String message, String buttonText, Function onPressed)
→ void
-
-
submitButton(String buttonText, Function onTap, {double height = 50, double width = 150, Color btnColor = Colors.redAccent, double borderRadius = 30, Color borderColor = Colors.redAccent, double fontSize = 16, FontWeight fontWeight = FontWeight.w600, Color txtColor = Colors.white, Widget? prefixIcon})
→ Widget
-