2025-04-12 18:07:36 +03:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:get/get.dart';
|
2025-04-19 16:50:36 +03:30
|
|
|
import 'package:supervision/presentation/actions/view.dart';
|
2025-04-12 18:07:36 +03:30
|
|
|
import 'package:supervision/presentation/filter/view.dart';
|
|
|
|
|
|
|
|
|
|
class RootLogic extends GetxController {
|
|
|
|
|
RxInt currentIndex = 0.obs;
|
|
|
|
|
List<Widget> pages = [
|
|
|
|
|
SupervisionFilterPage(),
|
2025-04-19 16:50:36 +03:30
|
|
|
ActionsPage(),
|
2025-04-12 18:07:36 +03:30
|
|
|
Placeholder(color: Colors.amber),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void onReady() {
|
|
|
|
|
// TODO: implement onReady
|
|
|
|
|
super.onReady();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void changePage(int index) {
|
|
|
|
|
currentIndex.value = index;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void onClose() {
|
|
|
|
|
// TODO: implement onClose
|
|
|
|
|
super.onClose();
|
|
|
|
|
}
|
|
|
|
|
}
|