Custom form
Custom form
Different types of custom forms to get input from user are available in admin panel by flutter code:
Switch buttons in costom colors
Check boxes in custom colors:
these are Checkbox in custom colors and are used as:
Checkbox(
activeColor: StructureBuilder.styles!.primaryColor,
//The color to use when this checkbox is checked.
checkColor: StructureBuilder.styles!.primaryLightColor,
// The color to use for the check icon when this checkbox is checked.
value: isChecked,
onChanged: (value) {
setState(() {
_value = value!;
});
}),
// where
bool _value=true;
Sliders in custom colors:
these are slider inputs in custom colors located in:
es_flutter_component/lib/components/es_form/es_slider/es_slider.dart
and is used as:
EsSlider(
activeColor:
StructureBuilder.styles!.dangerColor().dangerRegular,
thumbColor:
StructureBuilder.styles!.dangerColor().dangerRegular,
),
Switch buttons in custom colors:
these are Switch inputs in custom colors and are used as:
Transform.scale(
scale: 0.7,
child: CupertinoSwitch(
activeColor: StructureBuilder.styles!
.successColor()
.successRegular,
onChanged: (bool value) {
setState(() {
_value = value;
});
},
value: _value,
),
// where
bool _value=true;
Disabled items :
these are disabled items in this panel by flutter code. Some of the components are located in:
es_flutter_component/lib/components/es_form .