tch_common_widgets library Null safety

Classes

ButtonsStyle
ButtonWidget
CommonButtonStyle
CommonDimens
CommonSpace
CommonSpaceH
CommonSpaceHDouble
CommonSpaceHHalf
CommonSpaceV
CommonSpaceVDouble
CommonSpaceVHalf
CommonTheme
ConfirmDialog
ConfirmDialogStyle
DatePickerFormFieldStyle
DatePickerFormFieldWidget
DatePickerFormFieldWidgetState
DialogContainer
DialogContainerStyle
DialogFooter
DialogFooterStyle
DialogHeader
DialogHeaderStyle
DialogsStyle
FormFieldValidation<T>
FormStyle
IconButtonStyle
IconButtonWidget
ListDialog<T>
ListDialogOption<T>
ListDialogStyle
LoadingBuilder
PreferencesSwitchStyle
PreferencesSwitchWidget
SelectionFormFieldStyle
SelectionFormFieldWidget<T>
SelectionFormFieldWidgetState<T>
SwitchToggleWidget
SwitchToggleWidgetStyle
TextFormFieldStyle
TextFormFieldWidget

Constants

kCommonHorizontalMargin → const double
16.0
kCommonHorizontalMarginDouble → const double
32.0
kCommonHorizontalMarginHalf → const double
8.0
kCommonHorizontalMarginQuarter → const double
4.0
kCommonPrimaryMargin → const double
16.0
kCommonPrimaryMarginDouble → const double
32.0
kCommonPrimaryMarginHalf → const double
8.0
kCommonVerticalMargin → const double
16.0
kCommonVerticalMarginDouble → const double
32.0
kCommonVerticalMarginHalf → const double
8.0
kCommonVerticalMarginQuarter → const double
4.0
kDrawerWidth → const double
304
kEmailPattern → const String
r"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,253}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,253}[a-zA-Z0-9])?)*$"
kIconSize → const double
24
kIconSizeNotTouch → const double
20
kMinInteractiveSize → const double
48
kMinInteractiveSizeNotTouch → const double
24
kPhoneStopBreakpoint → const double
576

Functions

validateEmail(String? value) bool
Validate String value is valid email
validateRequired(String? value) bool
Validate String value is not empty
validateValidations<T>(List<FormFieldValidation<T>> validations, T? value) String?
Validate all provided FormFieldValidations, stop on first error and return it

Enums

ButtonVariant
IconButtonVariant
PreferencesSwitchLayout
ShowRequiredLabelSuffix
TextFormFieldVariant