@@ -124,14 +124,19 @@ class TimerControlsWidget extends StatelessWidget {
124124 onTap: vm.resetTimer,
125125 ),
126126 const SizedBox (width: 30 ),
127+
128+ // MAIN BUTTON: CHANGES TO RED WHEN RINGING TO STOP ALARM
127129 _buildControlBtn (
128- icon: vm.isRunning ? Icons .pause_rounded : Icons .play_arrow_rounded,
129- bgColor: AppColors .primaryBlue,
130+ icon: vm.isRinging
131+ ? Icons .notifications_off_rounded // Muted bell icon
132+ : (vm.isRunning ? Icons .pause_rounded : Icons .play_arrow_rounded),
133+ bgColor: vm.isRinging ? Colors .redAccent : AppColors .primaryBlue,
130134 iconColor: Colors .white,
131135 size: 85 ,
132136 hasShadow: true ,
133- onTap: vm.toggleTimer,
137+ onTap: vm.toggleTimer, // Stops alarm if ringing, otherwise toggles timer
134138 ),
139+
135140 const SizedBox (width: 30 ),
136141 _buildControlBtn (
137142 icon: Icons .skip_next_rounded,
@@ -159,7 +164,7 @@ class TimerControlsWidget extends StatelessWidget {
159164 color: bgColor,
160165 shape: BoxShape .circle,
161166 boxShadow: [
162- if (hasShadow) BoxShadow (color: AppColors .primaryBlue .withOpacity (0.4 ), blurRadius: 20 , offset: const Offset (0 , 10 )),
167+ if (hasShadow) BoxShadow (color: bgColor .withOpacity (0.4 ), blurRadius: 20 , offset: const Offset (0 , 10 )),
163168 if (! hasShadow) BoxShadow (color: Colors .black.withOpacity (0.03 ), blurRadius: 10 , offset: const Offset (0 , 5 )),
164169 ],
165170 ),
@@ -222,7 +227,7 @@ class QuickNoteCard extends StatelessWidget {
222227 style: const TextStyle (fontSize: 14 , color: Color (0xFF2C3E50 )),
223228 ),
224229
225- // SHOW IMAGE PREVIEW IF ANY
230+ // SHOW IMAGE PREVIEW IF SELECTED
226231 if (vm.selectedImagePath != null ) ...[
227232 const SizedBox (height: 10 ),
228233 Stack (
@@ -263,7 +268,7 @@ class QuickNoteCard extends StatelessWidget {
263268 ),
264269 ElevatedButton (
265270 onPressed: () {
266- FocusScope .of (context).unfocus ();
271+ FocusScope .of (context).unfocus (); // Dismiss keyboard
267272 context.read <FocusViewModel >().addNote ();
268273 },
269274 style: ElevatedButton .styleFrom (
@@ -297,7 +302,7 @@ class QuickNoteCard extends StatelessWidget {
297302 child: Row (
298303 crossAxisAlignment: CrossAxisAlignment .start,
299304 children: [
300- // CLICK TO REMOVE
305+ // CLICK TO REMOVE BUTTON
301306 GestureDetector (
302307 onTap: () => vm.removeNote (note.id),
303308 child: Container (
@@ -315,7 +320,7 @@ class QuickNoteCard extends StatelessWidget {
315320 if (note.content.isNotEmpty)
316321 Text (note.content, style: const TextStyle (fontSize: 14 , color: Color (0xFF2C3E50 ), height: 1.4 )),
317322
318- // DISPLAY IMAGE IN NOTE
323+ // DISPLAY ATTACHED IMAGE IN NOTE
319324 if (note.imagePath != null ) ...[
320325 const SizedBox (height: 8 ),
321326 ClipRRect (
@@ -353,4 +358,4 @@ class QuickNoteCard extends StatelessWidget {
353358 ),
354359 );
355360 }
356- }
361+ }
0 commit comments