carp-dk / carp-dk/carp_study_app
Improvements to the Study Status card
- Dominant language
- Dart
- Stars
- 10
- Forks
- 5
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 14
Description
In the cases
* waiting
* error
the study status card could be improved. When waiting there is an empty containier, which makes the ui jump up and down and when an error an ugly text string is shown. This can be improved - the code is here
```
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return Container();
} else if (snapshot.hasError) {
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 22),
child: Text('Error: ${snapshot.error}'),
); // Show an error message if t
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.