import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:supervision/presentation/filter/view.dart'; class RootLogic extends GetxController { RxInt currentIndex = 0.obs; List pages = [ SupervisionFilterPage(), Placeholder(color: Colors.red), 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(); } }