Files
rasadyar_application/features/supervision/lib/presentation/root/logic.dart
mr.mojtaba 0c750e1c01 feat :
action
 profile
2025-04-21 15:45:15 +03:30

26 lines
618 B
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:supervision/presentation/action/view.dart';
import 'package:supervision/presentation/filter/view.dart';
import 'package:supervision/presentation/profile/view.dart';
class RootLogic extends GetxController {
RxInt currentIndex = 0.obs;
List<Widget> pages = [SupervisionFilterPage(), ActionPage(), ProfilePage()];
@override
void onReady() {
super.onReady();
}
void changePage(int index) {
currentIndex.value = index;
}
@override
void onClose() {
// TODO: implement onClose
super.onClose();
}
}