提交 66312694 authored 作者: yueweilu's avatar yueweilu

倒计时文字大小

上级 6ac80678
...@@ -44,7 +44,7 @@ class _AdPageState extends State<AdPage> { ...@@ -44,7 +44,7 @@ class _AdPageState extends State<AdPage> {
), ),
child: Text( child: Text(
'跳过 ${controller._countdown} s', '跳过 ${controller._countdown} s',
style: const TextStyle(color: Colors.white), style: TextStyle(color: Colors.white,fontSize:14.w,),
), ),
), ),
) )
......
...@@ -129,7 +129,7 @@ class BuildNote extends StatelessWidget { ...@@ -129,7 +129,7 @@ class BuildNote extends StatelessWidget {
return text; return text;
} }
String _showImageStatus(NoteModel discussModel,MediaModel? mediaModel){ String _showMediaModelStatus(NoteModel discussModel,MediaModel? mediaModel){
String text = ''; String text = '';
// 是我的 // 是我的
if(discussModel.isMy == 1){ if(discussModel.isMy == 1){
...@@ -186,7 +186,7 @@ class BuildNote extends StatelessWidget { ...@@ -186,7 +186,7 @@ class BuildNote extends StatelessWidget {
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
// color: model.isMy==1?Colours.c9.withOpacity(0.5):Colours.c9.withOpacity(1), // color: model.isMy==1?Colours.c9.withOpacity(0.5):Colours.c9.withOpacity(1),
child: Text(_showImageStatus(model,mediaModel),style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary),), child: Text(_showMediaModelStatus(model,mediaModel),style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary),),
) )
), ),
), ),
...@@ -206,10 +206,14 @@ class BuildNote extends StatelessWidget { ...@@ -206,10 +206,14 @@ class BuildNote extends StatelessWidget {
MediaModel mediaModel = model.noteContent!.audio![index]; MediaModel mediaModel = model.noteContent!.audio![index];
return Container( return Container(
height: 20.w, height: 20.w,
margin: EdgeInsets.only(right: 130.w), // margin: EdgeInsets.only(right: 130.w),
child: Container( color: Colors.white,
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
margin: EdgeInsets.only(top: 5.w), margin: EdgeInsets.only(top: 5.w),
padding: EdgeInsets.only(right:20.w,left: 10.w), padding: EdgeInsets.only(right:15.w,left: 10.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10.w), borderRadius: BorderRadius.circular(10.w),
color: Colours.cF9, color: Colours.cF9,
...@@ -220,21 +224,26 @@ class BuildNote extends StatelessWidget { ...@@ -220,21 +224,26 @@ class BuildNote extends StatelessWidget {
children: [ children: [
GestureDetector( GestureDetector(
onTap: (){ onTap: (){
// 我的录音 或者 已经审核通过的录音才可以播放
if(model.isMy == 1 || mediaModel.privacyStatus == 1){
if (onTapAudio !=null) onTapAudio!(mediaModel); if (onTapAudio !=null) onTapAudio!(mediaModel);
} // // 我的录音 或者 已经审核通过的录音才可以播放
else{ // if(model.isMy == 1 || mediaModel.privacyStatus == 1){
Toast.show('当前音频处于审核中'); // if (onTapAudio !=null) onTapAudio!(mediaModel);
} // }
// else{
// Toast.show('当前音频处于审核中');
// }
}, },
child: Image.asset('assets/images/audio.png') child: Image.asset('assets/images/audio.png')
), ),
Text('${mediaModel.currentDuration}/${mediaModel.duration}',style: TextStyle(fontSize: 10.w,height: 1.4,color: Colours.c9),) Gaps.hGaps30,
Text('${mediaModel.currentDuration}/${mediaModel.duration}',style: TextStyle(fontSize: 10.w,height: 1.4,color: Colours.c9),),
], ],
), ),
), ),
Text(_showMediaModelStatus(model,mediaModel),style: TextStyle(fontSize: 11.w,height: 1.8,color: AppTheme.primary),)
],
),
); );
}, },
itemCount: model.noteContent?.audio?.length, itemCount: model.noteContent?.audio?.length,
......
...@@ -47,6 +47,7 @@ class Gaps { ...@@ -47,6 +47,7 @@ class Gaps {
static Widget hGaps8 = SizedBox(width: 8.w,); static Widget hGaps8 = SizedBox(width: 8.w,);
static Widget hGaps15 = SizedBox(width: 15.w,); static Widget hGaps15 = SizedBox(width: 15.w,);
static Widget hGaps20 = SizedBox(width: 20.w,); static Widget hGaps20 = SizedBox(width: 20.w,);
static Widget hGaps30 = SizedBox(width: 30.w,);
static Widget vGaps5 = SizedBox(height: 5.w,); static Widget vGaps5 = SizedBox(height: 5.w,);
static Widget vGaps8 = SizedBox(height: 8.w,); static Widget vGaps8 = SizedBox(height: 8.w,);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论