You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The New dog record form on opening does not show latest breeds to select from. This is due to Line 47 in "dog_form_page.dart" file.
Following is the code which I could modify and get it working:
It's been a while, to be honest, so I'll look into the code in some time. Meanwhile, if you think there's an issue, and you have a solution, please feel free to raise a PR. 🎉
The New dog record form on opening does not show latest breeds to select from. This is due to Line 47 in "dog_form_page.dart" file.
Following is the code which I could modify and get it working:
Future<List> _getBreeds() async {
_breeds.clear();
final breeds = await _databaseService.breeds();
_breeds.addAll(breeds);
if (widget.dog != null) {
_selectedBreed = _breeds.indexWhere((e) => e.id == widget.dog!.breedId);
}
return _breeds;
}
The text was updated successfully, but these errors were encountered: