Tag

Riverpod

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Mar 12, 2025 · Mobile Development

Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter

Riverpod annotations streamline Flutter state management by using build_runner to generate provider code, where @riverpod on functions creates Provider, FutureProvider, or StreamProvider based on return type, on classes creates NotifierProvider, supports Family‑pattern parameters, keepAlive, dependencies, and produces helper classes for auto‑dispose and scoped overrides.

AnnotationsFamilyFlutter
0 likes · 13 min read
Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter
Sohu Tech Products
Sohu Tech Products
Jan 15, 2025 · Mobile Development

Separating Business Logic from UI in Flutter: AsyncNotifier‑Based Authentication Flow

The article shows how to keep Flutter UI code clean by moving authentication logic into an AsyncNotifier controller that interacts with an AuthRepository, letting the SignInScreen watch AsyncValue states for loading, success, and errors, thus improving testability and maintainability.

AsyncNotifierFlutterRiverpod
0 likes · 11 min read
Separating Business Logic from UI in Flutter: AsyncNotifier‑Based Authentication Flow
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 2, 2024 · Mobile Development

Comprehensive Guide to Riverpod: From Basics to Advanced Usage in Flutter

This article provides an in‑depth tutorial on Riverpod for Flutter, covering its differences from Provider, step‑by‑step setup, core concepts, various Provider types, state management techniques, async handling, code generation, and advanced patterns such as side effects, request merging, and lifecycle control.

DartFlutterProvider
0 likes · 25 min read
Comprehensive Guide to Riverpod: From Basics to Advanced Usage in Flutter
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 28, 2024 · Mobile Development

Implementing MVVM with Riverpod in Flutter: A ViewModel‑Based State Management Guide

This article explains how to introduce the ViewModel concept into a Flutter project and use Riverpod 2.0’s NotifierProvider to achieve a clean separation of UI and business logic, illustrated with a complete login‑page example and reusable code snippets.

DartFlutterMVVM
0 likes · 12 min read
Implementing MVVM with Riverpod in Flutter: A ViewModel‑Based State Management Guide
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 6, 2024 · Mobile Development

Flutter‑Android Hybrid Integration: Mixed Modules, Engine Management, Architecture, Debugging and Packaging

This comprehensive guide explains how to integrate Flutter into an existing Android app using source and AAR approaches, manage multiple Flutter engines with FlutterEngineGroup, choose hybrid stack solutions such as flutter_boost and flutter_thrio, apply MVVM architecture with Riverpod, and handle debugging and APK packaging.

AARAndroidEngine Management
0 likes · 34 min read
Flutter‑Android Hybrid Integration: Mixed Modules, Engine Management, Architecture, Debugging and Packaging
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 14, 2024 · Mobile Development

Implementing ViewModel with Riverpod in Flutter for UI‑Logic Separation

This article introduces the ViewModel concept and demonstrates how to use Riverpod 2.0's NotifierProvider in Flutter to separate UI from business logic, providing step‑by‑step code examples, including model, ViewModel, view, and a complete login page implementation.

FlutterMVVMRiverpod
0 likes · 13 min read
Implementing ViewModel with Riverpod in Flutter for UI‑Logic Separation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 12, 2024 · Mobile Development

Encapsulating Network Requests in Flutter with Dio and Riverpod

This article demonstrates how to encapsulate Flutter network requests using Dio, create a reusable ApiClient with singleton pattern, integrate Riverpod for automatic UI updates, handle errors with custom exceptions, and organize code with repositories and providers for clean architecture.

API clientDioFlutter
0 likes · 33 min read
Encapsulating Network Requests in Flutter with Dio and Riverpod
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 10, 2022 · Mobile Development

Choosing a Flutter State Management Framework: Provider, Riverpod, BLoC, GetX and Others

This article guides beginners through the crowded landscape of Flutter state‑management solutions, comparing Provider, Riverpod, BLoC, flutter_redux, fish_redux, GetX and others, while showing that integration size impact is negligible and emphasizing that the final choice should match project needs and maintenance considerations.

BLoCFlutterGetX
0 likes · 14 min read
Choosing a Flutter State Management Framework: Provider, Riverpod, BLoC, GetX and Others