Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
bce01c8c
提交
bce01c8c
authored
1月 23, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI根据设计调整
上级
1550099f
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
94 行增加
和
185 行删除
+94
-185
view.dart
lib/pages/user_discuss/view.dart
+16
-27
item.dart
lib/pages/user_discuss/widgets/item.dart
+13
-33
view.dart
lib/pages/user_notes/view.dart
+19
-28
item.dart
lib/pages/user_notes/widgets/item.dart
+13
-37
view.dart
lib/pages/user_wrong/view.dart
+20
-28
item.dart
lib/pages/user_wrong/widgets/item.dart
+13
-32
没有找到文件。
lib/pages/user_discuss/view.dart
浏览文件 @
bce01c8c
...
...
@@ -17,30 +17,19 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
centerTitle:
true
,
title:
const
Text
(
'讨论'
),
),
body:
Container
(
color:
Colors
.
transparent
,
child:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
// onRefresh: controller.onRefresh,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ListView
.
builder
(
physics:
const
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
body:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
left:
22.5
.
w
,
top:
16
.
w
),
child:
Text
(
'共
${controller.discuss.length}
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
,
fontWeight:
Fonts
.
medium
),)
),
Expanded
(
child:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
ListView
.
builder
(
itemBuilder:
(
BuildContext
context
,
int
index
){
return
GestureDetector
(
onTap:
(){
...
...
@@ -50,10 +39,10 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
);
},
itemCount:
controller
.
discuss
.
length
,
)
,
)
),
)
)
,
)
,
]
,
),
),
);
...
...
lib/pages/user_discuss/widgets/item.dart
浏览文件 @
bce01c8c
...
...
@@ -14,43 +14,23 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
color:
Colors
.
transparent
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// color: Colors.red,
// margin: const EdgeInsets.all(10),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
// color: Colors.white,
// boxShadow: [
// BoxShadow(
// color: const Color(0xFFC7C7C7).withOpacity(0.5),
// offset: const Offset(3, 0),
// blurRadius: 10.w,
// spreadRadius: 0.w,
// ),
// ],
// ),
margin:
const
EdgeInsets
.
all
(
10
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
Column
(
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
):
const
SizedBox
(),
Container
(
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
...
...
lib/pages/user_notes/view.dart
浏览文件 @
bce01c8c
...
...
@@ -17,43 +17,34 @@ class _UserNotePageState extends State<UserNotePage> {
centerTitle:
true
,
title:
const
Text
(
'笔记'
),
),
body:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
// onRefresh: controller.onRefresh,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
ListView
.
builder
(
physics:
const
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
body:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
left:
22.5
.
w
,
top:
16
.
w
),
child:
Text
(
'共
${controller.notes.length}
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
,
fontWeight:
Fonts
.
medium
),)
),
Expanded
(
child:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
ListView
.
builder
(
// physics: const NeverScrollableScrollPhysics(),
// shrinkWrap: true,
itemBuilder:
(
BuildContext
context
,
int
index
){
return
GestureDetector
(
onTap:
(){
context
.
pushNamed
(
Routes
.
noteDes
,
extra:
controller
.
notes
[
index
]);
},
child:
BuildItem
(
model:
controller
.
notes
[
index
],
index:
index
,
num
:
controller
.
notes
.
length
,
)
child:
BuildItem
(
model:
controller
.
notes
[
index
],)
);
},
itemCount:
controller
.
notes
.
length
,
),
),
)
),
)
),
],
),
),
);
...
...
lib/pages/user_notes/widgets/item.dart
浏览文件 @
bce01c8c
...
...
@@ -2,54 +2,30 @@ part of user_notes;
class
BuildItem
extends
StatelessWidget
{
final
CourseModel
model
;
final
int
index
;
final
int
num
;
const
BuildItem
({
Key
?
key
,
required
this
.
model
,
required
this
.
index
,
required
this
.
num
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
color:
Colors
.
white
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
//
margin: const EdgeInsets.all(10),
//
decoration: BoxDecoration(
//
borderRadius: BorderRadius.circular(8),
//
color: Colors.white,
//
boxShadow: [
//
BoxShadow(
//
color: const Color(0xFFC7C7C7).withOpacity(0.5),
// offset: const Offset(3
, 0),
//
blurRadius: 10.w,
//
spreadRadius: 0.w,
//
),
//
],
//
),
margin:
const
EdgeInsets
.
all
(
10
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
Column
(
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
):
const
SizedBox
(),
Container
(
height:
0.5
,
color:
Colours
.
cF0
,
),
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
...
...
lib/pages/user_wrong/view.dart
浏览文件 @
bce01c8c
...
...
@@ -17,35 +17,27 @@ class _UserWrongPageState extends State<UserWrongPage> {
centerTitle:
true
,
title:
const
Text
(
'错题'
),
),
body:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
// onRefresh: controller.onRefresh,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ListView
.
builder
(
physics:
const
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
itemBuilder:
(
BuildContext
context
,
int
index
){
return
BuildItem
(
model:
controller
.
wrongs
[
index
],
index:
index
,
num
:
controller
.
wrongs
.
length
,);
},
itemCount:
controller
.
wrongs
.
length
,
),
body:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
margin:
EdgeInsets
.
only
(
left:
22.5
.
w
,
top:
16
.
w
),
child:
Text
(
'共
${controller.wrongs.length}
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
,
fontWeight:
Fonts
.
medium
),)
),
Expanded
(
child:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
ListView
.
builder
(
itemBuilder:
(
BuildContext
context
,
int
index
){
return
BuildItem
(
model:
controller
.
wrongs
[
index
],
index:
index
,
num
:
controller
.
wrongs
.
length
,);
},
itemCount:
controller
.
wrongs
.
length
,
)
),
)
),
],
),
),
);
...
...
lib/pages/user_wrong/widgets/item.dart
浏览文件 @
bce01c8c
...
...
@@ -14,41 +14,22 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
//
margin: const EdgeInsets.all(10),
//
decoration: BoxDecoration(
//
borderRadius: BorderRadius.circular(8),
//
color: Colors.white,
//
boxShadow: [
//
BoxShadow(
//
color: const Color(0xFFC7C7C7).withOpacity(0.5),
//
offset: const Offset(3, 0),
//
blurRadius: 10.w,
//
spreadRadius: 0.w,
//
),
//
],
//
),
margin:
const
EdgeInsets
.
all
(
10
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
Column
(
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
const
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8
),
topRight:
Radius
.
circular
(
8
),
),
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
):
const
SizedBox
(),
Container
(
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论