ETIQA待办事项清单
ETIQA IT 移动应用开发人员评估
- 此应用的_状态管理_、_导航_和_依赖关系管理_依赖于GetX包
- 在添加新待办事项的表单上设置了一些简单的验证。
- 标题:最小长度为5
- 开始日期:必须小于等于结束日期
- 结束日期:必须大于等于开始日期
演示
项目结构
├── lib
│ ├── constants
│ ├── controllers
│ ├── models
│ └── screens
│ └── todo (consists of todo module screens)
│ ├── utilities (consists of common utility functions which can be used by all modules)
│ └── widgets
│ ├── common (consists of common widgets which can be used by all modules)
│ └── todo (consists of widgets to be used by todo module)
└── test
├── controllers (consists of unit test for controllers)
└── utilities (consists of unit test for utility functions)
单元测试
- 为了演示目的,在test目录中创建了一些简单的单元测试。
- 要执行所有单元测试,只需在终端中运行
flutter test。 - 要执行单个单元测试文件,请在终端中运行
flutter test test/{folder_name/file_name}。例如:flutter test test/controllers/manage_todo_controller_test.dart
持续集成
- 使用codemagic设置了一个简单的CI/CD。每次向此存储库推送或完成拉取请求时,都会触发新的构建。




