Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Settings or automatic addition of functions/actions #101

Closed
SuperGNUS opened this issue Oct 5, 2020 · 3 comments
Closed

Settings or automatic addition of functions/actions #101

SuperGNUS opened this issue Oct 5, 2020 · 3 comments

Comments

@SuperGNUS
Copy link
Contributor

Change Proposal

Add the ability for widget to add Onclick(), OnHover(), OnRelease(), OnPress() as separate overridable class that can be passed as a parameter.

Module and Current Solution

Generation Service - No solution currently.

Benefits of the Change

If we generate a functions.dart class and can pass that as an optional parameter to the widget we can update the state for instance a TextStyle change when the mouse hovers over the widget. Improves scalability and Readability and helps with generator not overwriting your changes.

@SuperGNUS SuperGNUS added enhancement New feature or request refactor labels Oct 5, 2020
@SuperGNUS SuperGNUS changed the title Settings or automatic addition of functions Settings or automatic addition of functions/actions Oct 5, 2020
@SuperGNUS
Copy link
Contributor Author

Maybe this needs to be an egg to add gestures to widgets?

https://flutter.dev/docs/development/ui/advanced/gestures

@siliconivan
Copy link
Member

Yeah I'm not quite sure how to handle hotspots and interpret those as gestures rather than navigation. The only way is through eggs I think.

@siliconivan
Copy link
Member

This will likely be introduced as an egg in the State management release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

No branches or pull requests

3 participants