Flutter Fullstack Bootcamp (Part 4): BLoC State Management & Clean Architecture

preview_player
Показать описание
Welcome to Part 4 of the Flutter Ultimate Bootcamp!

In this deep-dive session, we architect a robust authentication flow from the ground up using the BLoC pattern and Clean Architecture principles. You will move beyond theory and implement a production-ready system, handling everything from state and event modeling to dependency injection and custom UI design.

We'll build a generic caching layer to manage data efficiently, set up our entire application's dependencies using get_it for a clean and maintainable codebase, and tackle common real-world challenges like late initialization errors and navigation logic.

By the end of this video, you will have a solid understanding of how to structure a complex Flutter application, manage state with BLoC, and build beautiful, custom UI components like an animated wave background with CustomPainter.

Key Topics Covered:

- BLoC Deep Dive: Mastering Events, States, and Blocs for robust state management.
- Clean Architecture: Structuring your app with Use Cases, Repositories, and Data Sources.
- Dependency Injection: Configuring get_it to manage all application dependencies.
- Generic Caching: Building a reusable cache manager for performance.
- Custom UI & Animations: Designing and implementing a dynamic wave background with CustomPainter and Bézier curves.
- Advanced Routing & Navigation: Integrating new screens into your app's router.

0:00 - Introduction & Part 4 Overview
04:47 - Core Concept: BLoC, States & Events Explained
10:27 - Architecting Auth States
17:30 - Defining Authentication Events
31:55 - Implementing the Authentication BLoC
1:21:04 - Building a Generic Cache Manager
1:35:30 - Integrating the Cache Manager into the Auth BLoC
1:38:15 - Implementing Remaining BLoC Handlers
2:33:40 - Introduction to Dependency Injection with get_it
2:34:00 - Explaining get_it and its Registration Methods
2:45:24 - DI Setup: Registering Auth Feature Dependencies (Use Cases, BLoC, Repos)
3:02:30 - DI Setup: Registering Core Services (Dio, Secure Storage, etc.)
3:15:20 - Getting Started: The Register Screen
3:17:48 - Refactoring Onboarding & App Routing
3:29:11 - Live Test: Running the Application
3:30:40 - Building the Register Screen UI
4:05:15 - Custom UI: Animated Wave Background with CustomPainter
4:32:03 - Demo: The Animated Wave Background
4:38:02 - Debugging: Solving a Late Initialization Error
4:38:32 - Debugging: Fixing a Stuck Splash Screen
4:41:37 - Register Screen: Progress Update & Demo
4:43:46 - Building a Reusable Custom Auth Text Field
5:17:30 - Finalizing the Register Screen Layout
5:23:20 - Next Steps: Building the Country Code Picker (to be continued to part 5)
Рекомендации по теме
join shbcf.ru