// ignore_for_file: unused_import

import 'package:auto_route/auto_route.dart';
import 'package:laki_icu_app/views/layout/default_view.dart';
import 'package:laki_icu_app/views/monitoring/index/monitoring_index_view.dart';
import 'package:laki_icu_app/views/monitoring/device_control/device_control_index_view.dart';
import 'package:laki_icu_app/views/blood_pressure/blood_pressure_index_view.dart';
import 'package:laki_icu_app/views/vital_signs/vital_signs_index_view.dart';
import 'package:laki_icu_app/views/ecg_system/ecg_system_index_view.dart';
import 'package:laki_icu_app/views/tsaas/tsaas_index_view.dart';
import 'package:laki_icu_app/views/record/record_index_view.dart';
import 'package:laki_icu_app/views/settings/settings_index_view.dart';
import 'app_router.gr.dart';

@AutoRouterConfig(replaceInRouteName: 'View,Route')
class AppRouter extends $AppRouter {
  @override
  RouteType get defaultRouteType =>
      const RouteType.material(); //.cupertino, .adaptive ..etc

  @override
  List<AutoRoute> get routes => [
        // DefaultLayoutRoute / DefaultLayoutView（主框架 Shell）
        AutoRoute(
          page: DefaultLayoutRoute.page,
          initial: true,
          children: [
            // MonitoringIndexRoute / MonitoringIndexView（ICU中控 - Tab 0）
            AutoRoute(
              page: MonitoringIndexRoute.page,
              initial: true,
            ),
            // BloodPressureIndexRoute / BloodPressureIndexView（血压监测 - Tab 1）
            AutoRoute(page: BloodPressureIndexRoute.page),
            // VitalSignsIndexRoute / VitalSignsIndexView（体征仪 - Tab 2）
            AutoRoute(page: VitalSignsIndexRoute.page),
            // EcgSystemIndexRoute / EcgSystemIndexView（多导心电系统 - Tab 3）
            AutoRoute(page: EcgSystemIndexRoute.page),
            // TsaasIndexRoute / TsaasIndexView（TSAAS - Tab 4）
            AutoRoute(page: TsaasIndexRoute.page),
            // RecordIndexRoute / RecordIndexView（记录 - Tab 5）
            AutoRoute(page: RecordIndexRoute.page),
            // SettingsIndexRoute / SettingsIndexView（设置 - Tab 6）
            AutoRoute(page: SettingsIndexRoute.page),

            AutoRoute(page: DeviceControlIndexRoute.page),
          ],
        ),
         
      ];
}
