From 009b4af68a32511d7f088760888abbe846c9fa2e Mon Sep 17 00:00:00 2001 From: xufei <727302827@qq.com> Date: Tue, 2 Sep 2025 15:30:13 +0800 Subject: [PATCH] =?UTF-8?q?2025.9.2=20=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../study/strengthen_video_study_page.dart | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/lib/pages/home/study/strengthen_video_study_page.dart b/lib/pages/home/study/strengthen_video_study_page.dart index 708180c..2f34e16 100644 --- a/lib/pages/home/study/strengthen_video_study_page.dart +++ b/lib/pages/home/study/strengthen_video_study_page.dart @@ -166,16 +166,31 @@ class _StrengthenStudyPageState extends State { 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),