Initial commit
This commit is contained in:
14
lib/application/controllers/schedule_controller.dart
Normal file
14
lib/application/controllers/schedule_controller.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
import 'package:get/get.dart';
|
||||
import 'package:reverse_nn/application/services/schedule.dart';
|
||||
|
||||
class ScheduleController extends GetxController {
|
||||
Rx<Map<String, dynamic>?> currentSchedule = null.obs;
|
||||
|
||||
@override void onReady() {
|
||||
super.onReady();
|
||||
ScheduleService().getCurrentStatus().then((currentSchedule) {
|
||||
this.currentSchedule = currentSchedule.obs;
|
||||
update();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user