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

Breed Selector not returning latest breed list #1

Open
nikhil0304hande opened this issue Jun 21, 2024 · 2 comments
Open

Breed Selector not returning latest breed list #1

nikhil0304hande opened this issue Jun 21, 2024 · 2 comments

Comments

@nikhil0304hande
Copy link

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;
}

@thecodexhub
Copy link
Owner

Thanks for opening the issue.

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. 🎉

@nikhil0304hande
Copy link
Author

nikhil0304hande commented Jun 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants