34 lines
651 B
Dart
34 lines
651 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:rasadyar_core/core.dart';
|
|
|
|
|
|
enum ErrorLocationType { serviceDisabled, permissionDenied, none }
|
|
|
|
class RootLogic extends GetxController {
|
|
RxInt currentIndex = 0.obs;
|
|
List<Widget> pages = [
|
|
Container(color: Colors.deepOrange,),
|
|
Container(color: Colors.amberAccent,),
|
|
Container(color: Colors.black,),
|
|
];
|
|
RxList<ErrorLocationType> errorLocationType = RxList();
|
|
|
|
|
|
|
|
@override
|
|
void onReady() {
|
|
super.onReady();
|
|
|
|
}
|
|
|
|
void changePage(int index) {
|
|
currentIndex.value = index;
|
|
}
|
|
|
|
@override
|
|
void onClose() {
|
|
// TODO: implement onClose
|
|
super.onClose();
|
|
}
|
|
}
|