From 1748f1e6dea79550127d1ff9f290cf5a9493e3b5 Mon Sep 17 00:00:00 2001 From: wuqifeng <540416539@qq.com> Date: Tue, 7 May 2024 03:54:09 +0800 Subject: [PATCH] feat:隐藏环节页底部页码 --- lib/pages/section/section_page.dart | 80 ++++++++++++++++++++++++++++++++++++++++---------------------------------------- pubspec.yaml | 2 +- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/lib/pages/section/section_page.dart b/lib/pages/section/section_page.dart index edf88c1..3bb055c 100644 --- a/lib/pages/section/section_page.dart +++ b/lib/pages/section/section_page.dart @@ -183,46 +183,46 @@ class _SectionPageView extends StatelessWidget { ); } })), - SafeArea( - child: Padding( - padding: EdgeInsets.symmetric(horizontal: 13.w), - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - SizedBox( - height: 47.h, - width: 80.w, - ), - Container( - decoration: BoxDecoration( - color: CourseModuleModel( - bloc.courseUnitEntity.courseModuleCode ?? - 'Phase-1') - .color, - borderRadius: BorderRadius.circular(14.5.r), - ), - padding: EdgeInsets.symmetric( - vertical: 8.h, horizontal: 24.w), - child: Text( - '${(bloc.courseUnitEntity.nowStep ?? 0)}/${bloc.courseUnitEntity.total ?? 0}', - style: TextStyle( - color: Colors.white, fontSize: 12.sp), - ), - ), - Image.asset( - CourseModuleModel( - bloc.courseUnitEntity.courseModuleCode ?? - 'Phase-1') - .courseModuleLogo - .assetPng, - height: 47.h, - width: 80.w, - // color: Colors.red, - ), - ], - ), - ), - ) + // SafeArea( + // child: Padding( + // padding: EdgeInsets.symmetric(horizontal: 13.w), + // child: Row( + // mainAxisAlignment: MainAxisAlignment.spaceBetween, + // children: [ + // SizedBox( + // height: 47.h, + // width: 80.w, + // ), + // Container( + // decoration: BoxDecoration( + // color: CourseModuleModel( + // bloc.courseUnitEntity.courseModuleCode ?? + // 'Phase-1') + // .color, + // borderRadius: BorderRadius.circular(14.5.r), + // ), + // padding: EdgeInsets.symmetric( + // vertical: 8.h, horizontal: 24.w), + // child: Text( + // '${(bloc.courseUnitEntity.nowStep ?? 0)}/${bloc.courseUnitEntity.total ?? 0}', + // style: TextStyle( + // color: Colors.white, fontSize: 12.sp), + // ), + // ), + // Image.asset( + // CourseModuleModel( + // bloc.courseUnitEntity.courseModuleCode ?? + // 'Phase-1') + // .courseModuleLogo + // .assetPng, + // height: 47.h, + // width: 80.w, + // // color: Colors.red, + // ), + // ], + // ), + // ), + // ) ], ), ), diff --git a/pubspec.yaml b/pubspec.yaml index a9f6c07..4fcc959 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -94,7 +94,7 @@ dependencies: # UI适配 https://pub.dev/packages/responsive_framework responsive_framework: ^1.0.0 # 音频播放 https://pub.dev/packages/audioplayers - audioplayers: ^6.0.0 + audioplayers: ^4.1.0 # 语音录制 https://pub.dev/packages/flutter_sound flutter_sound: ^9.2.13 # 音频播放 https://pub.dev/packages/audio_session -- libgit2 0.22.2