fluttercommunity / fluttercommunity/chewie
❌ Switch video source in full-screen video playback, switch failed.
- Dominant language
- Dart
- Stars
- 2.1k
- Forks
- 1.1k
- Avg merge
- 6d 8h
- Merged PRs (30d)
- 6
Description
I have a very strange issue where when I move the MaterialApp in app.dart to main.dart, the portrait screen switches to full screen to play the video, then switches the video source, and the switch fails.
我遇到了一个非常奇怪的问题,当我将 app.dart 中的 MaterialApp 移动到 main.dart 时,竖屏切换到全屏播放视频,再切换视频源,切换失败。
example project:
1、main.dart
Change before:
...
void main() {
runApp(const ChewieDemo());
}
...
Change after:
...
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
title: 'ChewieDemo',
home: ChewieDemo(),
);
}
}
...
2、app.dart
Change before:
...
@override
Widget build(BuildContext context) {
return MaterialApp(
title: widget.title,
theme: AppTheme.light.copyWith(
platform: _platform ?? Theme.of(context).platform,
),
home: Scaffold(
...
Change after:
...
@override
Widget build(BuildContext context) {
return Scaffold(
...
[chewie-1.10.0_problem.zip](https://github.com/user-attachments/files/26458239/chewie-1.10.0_problem.zip)
https://github.com/user-attachments/assets/a016f3c5-9183-44a6-b2aa-516ef0206df4
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.