Add validation to text fields
还没有人认领这个 Issue。
评估
调研方向
从笔记录入表单开始,检查当前如何使用 Form 和 FormTextField。添加验证,使保存时 Title 字段必须有内容,而 Description 仍为可选;完成标准是无法保存标题为空的笔记,并且可以保存只有标题的笔记。
由索引模型根据 Issue 内容生成。
描述
Right now, the user can save a note without entering any information in the Title and Description text fields. The user should only be able to save a note if there is some content in the Title text field (Description is supposed to be optional).
This can be done using Form and FormTextField with validator property.
- 主要语言
- Dart
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
masteradit/Note-Keeper-App 的其他 Issue
-
Update README.md未关闭
难度 2/5 1-3 小时 新手友好度 35/100
查看 masteradit/Note-Keeper-App 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
area: templates bug
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
vicajilau/flutter_file_picker#2279 ·
维护者通常 1 天内回复