官方示例
https://flutter.cn/docs/cookbook/forms/validation
另外官方的源代码中的表单做的也很好,在登录和注册时可以参考,包括了日期,复选框,单选框,滑动选择等。
https://github.com/davigmacode/flutter_smart_select
SmartSelect allows you to easily convert your usual form select or dropdown into dynamic page,
popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
本文介绍了一个名为SmartSelect的Flutter组件,它能够将普通的表单选择器或下拉菜单转换为动态页面、弹出对话框或滑动底部面板,并支持多种输入类型如单选、多选等。
4125

被折叠的 条评论
为什么被折叠?



