form/form library

Classes

FormElement<T>
A generic class representing an option or item in a form element. This class is used to associate data with a human-readable title, making it suitable for dropdowns, radio buttons, and other selection-based widgets.
FormElementCalendarWidget
A customizable calendar input widget that allows users to select a date using a date picker dialog. This widget integrates with SmartFormSelector to provide a read-only text field with a calendar icon for triggering the date picker.
FormElementCheckBoxWidget
A customizable checkbox widget designed for use in forms, with support for validation and error handling. This widget allows users to toggle a checkbox and provides feedback through a callback function.
FormElementPhoneWidget
A customizable phone number input widget designed for use in forms, with built-in validation and formatting. This widget ensures that the input starts with a "+" sign and matches a predefined phone number format.
FormElementPhotoWidget
A customizable photo input widget designed for use in forms, allowing users to select an image from the gallery. This widget supports validation, error handling, and custom image display logic using a builder function.
FormElementRadioWidget<T>
A customizable radio button group widget designed for use in forms, allowing users to select one option from a list. This widget supports validation, error handling, and both horizontal and vertical layouts.
FormElementTextWidget
A customizable text input widget designed for use in forms, with built-in validation and error handling. This widget ensures that the input meets a minimum length requirement and provides feedback through callbacks.

Typedefs

PhotoBuilder = Widget Function(File? file)