Open dfdgsdfg opened 1 year ago
Maybe releated
Workaround.
Wrap your page 'OrientationBuilder' then ignore unnecessary orientation.
class _PageState extends State<Page> {
bool isFullScreen = false;
@override
Widget build(BuildContext context) {
return Column(
children: [
ChewiePlayer(),
OrientationBuilder(
builder: (context, snapshot) {
if (snapshot == Orientation.landscape) {
isFullScreen = true;
return Container();
}
return isFullScreen
? FutureBuilder(
future: Future.delayed(const Duration(milliseconds: 300)),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting)
return Container();
isFullScreen = false;
return WebViewWidget();
})
: WebViewWidget();
},
),
],
);
}
}
@dfdgsdfg Thank you, the issue persist