Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
66312694
提交
66312694
authored
3月 13, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
倒计时文字大小
上级
6ac80678
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
29 行删除
+39
-29
view.dart
lib/pages/ad/view.dart
+1
-1
note.dart
lib/pages/user_notes_des/widgets/note.dart
+37
-28
styles.dart
lib/utils/styles.dart
+1
-0
没有找到文件。
lib/pages/ad/view.dart
浏览文件 @
66312694
...
@@ -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
,
),
),
),
),
),
)
)
...
...
lib/pages/user_notes_des/widgets/note.dart
浏览文件 @
66312694
...
@@ -129,7 +129,7 @@ class BuildNote extends StatelessWidget {
...
@@ -129,7 +129,7 @@ class BuildNote extends StatelessWidget {
return
text
;
return
text
;
}
}
String
_show
Image
Status
(
NoteModel
discussModel
,
MediaModel
?
mediaModel
){
String
_show
MediaModel
Status
(
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
(
_show
Image
Status
(
model
,
mediaModel
),
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
),),
child:
Text
(
_show
MediaModel
Status
(
model
,
mediaModel
),
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
),),
)
)
),
),
),
),
...
@@ -206,34 +206,43 @@ class BuildNote extends StatelessWidget {
...
@@ -206,34 +206,43 @@ 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
,
margin:
EdgeInsets
.
only
(
top:
5
.
w
),
child:
Row
(
padding:
EdgeInsets
.
only
(
right:
20
.
w
,
left:
10
.
w
),
crossAxisAlignment:
CrossAxisAlignment
.
center
,
decoration:
BoxDecoration
(
children:
[
borderRadius:
BorderRadius
.
circular
(
10
.
w
),
Container
(
color:
Colours
.
cF9
,
margin:
EdgeInsets
.
only
(
top:
5
.
w
),
),
padding:
EdgeInsets
.
only
(
right:
15
.
w
,
left:
10
.
w
),
child:
Row
(
decoration:
BoxDecoration
(
// mainAxisSize: MainAxisSize.min,
borderRadius:
BorderRadius
.
circular
(
10
.
w
),
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
color:
Colours
.
cF9
,
children:
[
),
GestureDetector
(
child:
Row
(
onTap:
(){
// mainAxisSize: MainAxisSize.min,
// 我的录音 或者 已经审核通过的录音才可以播放
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
if
(
model
.
isMy
==
1
||
mediaModel
.
privacyStatus
==
1
){
children:
[
if
(
onTapAudio
!=
null
)
onTapAudio
!(
mediaModel
);
GestureDetector
(
}
onTap:
(){
else
{
if
(
onTapAudio
!=
null
)
onTapAudio
!(
mediaModel
);
Toast
.
show
(
'当前音频处于审核中'
);
// // 我的录音 或者 已经审核通过的录音才可以播放
}
// if(model.isMy == 1 || mediaModel.privacyStatus == 1){
// if (onTapAudio !=null) onTapAudio!(mediaModel);
// }
// else{
// Toast.show('当前音频处于审核中');
// }
},
},
child:
Image
.
asset
(
'assets/images/audio.png'
)
child:
Image
.
asset
(
'assets/images/audio.png'
)
),
Gaps
.
hGaps30
,
Text
(
'
${mediaModel.currentDuration}
/
${mediaModel.duration}
'
,
style:
TextStyle
(
fontSize:
10
.
w
,
height:
1.4
,
color:
Colours
.
c9
),),
],
),
),
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
),)
)
,
]
,
),
),
);
);
},
},
...
...
lib/utils/styles.dart
浏览文件 @
66312694
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论