card_settings library

Package for building card based settings forms

Classes

CardFieldLayout
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.
CardSettingsColorPicker
This is the color picker field
CardSettingsCurrency
This is a currency field.
CardSettingsCurrencyState
CardSettingsDatePicker
This is the date picker field
CardSettingsDouble
This is a password field. It obscures the entered text.
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.
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
This is a list picker that allows an arbitrary list of options to be provided.
CardSettingsMultiselect
This is a selection widget 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
CardSettingsSection
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.
CustomTrackShape
FullScreenSelect

Constants

kPickerItemHeight → const double
32.0
kPickerSheetHeight → const double
216.0

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

Enums

CardSettingsColorPickerType