Master Clean Architecture in Flutter for beginners

th_gHhH1faCmKwMl4RfM6aHEtZFtQsOi77v

Clean Architecture 是模块化系统的蓝图,它严格遵循称为关注点分离的设计原则。更具体地说,这种架构风格侧重于将软件分层,以简化系统本身的开发和维护。当层分离良好时,可以重复使用各个部分,也可以独立开发和更新。

在本课程中,您将使用 Clean Architecture 和 Bloc 和 Cubit 状态管理从头开始制作整个应用程序。您还将使用两个不同的包 Http 和 Dio 合并 REST API。您将了解依赖注入以及如何使用 get_it 包使其变得简单。您将了解真实世界应用程序的文件结构以及如何使您的代码可扩展和模块化。

干净的架构将 Flutter 项目分为 3 个主要层,即

表示层

表示层由用于从存储库访问应用程序数据的代码组成。此外,还有用于状态管理的代码,例如提供程序、BLoC 等。

领域层

领域层是干净架构中最深的。该层包含业务逻辑应用程序的代码,例如实体和用例。

数据层

数据层位于最外层。该层由数据源代码组成,例如使用 Rest API、访问本地数据库、Firebase 或其他源。此外,在这一层上,通常有构建 UI(小部件)的平台代码。

Build application from scratch using Clean Architecture and Bloc and Cubit

Published 08/2022
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 11 lectures (2h 50m) | Size: 1.87 GB

What you’ll learn

Clean Architecture Design Pattern
Cubit State Management
Bloc State Management
Implement Rest API
Dependency Injection
Data Layer
Presentation Layer
Domain Layer

Requirements

Dart and Flutter Knowlege is a MUST
Install Android Studio or Visual Studio and have Flutter SDK ready

Description

Clean Architecture is the blueprint for a modular system, which strictly follows the design principle called separation of concerns. More specifically, this style of architecture focuses on dividing software into layers, to simplify the development and maintenance of the system itself. When layers are well-separated, individual pieces can be reused, as well as developed and updated independently.

In this course you will make an entire application from scratch using Clean Architecture and Bloc and Cubit state management. You will also incorporate REST API using two different packages Http and Dio. And you will learn about Dependency Injection and how to make it simple using get_it package. You will learn about file structure of a real world application and how to make your code scalable and modular.

The clean architecture will divide the Flutter project into 3 main layers, namely

Presentation Layer

The presentation layer consists of the code to access the data of the app from a repository. Also, there is the code for state management such as providers, BLoC, and so on.

Domain Layer

The domain layer is the deepest in the clean architecture. This layer contains the code for business logic applications such as entities and use cases.

Data layer

The data layer is located at the outermost layer. This layer consists of data source code such as consume Rest API, access to the local database, Firebase, or other sources. Also, on this layer, there is usually the platform code that builds up the UI (widgets).

Who this course is for
Developer who already has a knowledge in dart and flutter
Beginner and Junior developer who wants to master flutter
Developer who needs to create a structured project with clean architecture

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/36350.html

赞 (0)
steven的头像steven
上一篇 2022年8月21日
下一篇 2022年8月21日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部