Flutter Require In App Updates Using Riverpod

Flutter Require In App Updates Using Riverpod

1ManStartup

5 месяцев назад

1,782 Просмотров

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/flutter-repository-pattern/
🔷 Flutter Foundations by Andrea: https://courses.codewithandrea.com/a/aff_7d0b5dcb/external?affcode=513495_q57mxrkz

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

PACKAGES
📦 package_info_plus: https://pub.dev/packages/package_info_plus
📦 flutter_riverpod: https://pub.dev/packages/flutter_riverpod
📦 riverpod_annotation: https://pub.dev/packages/riverpod_annotation
📦 riverpod_generator: https://pub.dev/packages/riverpod_generator
📦 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
Ссылки и html тэги не поддерживаются


Комментарии: