使用 Cubit 的简单旅行应用程序
? 使用 Flutter 框架构建的简单旅行应用程序
特点
- 列出地点
- 详细地点
? iOS 示例
? Android 示例
模块化结构 ?
# Root Project
.
├── lib # Name of module (default from Flutter)
├── cubit # Cubit state, Logics
├── misc # Style (color static)
├── model # Data Model
├── pages # UI pages
| └── navpages # Navigation Bar
├── services # API Services
└── widgets # Custom widget which can be used repeatedly.
使用 ? 构建
- BLoC 模式 (Cubit) – 用于将业务逻辑与 UI 分离的业务逻辑组件。
- Equatable – 在
Dart中比较对象通常需要重写==运算符。 - http – 一个可组合的、跨平台的、基于 Future 的 HTTP 请求 API。
- 动画 – 一个用于简化“显示”动画实现的 Flutter 包。
作者
- Raden Saleh
别忘了关注我,Fork并给我一个⭐
许可证
MIT License
Copyright (c) 2022 Raden Saleh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.





