ultimate_alarm_clock icon indicating copy to clipboard operation
ultimate_alarm_clock copied to clipboard

Feature: Add Duplicate Button and Functionality to home_view.dart

Open mahendra-918 opened this issue 1 year ago • 2 comments

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

mahendra-918 avatar Jan 28 '25 09:01 mahendra-918

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 avatar Feb 05 '25 16:02 MarkisDev

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

VatsalJain2004 avatar Mar 27 '25 05:03 VatsalJain2004