?FluCommerce – 一个Flutter电商应用 – UI?
如果您喜欢更多 Flutter 相关内容,请在仓库中点⭐!
给您看一些截图?
Flutter 入门?
由 Manish Dayma 制作,饱含爱意❤️
这是Flutter应用程序的文档。它包含了您入门和修改您的应用程序所需的所有信息。
目录
系统要求
Dart SDK 版本 2.17.0 或更高版本。Flutter SDK 版本 3.0.0 或更高版本。
项目结构
.
├── android - contains files and folders required for running the application on an Android operating system.
├── assets - contains all images and fonts of your application.
├── ios - contains files required by the application to run the dart code on iOS platforms.
├── lib - Most important folder in the project, used to write most of the Dart code.
├── main.dart - starting point of the application
├── core
│ ├── app_export.dart - contains commonly used file imports
│ ├── constants - contains all constants classes
│ ├── errors - contains error handling classes
│ ├── network - contains network related classes
│ └── utils - contains common files and utilities of project
├── data
│ ├── apiClient - contains API calling methods
│ ├── models - contains request/response models
│ └── repository - network repository
├── localization - contains localization classes
├── presentation - contains all screens and screen controllers
│ └── screens - contains all screens
├── routes - contains all the routes of application
└── theme - contains app theme and decoration classes
└── widgets - contains all custom widget classes
您如何格式化代码?
- 如果您的代码未格式化,请在终端中运行以下命令来格式化代码
dart format .
如何提高代码的可读性?
解决应用程序中显示的错误和警告。
使用的库和工具
- get – 状态管理 https://pub.dev/packages/get
- connectivity_plus – 用于网络连接状态 https://pub.dev/packages/connectivity_plus
- shared_preferences – 为简单数据提供持久化存储 https://pub.dev/packages/shared_preferences
- cached_network_image – 用于将互联网图像存储到缓存中 https://pub.dev/packages/cached_network_image

