Feature: Add Duplicate Button and Functionality to home_view.dart
Description
The home_view.dart file currently lacks a duplicate button for alarms. This issue proposes the addition of a "Duplicate Alarm" button to the existing popup menu alongside the "Preview Alarm" and "Delete Alarm" buttons, along with implementing the necessary functionality to duplicate an alarm.
Steps to Implement:
Add Duplicate Button to PopupMenuButton:
Add a new PopupMenuItem for the duplicate button in the home_view.dart file. Implement duplicateAlarm Method in HomeController:
Ensure the duplicateAlarm method is implemented in HomeController to handle the duplication logic.
Screenshots
No response
This is a cool idea, however, we'll need to take care of a couple caveats with this. We need to ensure the alarms can be duplicated only within a single profile and that the data is consistent within the database. Shared alarms, ideally, should not be duplicated.
@MarkisDev @mahendra-918 is this still open coz I saw a PR attached and don't know if @mahendra-918 is still working on it to review and resolve the conflicts associated with his PR. Plz let me know of it.