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

import 'device_control_common.dart';

/// 供氧计时 + ICU重置面板
class DeviceControlOxygenTimerPanel extends StatelessWidget {
  const DeviceControlOxygenTimerPanel({super.key});

  @override
  Widget build(BuildContext context) {
    return DeviceControlPanelFrame(
      backgroundAsset: assetPanelWide,
      padding: EdgeInsets.fromLTRB(30.w, 26.h, 30.w, 28.h),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          const DeviceControlPanelTitle('供氧计时'),
          const Spacer(),
          Row(
            children: [
              Text(
                '00:00:00',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 42.sp,
                  letterSpacing: 2,
                  fontWeight: FontWeight.w500,
                ),
              ),
              const Spacer(),
              const DeviceControlPill(text: '清零'),
            ],
          ),
          Divider(color: Colors.white.withValues(alpha: 0.16), height: 38.h),
          Text(
            'ICU舱设置重置',
            style: TextStyle(
              color: Colors.white,
              fontSize: 28.sp,
              fontWeight: FontWeight.w600,
            ),
          ),
          const Spacer(),
          const DeviceControlBigActionButton(text: '初始化设置'),
        ],
      ),
    );
  }
}
