Skip to content

Commit

Permalink
fixed bug with not being able to use menubar from stopwatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkisDev committed Jan 25, 2024
1 parent a6b3d57 commit a79181a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/app/modules/stopwatch/views/stopwatch_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:ultimate_alarm_clock/app/modules/stopwatch/controllers/stopwatch
import 'package:ultimate_alarm_clock/app/routes/app_pages.dart';
import '../../../utils/constants.dart';
import '../../../utils/utils.dart';
import '../controllers/stopwatch_controller.dart';

class StopwatchView extends GetView<StopwatchController> {
StopwatchView({Key? key}) : super(key: key);
Expand Down Expand Up @@ -39,6 +38,7 @@ class StopwatchView extends GetView<StopwatchController> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
FloatingActionButton(
heroTag: "start",
onPressed: controller.toggleTimer,
child: Obx(() => Icon(
controller.isTimerPaused.value
Expand All @@ -48,6 +48,7 @@ class StopwatchView extends GetView<StopwatchController> {
),
// Reset button
FloatingActionButton(
heroTag: "stop",
onPressed: controller.resetTime,
child: Icon(Icons.square_rounded),
),
Expand Down

0 comments on commit a79181a

Please sign in to comment.