InfoFormState<T extends InfoForm> class abstract

Inheritance

Constructors

InfoFormState.new()

Properties

context BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
heading String
getter/setter pair
INPUT_WIDGET_WIDTH double
final
isEdit bool
getter/setter pair
LABEL_COLUMN_WIDTH double
final
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedImage File?
getter/setter pair
selectedImageBytes Uint8List?
getter/setter pair
widget → T
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
addressFormEntry({String title = 'Address', String subTitle = 'the address', Address? defaultValue}) Widget
branchCodeFormEntry({String title = 'Branch Code', String subTitle = 'the branch code', dynamic onSaved(String?)?, String? defaultValue}) Widget
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
buildHeading() Widget
categoryFormEntry(List<String> categories, {String title = 'Category', String subTitle = 'the category in which this meal will be placed', String? hintText, IconData iconData = Icons.category, dynamic onChanged(String?)?, String? defaultValue, dynamic onExpandChanged(bool expand)?, VoidCallback? onPressed, FocusNode? focusNode, Widget? suffix}) Widget
checkBoxFormEntry({String title = 'Checkbox', String subTitle = 'Select/Deselect', dynamic onChanged(bool?)?, bool defaultValue = false}) Widget
checkboxListFormEntry({String title = 'Checkbox List', String subTitle = 'Select multiple options', required List<String> options, required Map<String, bool> selectedOptions, required dynamic onChanged(String, bool), String? validator(Map<String, bool>?)?, bool isRequired = false}) Widget
cuisineTypeFormEntry({String title = 'Cuisine Type', String subTitle = 'the cuisine type', dynamic onChanged(String?)?, String? defaultValue}) Widget
currencyDropDownEntry({String title = 'Currency', String subTitle = 'Select the currency for your menu', dynamic onChanged(String?)?, String? defaultValue}) Widget
datePickerEntry({String title = 'Date', String subTitle = 'the date', dynamic onChanged(DateTime?)?, DateTime? firstDate, DateTime? lastDate, Function? onPressed, DateTime? defaultValue}) Widget
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
descriptionFormEntry({String title = 'Description', String subTitle = 'the description of your meal that will be displayed below the name', dynamic onSaved(String?)?, dynamic onChanged(String?)?, int maxLines = 1, String? defaultValue}) Widget
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant T oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
inherited
emailFormEntry({String title = 'Email', String subTitle = 'the email address', dynamic onSaved(String?)?, String? defaultValue, bool verified = false, bool showVerifyButton = true, VoidCallback? onVerify}) Widget
foodModeFormEntry({String title = 'Food Mode', String subTitle = 'Select the food modes available', dynamic onSeatingChanged(bool?)?, dynamic onDeliveryChanged(bool?)?, bool hasSeating = false, bool hasDelivery = false}) Widget
formEntry({String? title, String? subTitle, Widget? inputWidget}) Widget
initState() → void
Called when this object is inserted into the tree.
override
labelColumnEntry(String title, String subTitle) Widget
multiPhotoFormEntry({String title = 'Photos', String subTitle = 'Upload multiple photos', List<File>? selectedImages, dynamic onImagesSelected(List<File>)?, dynamic onXFilesSelected(List<XFile>)?, int maxImages = 5}) Widget
multiSelectChipfieldFormEntry({String title = 'Chipfield', String subTitle = '', required void onChanged(List<String>), required List<String> items, String? validator(List<String>?)?, List<String>? defaultValues}) Widget
multiSelectFormEntry({String title = 'Multi Select', String subTitle = 'Choose multiple options from the list', required List<String> options, required void onChanged(List<String>), String? validator(List<String>?)?, List<String>? defaultValues, bool searchable = true, String confirmText = 'Select', String cancelText = 'Cancel', bool isRequired = false}) Widget
nameFormEntry({String title = 'Name', String subTitle = 'the name', dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue}) Widget
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numberSpinnerFormEntry({String title = 'Seating Capacity', String subTitle = 'the seating capacity', double min = 1, double max = 500, double step = 1, int decimals = 0, dynamic onChanged(double?)?, String? validator(String?)?, double? defaultValue}) Widget
openDetailsFormEntry({String title = 'Open details', String subTitle = 'Goto necessary details', String hintText = 'Open details', String displayText = '', IconData icon = Icons.details, GestureTapCallback? onTap}) Widget
phoneFormEntry({String title = 'Phone', String subTitle = 'the phone number', dynamic onSaved(String?)?, String? defaultValue, bool verified = false, bool showVerifyButton = true, VoidCallback? onVerify}) Widget
pickImage() Future<void>
pictureFormEntry({String title = 'Picture', String subTitle = 'you can change the picture', String? defaultValue}) Widget
postalCodeFormEntry({String title = 'Postal code', String subTitle = 'the postal code', dynamic onSaved(String?)?, String? defaultValue}) Widget
radioButtonFormEntry<T>({String title = 'Radio Selection', String subTitle = 'Choose one option', required List<T> options, required String getDisplayText(T), required dynamic onChanged(T?), T? defaultValue, String? validator(T?)?, bool isRequired = false}) Widget
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
removeProfilePicture() → void
roleFormEntry({String title = 'Role', String subTitle = 'the role', dynamic onChanged(UserRoles?)?, UserRoles? defaultValue, UserRoles? preDefinedRole}) Widget
save() Future<void>
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
singleSelectFormEntry({String title = 'Select Option', String subTitle = 'Choose one option from the list', required List<String> options, String? hintText, IconData iconData = Icons.list, dynamic onChanged(String?)?, String? defaultValue, String? validator(String?)?, bool isRequired = false}) Widget
sSNFormEntry({String title = 'SSN', String subTitle = 'the social security number', dynamic onSaved(String?)?, String? defaultValue}) Widget
switchFormEntry({String title = 'Switch', String subTitle = 'the switch', required dynamic onToggle(bool), bool defaultValue = false}) Widget
textFormEntry({String title = 'Text', String subTitle = 'the text', String hint = 'Text', IconData iconData = Icons.text_fields, dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue, TextEditingController? controller}) Widget
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
websiteUrlFormEntry({String title = 'Website URL', String subTitle = 'the website URL', dynamic onSaved(String?)?, String? defaultValue}) Widget
workingHoursFormEntry({String title = 'Working Hours', String subTitle = 'the working hours', dynamic onChanged(List<WorkingHour>)?, List<WorkingHour>? defaultValue, WorkingHoursLayout layout = WorkingHoursLayout.daysAsRows}) Widget

Operators

operator ==(Object other) bool
The equality operator.
inherited