artemis_ui_kit

Last updated:

0 purchases

artemis_ui_kit Image
artemis_ui_kit Images
Add to Cart

Description:

artemis ui kit

artemis_ui_kit #
Some Widgets base on Artemis StyleGuide
Getting Started #
Basic widgets based on Artemis StyleGuide
Icon Usage Help #
in order to use artemis Icon set add the following lines in pubspec.yaml font section
- family: ArtemisIcons
fonts:
- asset: packages/artemis_ui_kit/fonts/ArtemisIcons.ttf
copied to clipboard
Example #
some widgets example:
DropDown
ArtemisDropDown<String>(
items: [
"1",
"2",
"3",
],
label: "Test",
itemAsString: (item) => item,
onChanged: (s){
print(s);
},
selectedItem: selectedStr,
)
copied to clipboard
ExpansionTile
ArtemisExpansionTile(
title: Text("Test"),
children: [
Text("1"),
Text("1"),
Text("1"),
Text("1"),
Text("1"),
],
),
copied to clipboard
RadioButton
ArtemisRadioButton(
label: "Test",
value: radioButtonValue,
labelWidget: Icon(Icons.share),
onChanged: (v) {
setState(() {
radioButtonValue = v;
});
},
)
copied to clipboard
CheckBox
ArtemisCheckBox(
label: "Test",
value: checkBoxButtonValue,
checkBoxAtEnd: true,
// labelWidget: Icon(Icons.share),
onChanged: (v) {
setState(() {
checkBoxButtonValue = v;
});
},
)
copied to clipboard
ButtonPanel
ArtemisButtonPanel(
centerAction: () {
print(panelValue);
},
rightAction: () {
setState(() {
panelValue++;
});
},
leftAction: () {
setState(() {
panelValue--;
});
},
rightWidget: Icon(ArtemisIcons.right_arrow),
centerWidget: Text("$panelValue"),
leftWidget: Icon(ArtemisIcons.left),
),
copied to clipboard
CardField
ArtemisCardField(
title: 'Test',
value: '123',
)
copied to clipboard
Switch
ArtemisSwitch(
value: switchButtonValue,
switchAtEnd: true,
label: 'Test',
onChanged: (value) {
setState(() {
switchButtonValue = value;
});
},
)
copied to clipboard
Button
ArtemisButton(
label: 'Test',
onPressed: () {},
bordered: true,
radius: 20,
)
copied to clipboard
TimeField
ArtemisTimeField(
onChange: (){
showDialog(context: context, builder: (c)=>ArtemisTimePickerDialog()).then((value){
if(value!=null){
setState(() {
time=value;
});
}
});
},
label: 'Test',
value: DateFormat("hh:mm").format(time),
)
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.