Closed mkaramuk closed 1 month ago
As far as I understand, June is aiming to 'feel' like vanilla Flutter, and in vanilla Flutter it's pretty normal to send the context as parameter around the code. So I'd say your approach is the expected one.
@CodingWill0, thank you for explaining it so well! You've perfectly captured the intention behind the design, and I really appreciate your clear explanation. It's been very helpful! 😊
I put the event handlers of the widgets (such as buttons) to inside the state class. Sometimes, such as when routing to another path, I need to access BuildContext. Currently I solved it by passing context to the handler function. Wouldn't it be better if June provides access to the build context by default?
My current approach is like this:
The widget: