22 lines
595 B
Dart
22 lines
595 B
Dart
import 'package:get/get.dart';
|
|
import 'package:traderscircuit/view/MainScreen/HomeScreen.dart';
|
|
import 'package:traderscircuit/view/MainScreen/PastPerformance.dart';
|
|
import 'package:traderscircuit/view/MainScreen/ShortTrade.dart';
|
|
|
|
import '../../view/MainScreen/Portfolio/small_case_user_portoflio.dart';
|
|
|
|
class MainController extends GetxController {
|
|
var selectedIndex = 0.obs;
|
|
|
|
var currentTab = [
|
|
const HomeScreen(),
|
|
const ShortTrade(),
|
|
const PastPerformance(),
|
|
const SmallCaseUserPortoflio(),
|
|
].obs;
|
|
|
|
void updateTab(int index) {
|
|
selectedIndex.value = index;
|
|
}
|
|
}
|