Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for getValueForScreenType method and similar ones #35

Open
warcayac opened this issue Jul 17, 2021 · 1 comment
Open

Suggestion for getValueForScreenType method and similar ones #35

warcayac opened this issue Jul 17, 2021 · 1 comment
Labels
question Further information is requested

Comments

@warcayac
Copy link

Current case:

getValueForScreenType<Widget>(context: context, desktop: myWidget, mobile: anotherWidget, tablet: anotherWidget, watch: anotherWidget);

It could be improved with a parameter assigning a default value for other screen types being null , example:

getValueForScreenType<Widget>(context: context, desktop: myWidget, byDefault: anotherWidget);
@FilledStacks
Copy link
Owner

FilledStacks commented Jul 19, 2021 via email

@Eimen2018 Eimen2018 added the question Further information is requested label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants