LiteFormsConfiguration constructor
LiteFormsConfiguration({
- LiteFormsTheme? lightTheme,
- LiteFormsTheme? darkTheme,
- AutovalidateMode? autovalidateMode,
- DropSelectorSettings dropSelectorSettings = const DropSelectorSettings(topLeftRadius: kDefaultFormSmoothRadius, topRightRadius: kDefaultFormSmoothRadius, bottomLeftRadius: kDefaultFormSmoothRadius, bottomRightRadius: kDefaultFormSmoothRadius, dropSelectorActionType: DropSelectorActionType.simple, dropSelectorType: DropSelectorType.adaptive),
- String? defaultDateFormat,
- TextEntryModalRouteSettings? defaultTextEntryModalRouteSettings,
- String? defaultTimeFormat,
- bool? allowUnfocusOnTapOutside,
- bool useAutogeneratedHints = false,
Implementation
LiteFormsConfiguration({
this.lightTheme,
this.darkTheme,
this.autovalidateMode,
this.dropSelectorSettings = const DropSelectorSettings(
topLeftRadius: kDefaultFormSmoothRadius,
topRightRadius: kDefaultFormSmoothRadius,
bottomLeftRadius: kDefaultFormSmoothRadius,
bottomRightRadius: kDefaultFormSmoothRadius,
dropSelectorActionType: DropSelectorActionType.simple,
dropSelectorType: DropSelectorType.adaptive,
),
/// [defaultDateFormat] is a string pattern acceptable by [DateFormat]
/// for example 'yyyy-MM-dd'
this.defaultDateFormat,
this.defaultTextEntryModalRouteSettings,
/// [defaultTimeFormat] is a string pattern acceptable by [DateFormat]
/// for example 'HH:mm' for a 24 hour format and 'hh:mm a' for 12
this.defaultTimeFormat,
this.allowUnfocusOnTapOutside,
this.useAutogeneratedHints = false,
});