1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-25 15:49:43 +00:00
Files
samples/compass_app/app
Harsh Yadav 659acd0690 refactor: remove redundant notifyListeners in HomeViewModel deleteBooking (#2839)
Removes redundant notifyListeners() call from _deleteBooking().

The method is executed through Command, which already manages its own
notifyListeners lifecycle. This change ensures that HomeViewModel
only notifies listeners when its internal state (_bookings) changes,
avoiding unnecessary updates.

Fixes https://github.com/flutter/samples/issues/2746

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] recently, and have followed its
advice.
- [x] I signed the [CLA].
- [ ] I have added sample code updates to the [changelog].
- [ ] I updated/added relevant documentation (doc comments with `///`).

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[changelog]: ./CHANGELOG.md

Co-authored-by: Eric Windmill <eric@ericwindmill.com>
2026-06-19 14:43:13 -07:00
..
2024-09-28 08:49:27 +10:00
2024-09-28 08:49:27 +10:00
2024-09-28 08:49:27 +10:00
2025-02-12 18:08:01 -05:00
2025-02-12 18:08:01 -05:00
2024-09-28 08:49:27 +10:00
2024-09-28 08:49:27 +10:00
2024-12-11 14:34:29 -05:00
2024-09-28 08:49:27 +10:00
2024-09-28 08:49:27 +10:00