
Please, check the example app to see the use cases.
Data models:
- SettingsTileAction
- SettingsTileData
- SettingsGroupData
- SettingsCardData
- SettingsSelectableData
Widgets:
- SettingsTile
- SettingsGroup
- SettingsCard
- SettingsSelectable
- SettingsSection
| attribute name |
Datatype |
Default Value |
Description |
onPressed |
VoidCallback |
required |
callback, that will be called when action clicked |
key |
Key |
required |
key identifier, will be attached to the action widget |
(extends SettingsTileAction)
| attribute name |
Datatype |
Default Value |
Description |
text |
String |
required |
text, used in the action button |
(extends SettingsTileAction)
| attribute name |
Datatype |
Default Value |
Description |
svgIconPath |
String |
required |
file path for the SVG icon, used in the action button |
(extends SettingsTileAction)
| attribute name |
Datatype |
Default Value |
Description |
svgIconPath |
String |
required |
file path for the SVG icon, used in the action button |
isActive |
bool |
required |
flag, that impact on the colorful state of the action button |
(extends SettingsTileAction)
| attribute name |
Datatype |
Default Value |
Description |
value |
bool |
required |
flag, that specifies the current switch action state: on / off |
| attribute name |
Datatype |
Default Value |
Description |
title |
String |
required |
text, shown as a title inside SettingsTile widget |
action |
SettingsTileAction? |
null |
optional model, that describes action button |
svgIconPath |
String? |
null |
optional file path for the tile leading icon |
subTitle |
String? |
null |
optional text, shown as a subtitle in SettingsTile widget |
| attribute name |
Datatype |
Default Value |
Description |
title |
String |
null |
optional text, shown as a title of the group widget in SettingsGroup widget |
items |
List<SettingsTileData> |
required |
list of the SettingsTileData, that will be shown inside of the SettingsGroup widget |
| attribute name |
Datatype |
Default Value |
Description |
items |
List<SettingsGroupData> |
required |
list of the SettingsGroupData, that will be shown inside of the SettingsCard widget |
| attribute name |
Datatype |
Default Value |
Description |
key |
Key |
required |
key identifier, will be attached selectable item widget |
title |
String |
required |
text, shown as a title for an item in SettingsSelectable widget |
svgIconPath |
String |
required |
file path for the SVG icon, used for an item in SettingsSelectable widget |
isSelected |
bool |
required |
flag, that impacts the colorful (selected) state of the item widget in SettingsSelectable |
onPressed |
VoidCallback |
required |
callback, that will be called when the item clicked |
| attribute name |
Datatype |
Default Value |
Description |
data |
SettingsTileData |
required |
data model, that describes content for the widget |
key |
Key |
null |
key identifier |
| attribute name |
Datatype |
Default Value |
Description |
data |
SettingsGroupData |
required |
data model, that describes content for the widget |
key |
Key |
null |
key identifier |
| attribute name |
Datatype |
Default Value |
Description |
data |
SettingsCardData |
required |
data model, that describes content for the widget |
key |
Key |
null |
key identifier |
| attribute name |
Datatype |
Default Value |
Description |
items |
List<SettingsCardData> |
required |
list of selectable models, that will be shown inside the widget |
key |
Key |
null |
key identifier |
| attribute name |
Datatype |
Default Value |
Description |
title |
String |
required |
text, used as a title for the settings section |
items |
List<SettingsCardData> |
required |
list of card models, that belong to the current section |
subTitle |
String? |
null |
optional text, that describes section with some details |
crossAxisAlignment |
CrossAxisAlignment |
CrossAxisAlignment.start |
controls how the children should be placed along the cross axis |
topPadding |
double |
32 |
value, that applied to padding above title |
key |
Key |
null |
key identifier |