feat : request tagging and fix chips and fix overflow module in auht
This commit is contained in:
@@ -1,11 +1,30 @@
|
||||
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';
|
||||
import 'package:rasadyar_livestock/presentation/page/request_tagging/view.dart';
|
||||
import 'package:rasadyar_livestock/presentation/page/requests/view.dart';
|
||||
import 'package:rasadyar_livestock/presentation/routes/app_pages.dart';
|
||||
|
||||
class RootLogic extends GetxController {
|
||||
List<Widget> pages = [ActionPage(), MapPage(), ProfilePage()];
|
||||
List<Widget> pages = [
|
||||
Navigator(
|
||||
key: Get.nestedKey(0),
|
||||
initialRoute: LiveStockRoutes.requests,
|
||||
onGenerateRoute: (settings) {
|
||||
switch (settings.name) {
|
||||
case LiveStockRoutes.requests:
|
||||
return GetPageRoute(page: () => RequestsPage());
|
||||
case LiveStockRoutes.requestTagging:
|
||||
return GetPageRoute(page: () => RequestTaggingPage());
|
||||
default:
|
||||
return GetPageRoute(page: () => RequestsPage());
|
||||
}
|
||||
},
|
||||
),
|
||||
MapPage(),
|
||||
ProfilePage(),
|
||||
];
|
||||
RxInt currentIndex = 1.obs;
|
||||
|
||||
@override
|
||||
@@ -21,5 +40,4 @@ class RootLogic extends GetxController {
|
||||
}
|
||||
|
||||
void changePage(int i) => currentIndex.value = i;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user