26 lines
665 B
Dart
26 lines
665 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:rasadyar_core/core.dart';
|
|
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 {
|
|
List<Widget> pages = [ActionPage(), MapPage(), ProfilePage()];
|
|
RxInt currentIndex = 1.obs;
|
|
|
|
@override
|
|
void onReady() {
|
|
// TODO: implement onReady
|
|
super.onReady();
|
|
}
|
|
|
|
@override
|
|
void onClose() {
|
|
// TODO: implement onClose
|
|
super.onClose();
|
|
}
|
|
|
|
void changePage(int i) => currentIndex.value = i;
|
|
|
|
}
|