import 'package:flutter/material.dart';
import 'package:get/get.dart';

class SidebarController extends GetxController {


    // GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>();

  // // GlobalKey<ScaffoldState> get scaffoldKey => _scaffoldKey;
  //
  // void controlMenu() {
  //   if (!scaffoldKey.currentState!.isDrawerOpen) {
  //     scaffoldKey.currentState!.openDrawer();
  //   }
  // }

  RxInt index = 1.obs;

  void changePage(int val){
    index(val);

  }
}
