Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
8c715ac0
提交
8c715ac0
authored
1月 23, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正UI
上级
ebfdb0ef
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
56 行增加
和
20 行删除
+56
-20
audio.png
assets/images/2.0x/audio.png
+0
-0
audio.png
assets/images/3.0x/audio.png
+0
-0
audio.png
assets/images/audio.png
+0
-0
discuss.dart
lib/pages/user_discuss_des/widgets/discuss.dart
+8
-1
high.dart
lib/pages/user_notes_des/widgets/high.dart
+2
-2
line.dart
lib/pages/user_notes_des/widgets/line.dart
+2
-1
note.dart
lib/pages/user_notes_des/widgets/note.dart
+44
-16
没有找到文件。
assets/images/2.0x/audio.png
0 → 100644
浏览文件 @
8c715ac0
606 Bytes
assets/images/3.0x/audio.png
0 → 100644
浏览文件 @
8c715ac0
1.2 KB
assets/images/audio.png
0 → 100644
浏览文件 @
8c715ac0
415 Bytes
lib/pages/user_discuss_des/widgets/discuss.dart
浏览文件 @
8c715ac0
...
...
@@ -102,7 +102,14 @@ class BuildDiscuss extends StatelessWidget {
Text
(
model
.
createTime
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),)
],
),
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
type
==
0
?
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
),)
:
RichText
(
text:
TextSpan
(
children:
[
TextSpan
(
text:
'回复 '
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
TextSpan
(
text:
model
.
replacePersonName
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c9
)),
TextSpan
(
text:
':
${model.content??''}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
]
)),
Row
(
children:
[
Row
(
...
...
lib/pages/user_notes_des/widgets/high.dart
浏览文件 @
8c715ac0
...
...
@@ -30,8 +30,8 @@ class BuildHigh extends StatelessWidget {
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colors
.
red
,
//
color: Colors.red,
color:
Color
(
int
.
parse
(
model
.
color
!.
substring
(
1
),
radix:
16
)
+
0xFF000000
)
),),
Gaps
.
vGaps8
,
Container
(
...
...
lib/pages/user_notes_des/widgets/line.dart
浏览文件 @
8c715ac0
...
...
@@ -32,7 +32,8 @@ class BuildLine extends StatelessWidget {
height:
1.5
,
color:
Colours
.
c3
,
decoration:
TextDecoration
.
underline
,
decorationColor:
Colors
.
red
,
// decorationColor: Colors.red,
decorationColor:
Color
(
int
.
parse
(
model
.
color
!.
substring
(
1
),
radix:
16
)
+
0xFF000000
),
decorationThickness:
2
),),
Gaps
.
vGaps8
,
...
...
lib/pages/user_notes_des/widgets/note.dart
浏览文件 @
8c715ac0
...
...
@@ -17,7 +17,7 @@ class BuildNote extends StatelessWidget {
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
1.5
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
...
...
@@ -30,13 +30,13 @@ class BuildNote extends StatelessWidget {
Text
(
'看来谁都不记得自己为何出现在此'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colors
.
red
,
//
color: Colors.red,
color:
Colours
.
c3
),),
Gaps
.
vGaps13
,
_buildImageGridView
(),
Gaps
.
vGaps13
,
_buildAudio
Grid
View
(),
_buildAudio
List
View
(),
Gaps
.
vGaps13
,
Container
(
width:
double
.
infinity
,
...
...
@@ -77,25 +77,53 @@ class BuildNote extends StatelessWidget {
);
}
Widget
_buildAudioGridView
(){
return
GridView
.
builder
(
// padding: const EdgeInsets.only(left: 13,top: 10),
physics:
NeverScrollableScrollPhysics
(),
Widget
_buildAudioListView
(){
return
ListView
.
builder
(
physics:
const
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
6
,
crossAxisSpacing:
2
.
w
,
mainAxisSpacing:
2
.
w
,
childAspectRatio:
1
),
itemBuilder:
(
BuildContext
context
,
int
index
)
{
return
Container
(
color:
Colors
.
red
,
child:
Center
(
child:
Text
(
'音频'
)),
height:
20
.
w
,
margin:
EdgeInsets
.
only
(
right:
130
.
w
),
child:
Container
(
margin:
EdgeInsets
.
only
(
top:
5
.
w
),
padding:
EdgeInsets
.
only
(
right:
20
.
w
,
left:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
10
.
w
),
color:
Colours
.
cF9
,
),
child:
Row
(
// mainAxisSize: MainAxisSize.min,
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Image
.
asset
(
'assets/images/audio.png'
),
Text
(
'0:00/1:52'
,
style:
TextStyle
(
fontSize:
10
.
w
,
height:
1.4
,
color:
Colours
.
c9
),)
],
),
),
);
},
itemCount:
3
,
);
}
// Widget _buildAudioGridView(){
// return GridView.builder(
// physics: const NeverScrollableScrollPhysics(),
// shrinkWrap: true,
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
// crossAxisCount: 6,
// crossAxisSpacing: 2.w,
// mainAxisSpacing: 2.w,
// childAspectRatio: 1
// ),
// itemBuilder: (BuildContext context, int index) {
// return Container(
// color: Colors.red,
// child: Center(child: Text('音频')),
// );
// },
// itemCount: 3,
// );
// }
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论