Commit 1748f1e6dea79550127d1ff9f290cf5a9493e3b5
1 parent
a6ad33b3
feat:隐藏环节页底部页码
Showing
2 changed files
with
41 additions
and
41 deletions
lib/pages/section/section_page.dart
@@ -183,46 +183,46 @@ class _SectionPageView extends StatelessWidget { | @@ -183,46 +183,46 @@ class _SectionPageView extends StatelessWidget { | ||
183 | ); | 183 | ); |
184 | } | 184 | } |
185 | })), | 185 | })), |
186 | - SafeArea( | ||
187 | - child: Padding( | ||
188 | - padding: EdgeInsets.symmetric(horizontal: 13.w), | ||
189 | - child: Row( | ||
190 | - mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
191 | - children: [ | ||
192 | - SizedBox( | ||
193 | - height: 47.h, | ||
194 | - width: 80.w, | ||
195 | - ), | ||
196 | - Container( | ||
197 | - decoration: BoxDecoration( | ||
198 | - color: CourseModuleModel( | ||
199 | - bloc.courseUnitEntity.courseModuleCode ?? | ||
200 | - 'Phase-1') | ||
201 | - .color, | ||
202 | - borderRadius: BorderRadius.circular(14.5.r), | ||
203 | - ), | ||
204 | - padding: EdgeInsets.symmetric( | ||
205 | - vertical: 8.h, horizontal: 24.w), | ||
206 | - child: Text( | ||
207 | - '${(bloc.courseUnitEntity.nowStep ?? 0)}/${bloc.courseUnitEntity.total ?? 0}', | ||
208 | - style: TextStyle( | ||
209 | - color: Colors.white, fontSize: 12.sp), | ||
210 | - ), | ||
211 | - ), | ||
212 | - Image.asset( | ||
213 | - CourseModuleModel( | ||
214 | - bloc.courseUnitEntity.courseModuleCode ?? | ||
215 | - 'Phase-1') | ||
216 | - .courseModuleLogo | ||
217 | - .assetPng, | ||
218 | - height: 47.h, | ||
219 | - width: 80.w, | ||
220 | - // color: Colors.red, | ||
221 | - ), | ||
222 | - ], | ||
223 | - ), | ||
224 | - ), | ||
225 | - ) | 186 | + // SafeArea( |
187 | + // child: Padding( | ||
188 | + // padding: EdgeInsets.symmetric(horizontal: 13.w), | ||
189 | + // child: Row( | ||
190 | + // mainAxisAlignment: MainAxisAlignment.spaceBetween, | ||
191 | + // children: [ | ||
192 | + // SizedBox( | ||
193 | + // height: 47.h, | ||
194 | + // width: 80.w, | ||
195 | + // ), | ||
196 | + // Container( | ||
197 | + // decoration: BoxDecoration( | ||
198 | + // color: CourseModuleModel( | ||
199 | + // bloc.courseUnitEntity.courseModuleCode ?? | ||
200 | + // 'Phase-1') | ||
201 | + // .color, | ||
202 | + // borderRadius: BorderRadius.circular(14.5.r), | ||
203 | + // ), | ||
204 | + // padding: EdgeInsets.symmetric( | ||
205 | + // vertical: 8.h, horizontal: 24.w), | ||
206 | + // child: Text( | ||
207 | + // '${(bloc.courseUnitEntity.nowStep ?? 0)}/${bloc.courseUnitEntity.total ?? 0}', | ||
208 | + // style: TextStyle( | ||
209 | + // color: Colors.white, fontSize: 12.sp), | ||
210 | + // ), | ||
211 | + // ), | ||
212 | + // Image.asset( | ||
213 | + // CourseModuleModel( | ||
214 | + // bloc.courseUnitEntity.courseModuleCode ?? | ||
215 | + // 'Phase-1') | ||
216 | + // .courseModuleLogo | ||
217 | + // .assetPng, | ||
218 | + // height: 47.h, | ||
219 | + // width: 80.w, | ||
220 | + // // color: Colors.red, | ||
221 | + // ), | ||
222 | + // ], | ||
223 | + // ), | ||
224 | + // ), | ||
225 | + // ) | ||
226 | ], | 226 | ], |
227 | ), | 227 | ), |
228 | ), | 228 | ), |
pubspec.yaml
@@ -94,7 +94,7 @@ dependencies: | @@ -94,7 +94,7 @@ dependencies: | ||
94 | # UI适配 https://pub.dev/packages/responsive_framework | 94 | # UI适配 https://pub.dev/packages/responsive_framework |
95 | responsive_framework: ^1.0.0 | 95 | responsive_framework: ^1.0.0 |
96 | # 音频播放 https://pub.dev/packages/audioplayers | 96 | # 音频播放 https://pub.dev/packages/audioplayers |
97 | - audioplayers: ^6.0.0 | 97 | + audioplayers: ^4.1.0 |
98 | # 语音录制 https://pub.dev/packages/flutter_sound | 98 | # 语音录制 https://pub.dev/packages/flutter_sound |
99 | flutter_sound: ^9.2.13 | 99 | flutter_sound: ^9.2.13 |
100 | # 音频播放 https://pub.dev/packages/audio_session | 100 | # 音频播放 https://pub.dev/packages/audio_session |