Комментарии:
anyone can explain why he is not using futureprovider for weather network call instead of all boiler stuff done with statenotifer ?
Ответитьthanks a lot the master of flutter.
ОтветитьThis tutorial being outdated helped me a lot to improve my skills. I learned so much fixing the old code issues to the new version.
ОтветитьPlease do more app on riverpod
ОтветитьThis package old so we can't reach state property like you . So can you upload new video about riverpod please :D
ОтветитьWhy are you providing FakeWeatherRepository to weatherNotifierProvider when WeatherNotifier can just import it inside its code?
ОтветитьCan you give an update on the StateNotifierStateProvider? I can't find it on the latest version. I
ОтветитьPlease continue this series
ОтветитьThank you so much ! This tutorial is awesome !!
ОтветитьHey brother, when I was implementing statenotifier today.
userStateNotifierProvider (i.e. statenotifier variable) is with 2 arguments instead of 1.
Then another problem is I can't watch by (userStateNotifierProvider.state) there is no scene of state.
I had to install the old version of riverpod to work!
Why don't you use equatable package?
ОтветитьCan you please make a video about GetX state management, what are your thoughts about it?
Ответить**state chenge name, in last flutter_riverpod update; i think
So... what i need to watch about weatherNotifierProvider... mmmmmmmmmmm
There is an exception on gitHub final project, now with flutter_riverpod: ^0.14.0+3:
+Exception has occurred.NoSuchMethodError (NoSuchMethodError: Class 'WeatherInitial' has no instance method 'getWeather'.
Receiver: Instance of 'WeatherInitial'
Tried calling: getWeather("london"))
Thanks for great tutorial....new version released with breaking changes....are there any chances of updated tuturial??
ОтветитьReally appreciate your work..Superb work.. Got what i needed.
ОтветитьHi, I was wondering .. do you do projects?
Ответитьfor anyone getting errors with the state notifier provider in the search page, make the changes below:
watch(weatherNotifierProvider.state) → watch(weatherNotifierProvider)
and
watch(weatherNotifierProvider) → watch(weatherNotifierProvider.notifier)
if anyone knows why this works, please tell me. I assume its just a syntax change but I have no idea 😅
Please help to figure out how to use Navigator 2.0 (web) + riverpod + state_notifier. There is no any good practice example on the internet :(
ОтветитьYour channel is SO helpful, I'm learning tons of good practices and ways to improve my horrible Statefulwidgets-state-management app. I already read DDD book so now I plan to apply these concepts and your DDD course to my app!
ОтветитьHello, in Cubit there is buildWhen to determine when to rebuild based on the change of a state property. In Riverpod we have that possibility?
I know that you can create a Provider that reacts to the change of a property of a StateNotifierProvider, and work with the new Provider. But it seems too twisted to be real.
From already thank you very much for your time.
If I have 2 textformfields and a button to submit, like a LoginPage, where I save the 2 textformdfield values to submit? in variables on the StatelessWidget or in the StateNotifier?
I have a more complex case, where I have 3 dropdowns (Country, State, and City) and if I change country the state and city dropdowns are reset, and I dont know the correct way to do this with this approach.
How to check net connectivity in riverpod?
ОтветитьWhy do you not have a BILLION subscribers yet? Quality content man. Thanks a lot.
ОтветитьHey when to use bloc and when to use riverpod.. any pointers would be helpful!.. BTW, only your channel has the best content for flutter keep it up
ОтветитьMat, do u think Riverpod should replace BLoc in DDD?
ОтветитьIt might be a stupid question but it looks like ChangeNotifier has less code and simpler to read. Is StateNotifier better? if so how? thank you very much
ОтветитьHi thank you a lot for this tutorial.
I used this tutorial to get Data from the FireStore. But I was wondering, why the Provider doesn't cache the results, like it did in the 40 minutes Riverpod tutorial. Do you have any recommendations on how I would be able to achieve, that?
Cause in my UseCase the user can change the state of the widget with a buttonclick and I would like to prevent getting the data from the Store for each click.
These proxy providers started being really annoying in my projects, should I swap for Riverpod?
ОтветитьHow would you modify the code if I want to get the weather of "some" location on the load itself? Since it is not recommended to use context.read() in build methods, I am really not sure how one would do that.
Ответитьthis is bloc like syntax
ОтветитьThanks a lot for this video. Now I can avoid all the messy BlocProviders. Also, I wanted to know how we can listen to multiple providers in riverpod ProviderListener. Is there something similar to Bloc's MultiBlocListener?
ОтветитьWhich video editor you used for creating video and for screen recorder?
ОтветитьGreat tutorials! Can you make a complete login system using phone auth?
ОтветитьHope you share some thoughts about GetX
ОтветитьWhat is better? Flutter bloc or riverpod?
Ответитьthanks alot for this
ОтветитьGreat explanation and examples, thanks a lot. i Know it is a silly question but which approach is better in your opinion, Riverpod with State notifier or Cubit. thanks
ОтветитьAmazing! Would really love to see how to add 'Dartz Either' into this implementation.
ОтветитьIs there any chance you will make an discord channel for your community? That would be awesome
Ответитьit's interesting how riverpod is very similar to cubit. With cubit we could use the package bloc_test which makes testing really easy. What about riverpod? how would you go about testing your code here?
Ответитьas a bloc lover, i want riverpod to become more robust state management package,
ОтветитьFor those using Equatable, can you confirm which aproach is the best one?
EXAMPLE 1:
Using EquatableMixin in each implementation...
class WeatherLoaded extends WeatherState with EquatableMixin {
final Weather weather;
const WeatherLoaded(this.weather);
@override
List<Object> get props => [weather];
}
EXAMPLE 2:
... Or extends Equatable in the abstract class in order to our implementations follow the contract?
abstract class WeatherState extends Equatable {
const WeatherState();
}
class WeatherLoaded extends WeatherState {
final Weather weather;
const WeatherLoaded(this.weather);
@override
List<Object> get props => [weather];
}
Great tutorial as always. Till date I use bloc and comfortable with that. But riverpod looks better. I just started a new project in flutter, it will be long run project. Can you please tell me, whether should I use riverpod or bloc is also fine. Your suggestion means a lot to me..🙏
ОтветитьThanks a million for the super clean explanation! awesome as always
Ответить