2025.9.2 修改bug

main
xufei 2025-09-02 15:30:13 +08:00
parent d05e6d301d
commit 009b4af68a
1 changed files with 24 additions and 9 deletions

View File

@ -166,16 +166,31 @@ class _StrengthenStudyPageState extends State<StrengthenStudyPage> {
body: Column(
children: [
ListItemFactory.createBuildSimpleSection('加强学习课件'),
SizedBox(
width: double.infinity,
height: 250,
child: VideoPlayerWidget(
allowSeek: false,
controller: _videoController,
coverUrl:'',
aspectRatio: _videoController?.value.aspectRatio ?? 16 / 9,
if(_videoList.isEmpty)
Stack(children: [
Container(
width: double.infinity,
height: 200,
color: Colors.white,
child: Center(
child:Text("暂未播放",
),
),
),
),
if(_videoList.isNotEmpty)
SizedBox(
width: double.infinity,
height: 250,
child: VideoPlayerWidget(
allowSeek: false,
controller: _videoController,
coverUrl:'',
aspectRatio: _videoController?.value.aspectRatio ?? 16 / 9,
),
),
],),
Expanded(
child: ListView.builder(
padding: const EdgeInsets.all(12),