setLandscapeMode method
void
setLandscapeMode()
设置应用为横屏模式
Implementation
void setLandscapeMode() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
}