import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:web_panel/routs/rout_name.dart';
import '../../global_variable.dart';
import 'drawer_list_tile.dart';


class SideMenu extends StatelessWidget {
  const SideMenu({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Drawer(
      child: ListView(
        children: [
          SizedBox(height: 100),
          // DrawerHeader(child: Image.asset("assets/images/logo.png")),
          DrawerListTile(
            title: "Dashboard",
            svgSrc: "assets/icons/menu_dashboard.svg",
            press: () {
              // controller.changePage(1);
              // html.window.history.pushState({}, '', '#${RoutName.dashBoard}');
              Get.toNamed(RoutName.dashBoard);

            },
          ),
          DrawerListTile(
            title: "Device",
            svgSrc: "assets/icons/ic_device.svg",
            press: () {
              // controller.changePage(2);
              // html.window.history.pushState({}, '', '#${RoutName.device}');
              // navigatorKey.currentState!.pushReplacementNamed('/device');

              Get.toNamed(RoutName.device);

            },
          ),
          DrawerListTile(
            title: "Ticket",
            svgSrc: "assets/icons/ic_ticket_sidebar.svg",
            press: () {
              // controller.changePage(3);

              Get.toNamed(RoutName.ticket);

              // html.window.history.pushState({}, '', '#${RoutName.ticket}');
            },
          ),
          // DrawerListTile(
          //   title: "Documents",
          //   svgSrc: "assets/icons/menu_doc.svg",
          //   press: () {},
          // ),
          // DrawerListTile(
          //   title: "Store",
          //   svgSrc: "assets/icons/menu_store.svg",
          //   press: () {},
          // ),
          // DrawerListTile(
          //   title: "Notification",
          //   svgSrc: "assets/icons/menu_notification.svg",
          //   press: () {},
          // ),
          // DrawerListTile(
          //   title: "Profile",
          //   svgSrc: "assets/icons/menu_profile.svg",
          //   press: () {},
          // ),
          // DrawerListTile(
          //   title: "Settings",
          //   svgSrc: "assets/icons/menu_setting.svg",
          //   press: () {},
          // ),
        ],
      ),
    );
  }
}
