FilledStacks / FilledStacks/responsive_builder

Suggestion for getValueForScreenType method and similar ones

Open
#35 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.