CCExtractor / beacon

Flutter application to share location with a group. (under development)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect Beacon Count Displayed in Group Card After Deletion and Creation of Beacons

vkprogrammer-001 opened this issue · comments

Describe the bug
The Beacon app is incorrectly displaying the total number of beacons in the group card. After deleting all beacons and creating new ones, the app is adding the count of the new beacons to the previous total, instead of updating the count to reflect the current number of beacons.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the 'Beacon' app.
  2. Create a certain number of beacons (e.g., 44).
  3. Delete a created beacon.
  4. Create a new set of beacons (e.g., 4).
  5. Check the total number of beacons displayed on the group card.

Expected behavior
The total number of beacons displayed on the group card should update to reflect the current number of beacons (e.g., 4), not the sum of the new and previously deleted beacons (e.g., 48).

Demonstration

Screen.Recording.2024-02-27.at.2.38.06.AM.mov

Environment

  • Device/emulator being used: Pixel 3a
  • OS (iOS/ Android); If Android then Android version: Android 13
  • Flutter version:3.16.9

Additional context
This issue seems to be related to how the app is updating and displaying the total count of beacons. It's possible that the deletion of beacons is not being properly accounted for in the total count.

Are you working on this issue? (Yes/No)
yes I love to work on this issue

Hello @vkprogrammer-001 , I've actually resolved this issue in my PR (#227 ). I appreciate your understanding, and feel free to find another one to work on.