From 9e416361e0a008be1373fb8332539a5c1e203491 Mon Sep 17 00:00:00 2001 From: Tushar <144731286+tushar11kh@users.noreply.github.com> Date: Sun, 25 Feb 2024 15:25:11 +0530 Subject: [PATCH] fixed issue ##435 (#438) --- lib/app/modules/stopwatch/controllers/stopwatch_controller.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app/modules/stopwatch/controllers/stopwatch_controller.dart b/lib/app/modules/stopwatch/controllers/stopwatch_controller.dart index 8b1e37f5..7e448bab 100644 --- a/lib/app/modules/stopwatch/controllers/stopwatch_controller.dart +++ b/lib/app/modules/stopwatch/controllers/stopwatch_controller.dart @@ -40,7 +40,7 @@ class StopwatchController extends GetxController { void _updateResult() { _result.value = - '${_stopwatch.elapsed.inMinutes.toString().padLeft(2, '0')}:${(_stopwatch.elapsed.inSeconds % 60).toString().padLeft(2, '0')}:${(_stopwatch.elapsed.inMilliseconds % 100).toString().padLeft(2, '0')}'; + '${_stopwatch.elapsed.inMinutes.toString().padLeft(2, '0')}:${(_stopwatch.elapsed.inSeconds % 60).toString().padLeft(2, '0')}:${(_stopwatch.elapsed.inMilliseconds % 1000 ~/ 10).toString().padLeft(2, '0')}'; } }