import 'dart:ui'; var s = window.physicalSize;print(s); 转载于:https://www.cnblogs.com/pythonClub/p/10567811.html