No video

Riverpod Tutorial 02 - Reading providers best practices

  Рет қаралды 11,418

Fun with Flutter

Fun with Flutter

3 жыл бұрын

Getting to grips with everything Riverpod has to offer is not easy. This series is here to help. In this video we explore all the different ways to read (access) a provider, plus when to use which.
--
Riverpod Tutorials and code:
github.com/funwithflutter/riv...
--
Check out my Flutter Animation and Performance course.
Discounted link: bit.ly/funwithcourse
Or use the promo code: FUN
for a discount at checkout: courses.funwith.app
--
Join me on the socials.
Twitter: / gordonphayes

Пікірлер: 31
@tadaspetra
@tadaspetra 3 жыл бұрын
He's BACK!!! Great video 😊
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
☺️
@wesleybarnes5376
@wesleybarnes5376 2 жыл бұрын
What I really like from what you showed is the ability to pass a reference (read: ref.read) and use it in other provider classes, changes everything for me, thanks! Good to hear some locals on the topic here too!
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
Awesome
@TheGaoNan
@TheGaoNan 3 жыл бұрын
Awsome as always, Thank you!
@joachimstokke2288
@joachimstokke2288 3 жыл бұрын
Thank you for taking the time to make these videos!
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
You're welcome 🙂
@TechWithDnes
@TechWithDnes 3 жыл бұрын
This is awesome. More on Riverpod... ))
@hasan_eke
@hasan_eke 2 жыл бұрын
You are great, thank you !
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
Happy to help!
@alfredschilken6154
@alfredschilken6154 3 жыл бұрын
Thank you very much for your tutorials and especially for the two Riverpod tutorials. How about a tutorial about unit testing apps that use Riverpod?
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Have a couple of videos lined up before getting to testing :). Next one is FutureProvider and AsyncValue. This will probs be my favourite one. And a must watch to learn some cool tricks
@awlad
@awlad 2 жыл бұрын
At 13:35 you mentioned not use ref.watch inside your provider but what if you want state to be updated based on for example firestore document stream? How would you deal with that? Thanks
@TheBadFred
@TheBadFred 3 жыл бұрын
That clarifies some problems that I had with riverpod. Thanks. The whole provider variety is more confusing than helpful, I think. A universal provider would be nice. The structure of the documentation is even more confusing.
@dimitristotsios2292
@dimitristotsios2292 3 жыл бұрын
You may be right for the documentation, but after watching this series it is obvious how you can use some of the providers.
@banglafactsteller6780
@banglafactsteller6780 3 жыл бұрын
plz upload video regular
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Will do!
@TheGaoNan
@TheGaoNan 3 жыл бұрын
Hey There, i would like to know how can i close a streamProvider? Lets say i have a stream that returns an int, and the stream is Stream.periodic with 1 second as duration. The int is incrementing by 1 from 0 - 5 and once reached 5 i wish to close the listening to the stream so the UI won't rebuild again and again. How can i implement it? this is something im having alot of trubles with lately and didn't found any good explanation suprisingly. Thank you!
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Hey there. Take a look at autoDispose on providers. You can dispose a provider with the ProviderReference (ref)
@TheGaoNan
@TheGaoNan 3 жыл бұрын
@@FunwithFlutter Hi, i've looked at it, can you provide a code example of what it should look like, i've really struggeled with it for a long time. Thank you once again!
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
@@TheGaoNan pub.dev/documentation/riverpod/latest/all/StreamProvider-class.html
@xeliani.7809
@xeliani.7809 3 жыл бұрын
Could you make a video about a secure login method that should stop most hackers?
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
I could! But security behind login is mostly on the backend! Some tips for login on a mobile app. 1) Don't store any credentials, 2) Be sure to use HTTPS (extra bonus do Certificate Pinning), 3) Only use biometrics to store a long lived session token, not a username and password. 4) be sure to use the correct text views (for example hide the password with *****).
@techzone2009
@techzone2009 3 жыл бұрын
why you stop the series of riverpord ? please continue ....
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
👀
@abdallahhussein5997
@abdallahhussein5997 2 жыл бұрын
When you type and explain can be much better understanding than to explain the written code already. That is my suggestion
@FunwithFlutter
@FunwithFlutter 2 жыл бұрын
Good suggestion!
@_birdy_birdy
@_birdy_birdy 3 жыл бұрын
The music, in the beginning, was kinda annoying it was hard to understand what you were saying.
@FunwithFlutter
@FunwithFlutter 3 жыл бұрын
Oh no, sorry. 😨
Riverpod Tutorial 03 - FutureProvider, AsyncValue and Error Handling
22:51
Riverpod Tutorial 01 - Understanding the different notifiers
20:10
Fun with Flutter
Рет қаралды 30 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 89 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 89 МЛН
Learn Flutter Hooks and Maximize Your Code Reuse
10:36
Robert Brunhage
Рет қаралды 61 М.
Exploring Riverpod and building a Todo App | Flutter
55:57
Fun with Flutter
Рет қаралды 24 М.
Riverpod Simplified | Easy State Management
14:17
Tadas Petra
Рет қаралды 43 М.
Improve your Flutter Apps performance with a RepaintBoundary
31:31
Fun with Flutter
Рет қаралды 14 М.
Moving from setState to Riverpod in Flutter Part 1
36:00
The Flutter Factory
Рет қаралды 18 М.
Flutter State Management with Riverpod: The Essential Guide
28:38
Andrea Bizzotto
Рет қаралды 26 М.
Flutter UI Tip 3: Popup Card
12:00
Fun with Flutter
Рет қаралды 73 М.
State Management | FlutterFlow University
16:09
FlutterFlow
Рет қаралды 42 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 89 МЛН