• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Pass parameter to a reusable widget

Resolved: Pass parameter to a reusable widget

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I’m trying to use a reusable widget, and I would like to send it a parameter from my widget call that would be different for each reuse
I would like to use it here instead of “0.jpg” something like $id.jpg The objective is to get a different photo depending on the widget
Thank you so much!

Answer:

I would post a comment but my reputation is not high enough..
It looks like you just need a id var in your stateful widget.
Then you can do
Let me know if I did not understand your question correctly!

If you have better answer, please add a comment about this, thank you!

dart flutter
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Getting ‘502 Bad Gateway’ while deploying Springboot app in EKS

24/03/2023

Resolved: Why is NGINX’s $request_uri empty?

24/03/2023

Resolved: How to convert Java bytecode to Webassembly using CheerpJ compiler

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.