包装查询方向的小部件
MediaQuery( data: MediaQueryData .fromWindow(ui.window) .copyWith(size: const Size(600.0, 800.0)), child: widgetToTest, )
为我工作。
MediaQuery.orientation只是检查更大的尺寸
Orientation get orientation { return size.width > size.height ? Orientation.landscape : Orientation.portrait; }


