Questions tagged [inherited-widget]
63 questions
0
votes
0 answers
How to call homepage.dart void function deep inside of flutter widget tree?
I don't understand scope model or inherited widget. But just calling a function deep inside a flutter widget tree I thought the inherited widget is best solution. I am asking this question in many places but seems either I am very new to the concept…

Nick
- 4,163
- 13
- 38
- 63
0
votes
1 answer
How to call a void function everywhere in my Flutter app using InheritedWidget
I have a main.dart and has a button in center. When user tabs the button it navigate into home.dart page. My home.dart page also has a button on center and when user tabs the button it navigate to details page. The app tree and code is shown below.…

Nick
- 4,163
- 13
- 38
- 63
0
votes
1 answer
Flutter - Scoped BloCs issue
I have a BLoC that can be accessed anywhere from any widget within the screen as long as I access it as an inherited widget. However, I want to show a dialog and use the same instance of my model in it. When I try to access my model as an inherited…

Elforama
- 512
- 1
- 4
- 16