card_settings library

Package for building card based settings forms

Classes

CardFieldLayout
Lays out multiple fields in a row
CardSettings
This is the card wrapper that all the field controls are placed into
CardSettingsButton
This is a button widget for inclusion in the form.
CardSettingsCheckboxPicker<T>
This is a selection widget that allows an arbitrary list of options to be provided.
CardSettingsColorPicker
This is the color picker field
CardSettingsCurrency
This is a currency field.
CardSettingsDatePicker
This is the date picker field
CardSettingsDateTimePicker
This is the date picker field
CardSettingsDouble
This is a phone number field. It's designed for US numbers
CardSettingsEmail
This is a password field. It obscures the entered text.
CardSettingsField
This is the basic layout of a field in a CardSettings view. Typcially, it will not be used directly.
CardSettingsFilePicker
This is the file picker field
CardSettingsHeader
This is a header to distinguish sections of the form.
CardSettingsInstructions
This is a read only section of text
CardSettingsInt
This is a password field. It obscures the entered text.
CardSettingsListPicker<T>
This is a list picker that allows an arbitrary list of options to be provided.
CardSettingsNumberPicker
This is a list picker that allows for a range of numbers to be speficied as pptions.
CardSettingsParagraph
This is a password field. It obscures the entered text.
CardSettingsPassword
This is a password field. It obscures the entered text.
CardSettingsPhone
This is a phone number field. It's designed for US numbers
CardSettingsRadioPicker<T>
This is a list picker that allows an arbitrary list of options to be provided.
CardSettingsSection
This visually wraps a logical grouping of form widgets
CardSettingsSelectionPicker<T>
This is a list picker that allows an arbitrary list of options to be provided.
CardSettingsSlider
This is a field that allows a boolean to be set via a switch widget.
CardSettingsSwitch
This is a field that allows a boolean to be set via a switch widget.
CardSettingsText
This is a standard one line text entry It's based on the TextFormField widget.
CardSettingsTimePicker
This field allows a time to be selected.
CardSettingsWidget
abstract class to ensure that all widgets implement the base set of properties expected by the settings panel wrapper
PickerModel

Enums

CardSettingsColorPickerType
This allows selection of which variant of the color picker you would like to use

Constants

kCupertinoPickerItemHeight → const double
this is the default height for a single item in cupertino picker
kCupertinoPickerSheetHeight → const double
this is the default height for the cupertino scroll wheel
unimplemented → const String

Functions

boolParse(String? value) bool
This will parse various conceptual representaitons of yes/no into a boolean
colorParse(dynamic value) Color
This will parse either a string or integer representation of a color into an actual Color
colorToString(Color color) String
This will convert a Color to a hex string (more abreviated than the .toString() method.
intelligentCast<T>(dynamic value) → T?
This attempts to intelligently cast any value to the desired type.
unmaskValue(String mask, String maskedValue) String
used to reverse the value from an mask_formatter controller
updateJustDate(DateTime newDate, DateTime originalDateTime) DateTime
Given a DateTime this will replace just the date portion leaving the time unchanged
updateJustTime(TimeOfDay newTime, DateTime originalDateTime) DateTime
Given a DateTime this will replace just the time portion leaving the date unchanged