#Google's Flutter Tutorials - Inherited Widgets (coderzheaven.com)

preview_player
Показать описание
Welcome to Flutter Tutorials by the Mobile Programmer,

Video shows how to use 'Inherited Widgets' in Flutter which helps in StateManagement.

Inherited Widgets allows you to handle state in your application.
It can be better alternative for Redux and BLOC pattern in Flutter.

Since Inherited Widgets are built into Flutter, you don't need any third party library in Flutter for State Management

#fluttergoogle #flutterinheritedwidgets #flutterdart

You can get the complete source code from below link

Рекомендации по теме
Комментарии
Автор

Hi Mobile Programmer, your flutter videos are the best, thanks. Can I ask how you handle package version conflicts which occur when I try to run your github code? Installing flutter gets Dart 2.1.0 installed as well, and that results in the packages that you use (e.g. http, rx_dart, build_runner etc) throwing exceptions that one or the other is not compatible with Dart? I can't see why this isn't a common problem for anyone using dart, yet I only find 1 or 2 google results (which I can't implement - setting alternative dart.sdkPaths in vscode user settings doesn't work for me). What is your experience for dealing with this problem?

lkd
Автор

So the goal of inherited widget is to set/get data between page/widgets? Like using singleton class in java/swift?

erickh
Автор

Thank you for your good video for flutter. i am novice and following this video i wrote codes in flutter. but i got the is depricated and use but i couldn't apply it to my code. Would you please let me know how to change it to
?? thanks for reading...


static StateContainerState of (BuildContext context) {
return
//return ==>> i dont know how to change :(
as InheritedStateContainer).data ;
}

osoles