qu_form 0.0.1
qu_form: ^0.0.1 copied to clipboard

A form package project.

qu_form #

A form package project.

安装 #

dependencies:
  qu_form

API #

QUForm

参数类型说明
keyGlobalKey通过key操作form
mainColorColor?支持修改主题色, 默认主题色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()
1
likes
85
pub points
0%
popularity

A form package project.

Homepage (insecure)

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, intl, json_annotation, just_debounce_it, provider

More

Packages that depend on qu_form