feat: actions and map page
This commit is contained in:
@@ -6,7 +6,7 @@ import 'package:rasadyar_livestock/presentation/page/profile/view.dart';
|
||||
|
||||
class RootLogic extends GetxController {
|
||||
List<Widget> pages = [ActionPage(), MapPage(), ProfilePage()];
|
||||
RxInt indexedPage = 1.obs;
|
||||
RxInt currentIndex = 1.obs;
|
||||
|
||||
@override
|
||||
void onReady() {
|
||||
@@ -19,4 +19,7 @@ class RootLogic extends GetxController {
|
||||
// TODO: implement onClose
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
void changePage(int i) => currentIndex.value = i;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user