flutter - 我应该在 Flutter 中使用什么项目结构?
问题描述
我是 Flutter 的新手,我只想知道我应该考虑使用哪些项目结构。我习惯了 MVC,如果有类似的东西对我来说会更好。
解决方案
您将尝试功能驱动的开发。它几乎与 mvc 相似。
├── lib
| ├── Feature
│ │ ├── controller
│ │ │ └── post_controller.dart
| | |
| | └── models
| | | └── models.dart*
| | | └── post.dart
│ │ └── view
│ │ | ├── posts_page.dart
│ │ | └── posts_list.dart
| | | └── view.dart*
| | └── widgets
| | | └── bottom_loader.dart
| | | └── post_list_item.dart
| | | └── widgets.dart*
│ │ ├── posts.dart*
│ ├── app.dart
│ └── main.dart
├── pubspec.lock
├── pubspec.yaml
有关FDD的更多信息
推荐阅读
- r - Mac 10.14 上的 rJava 包安装
- apache-kafka - min.insync.replicas 与 unclean.leader.election
- scala - 如何在 Spark 数据集上应用可定制的聚合器?
- spring-boot - 如何修复在同一 tomcat 实例上运行的 Spring Boot UI 微服务中的“空白页”
- javascript - 使用谷歌标签管理器将网页浏览量发送到虚拟 URL 到谷歌分析
- c# - 如何以管理员身份运行 CMD,然后在 C# 中使用参数运行 exe
- asp.net-mvc - 如何将视图模型中列表中的一项绑定到控制器?
- r - 将数据框中的多列连接/粘贴在一起
- python - Gremlin Python - 如何从 valueMap 获取 ID
- python - 如何在python中模仿http请求