FilledStacks / FilledStacks/responsive_builder
Suggestion for getValueForScreenType method and similar ones
Open
question
- Dominant language
- Dart
- Stars
- 524
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Current case:
```
getValueForScreenType(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(context: context, desktop: myWidget, byDefault: anotherWidget);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.