// 暖记响应式断点 // 手机 < 600 | 平板 600-1024 | 桌面 > 1024 class Breakpoints { Breakpoints._(); /// 手机最大宽度 static const double mobile = 600; /// 平板最大宽度 static const double tablet = 1024; /// 触摸目标最小尺寸 (WCAG + Apple HIG) static const double touchTarget = 44; /// 判断设备类型 static DeviceType getDeviceType(double width) { if (width < mobile) return DeviceType.mobile; if (width < tablet) return DeviceType.tablet; return DeviceType.desktop; } } enum DeviceType { mobile, tablet, desktop }