InfoFormState<T extends InfoForm> class
abstract
Abstract state class that provides form entry methods and common functionality
Constructors
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
- isEdit ↔ bool
-
getter/setter pair
- 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 = 'Enter address', Address? defaultValue}) → Widget - Address form field
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
buildHeading(
) → Widget - Builds the form heading with edit and save buttons
-
checkBoxFormEntry(
{String title = 'Checkbox', String subTitle = 'Select/Deselect', dynamic onChanged(bool?)?, bool defaultValue = false}) → Widget - Checkbox form field
-
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 = 'Enter description', String hint = 'Enter detailed description...', dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue, int maxLines = 4}) → Widget - Multi-line description form field
-
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 = 'Enter email address', String hint = 'email@example.com', dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue}) → Widget - Email form field with validation
-
formEntry(
{String? title, String? subTitle, Widget? inputWidget}) → Widget - Generic form entry wrapper for consistent styling
-
initState(
) → void -
Called when this object is inserted into the tree.
override
-
multiPhotoFormEntry(
{String title = 'Photos', String subTitle = 'Upload multiple photos', List< File> ? selectedImages, dynamic onImagesSelected(List<File> )?, dynamic onXFilesSelected(List<XFile> )?, int maxImages = 5}) → Widget - Multi-photo form field
-
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 - Multi-select form field
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
numberSpinnerFormEntry(
{String title = 'Number', String subTitle = 'Select a number', double min = 1, double max = 100, double step = 1, int decimals = 0, dynamic onChanged(double?)?, String? validator(String?)?, double? defaultValue}) → Widget - Number spinner form field
-
phoneFormEntry(
{String title = 'Phone Number', String subTitle = 'Enter phone number', String? defaultValue, bool verified = false, bool showVerifyButton = true, VoidCallback? onVerify, dynamic onSaved(String?)?}) → Widget - Phone number form field
-
pickImage(
) → Future< void> - Picks an image from gallery with web compatibility
-
pictureFormEntry(
{String title = 'Picture', String subTitle = 'Upload a picture', String? defaultValue}) → Widget - Single picture form field
-
postalCodeFormEntry(
{String title = 'Postal Code', String subTitle = 'Enter postal code', dynamic onSaved(String?)?, String? defaultValue}) → Widget - Postal code form field
-
radioButtonFormEntry<
R> ({String title = 'Radio Selection', String subTitle = 'Choose one option', required List< R> options, required String getDisplayText(R), required dynamic onChanged(R?), R? defaultValue, String? validator(R?)?, bool isRequired = false}) → Widget - Generic radio button form field
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
removeProfilePicture(
) → void - Removes the currently selected profile picture
-
save(
) → Future< void> - Override this method to implement save functionality
-
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 - Single select dropdown form field
-
switchFormEntry(
{String title = 'Switch', String subTitle = 'Toggle option', required dynamic onToggle(bool), bool defaultValue = false}) → Widget - Switch/toggle form field
-
textFormEntry(
{String title = 'Text', String subTitle = 'Enter text', String hint = 'Text', IconData iconData = Icons.text_fields, dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue, TextEditingController? controller}) → Widget - Generic text form field
-
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 = 'Enter website URL', String hint = 'https://example.com', dynamic onSaved(String?)?, String? validator(String?)?, String? defaultValue}) → Widget - Website URL form field
-
workingHoursFormEntry(
{String title = 'Working Hours', String subTitle = 'Set working hours', dynamic onChanged(List< WorkingHour> )?, List<WorkingHour> ? defaultValue, WorkingHoursLayout layout = WorkingHoursLayout.daysAsRows}) → Widget - Working hours form field
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited