Files
rasadyar_application/packages/livestock/lib/presentation/page/root/logic.dart

26 lines
665 B
Dart
Raw Normal View History

2025-05-21 09:04:21 +03:30
import 'package:flutter/material.dart';
import 'package:rasadyar_core/core.dart';
2025-05-21 09:04:21 +03:30
import 'package:rasadyar_livestock/presentation/page/action/view.dart';
import 'package:rasadyar_livestock/presentation/page/map/view.dart';
import 'package:rasadyar_livestock/presentation/page/profile/view.dart';
class RootLogic extends GetxController {
2025-05-21 09:04:21 +03:30
List<Widget> pages = [ActionPage(), MapPage(), ProfilePage()];
2025-05-21 14:43:26 +03:30
RxInt currentIndex = 1.obs;
2025-05-21 09:04:21 +03:30
@override
void onReady() {
// TODO: implement onReady
super.onReady();
}
@override
void onClose() {
// TODO: implement onClose
super.onClose();
}
2025-05-21 14:43:26 +03:30
void changePage(int i) => currentIndex.value = i;
}