Skip to content

Commit 288bd4c

Browse files
authored
Add fix: Timer Duration is now updated with Input Field (#727)
* Add fix: Timer Duration is now updated with Input Field * Updated input_time_controller.dart by removing comments * Updated timer_view.dart by removing redundant comments
1 parent f8fabb9 commit 288bd4c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/app/modules/addOrUpdateAlarm/controllers/input_time_controller.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class InputTimeController extends GetxController {
3434
void onInit() {
3535
isTimePicker.value = true;
3636
isTimePickerTimer.value = true;
37+
inputHoursControllerTimer.text = '0';
38+
inputMinutesControllerTimer.text = '1';
39+
inputSecondsControllerTimer.text = '0';
3740
super.onInit();
3841
}
3942

lib/app/modules/timer/views/timer_view.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ class TimerView extends GetView<TimerController> {
784784
controller.hours.value = 0;
785785
controller.minutes.value = 1;
786786
controller.seconds.value = 0;
787+
inputTimeController.setTextFieldTimerTime();
787788

788789
Get.back();
789790
},

0 commit comments

Comments
 (0)