qu_form

Last updated:

0 purchases

qu_form Image
qu_form Images
Add to Cart

Description:

qu form

qu_form #
A form package project.
安装 #
dependencies:
qu_form

copied to clipboard
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();

copied to clipboard



方法
参数类型




void setFormSetting(formSetting)
List


void setFormValue(formValue)
Map<String, Map<String, dynamic>>


bool validate()



Map save()

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.