qu_form
A form package project.
安装
dependencies:
qu_form
API
QUForm
参数 | 类型 | 说明 |
---|---|---|
key | GlobalKey | 通过key操作form |
mainColor | Color? | 支持修改主题色, 默认主题色Color(0xff598FE8) |
// 使用
import 'package:qu_form/qu_form.dart';
QUForm(
key: _formKey,
// 支持修改主题色
mainColor: Color(0xff598FE8)
)
// 设置表单
_formKey.currentState.setFormSetting(formSetting);
// 设置表单内容
_formKey.currentState.setFormValue(formValue);
// 验证表单 返回bool
_formKey.currentState.validate();
// 获取表单内容
_formKey.currentState.save();
方法 | 参数类型 |
---|---|
void setFormSetting(formSetting) | List |
void setFormValue(formValue) | Map<String, Map<String, dynamic>> |
bool validate() | 无 |
Map save() | 无 |
Libraries
- main
- Model/QUDynamicFormSettingModel
- Model/QUFormComponentOptionsModel
- Model/QUFormConfigModel
- Model/QUFormGridListModel
- Model/QUFormItemOptionsModel
- Model/QUFormRulesModel
- Model/QUFormSelectOptionModel
- Model/QUFormSettingListModel
- Model/QUFormSettingModel
- qu_form
- QUForm/Components/QUButton
- QUForm/Components/QUCheckbox
- QUForm/Components/QUCheckboxItem
- QUForm/Components/QUCloseIcon
- QUForm/Components/QUDatePicker
- QUForm/Components/QUDateRangePicker
- QUForm/Components/QUDecoratedBorderBox
- QUForm/Components/QUDivider
- QUForm/Components/QUGrid
- QUForm/Components/QULabel
- QUForm/Components/QURadio
- QUForm/Components/QURadioItem
- QUForm/Components/QUSelect/QUMultipleSelect
- QUForm/Components/QUSelect/QUSelect
- QUForm/Components/QUSelect/QUSelectDialog
- QUForm/Components/QUSlider
- QUForm/Components/QUStarRating
- QUForm/Components/QUSubForm
- QUForm/Components/QUSwitch
- QUForm/Components/QUTab
- QUForm/Components/QUTabs
- QUForm/Components/QUTextInput
- QUForm/Components/QUTitle
- QUForm/QUFormCell/index
- QUForm/QUFormCell/QUFormField
- QUForm/QUFormContent/index
- QUForm/QUFormLayout/index
- QUForm/Utils
- Tool/QUFormTextColors
- Tool/QUFormValidatorReg