Skip to content

Commit

Permalink
add/update controller argument fix for AlarmModel (#485)
Browse files Browse the repository at this point in the history
* add/update controller argument fix for AlarmModel

* Delete pubspec.lock

---------

Co-authored-by: Rijuth Menon <[email protected]>
  • Loading branch information
AryanSarafDev and MarkisDev authored Mar 10, 2024
1 parent a9e4230 commit a79ff4d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1,468 deletions.
2 changes: 1 addition & 1 deletion lib/app/modules/alarmRing/views/alarm_ring_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AlarmControlView extends GetView<AlarmControlController> {
Get.offNamed(
'/bottom-navigation-bar',
arguments: controller.currentlyRingingAlarm
.value.showMotivationalQuote,
.value,
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/app/modules/home/controllers/home_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class HomeController extends GetxController {
});

if (Get.arguments != null) {
bool showMotivationalQuote = Get.arguments;
bool showMotivationalQuote = Get.arguments.showMotivationalQuote;

if (showMotivationalQuote) {
Quote quote = Utils.getRandomQuote();
Expand Down
Loading

0 comments on commit a79ff4d

Please sign in to comment.