Flutter Require In App Updates Using Riverpod

Опубликовано: 28 Февраль 2025
на канале: 1ManStartup
2,807
97

Require users of your flutter app to upgrade to the newest version. See how to prompt both mandatory and optional update alerts within a flutter app. Use Riverpod to manage the update status, and your own backend to remotely configure the app to prompt the user to update.

🔷 Riverpod Docs: https://riverpod.dev/docs
🔷 The Repository Pattern: https://codewithandrea.com/articles/f...
🔷 Flutter Foundations by Andrea: https://courses.codewithandrea.com/a/...

😻 Complete Code: https://github.com/davefaliskie/force...

PACKAGES
📦 package_info_plus: https://pub.dev/packages/package_info...
📦 flutter_riverpod: https://pub.dev/packages/flutter_rive...
📦 riverpod_annotation: https://pub.dev/packages/riverpod_ann...
📦 riverpod_generator: https://pub.dev/packages/riverpod_gen...
📦 build_runner: https://pub.dev/packages/build_runner
📦 url_launcher: https://pub.dev/packages/url_launcher

OTHER LINKS
🤑 GET 10% OFF iubenda Privacy Policy: https://iubenda.refr.cc/1manstartup
💬 Join the Discord: https://1manstartup.com/discord
😎 If you enjoy the videos, consider supporting the channel: https://1manstartup.com/donate

SECTIONS
00:00 - What We'll Build
00:58 - Prerequisite
02:49 - Getting Device Build Number
03:29 - Installing Riverpod
04:00 - Start Gode Generator
05:14 - Creating Future Provider
05:34 - Add ProviderScope
05:48 - Display DeviceBuild From AsyncValue
06:57 - Changing The Device Build Number
07:24 - Determine Min and Current Build Numbers
08:41 - Creating BuildVersion Class
09:05 - Function To Get BuildVersion From API
09:28 - Create UpdateStatus
09:59 - Function To Determine UpdateStatus
12:41 - Create DeviceUpdateStatusProvider
13:03 - Displaying Optional Update Alert
14:42 - Linking To The App Stores
15:58 - Mandatory Update Screen

#flutter #riverpod