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 个修改的文件
包含
75 行增加
和
166 行删除
+75
-166
view.dart
lib/pages/user_discuss/view.dart
+12
-23
item.dart
lib/pages/user_discuss/widgets/item.dart
+11
-31
view.dart
lib/pages/user_notes/view.dart
+16
-25
item.dart
lib/pages/user_notes/widgets/item.dart
+11
-35
view.dart
lib/pages/user_wrong/view.dart
+13
-21
item.dart
lib/pages/user_wrong/widgets/item.dart
+12
-31
没有找到文件。
lib/pages/user_discuss/view.dart
浏览文件 @
bce01c8c
...
@@ -17,30 +17,19 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
...
@@ -17,30 +17,19 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
centerTitle:
true
,
centerTitle:
true
,
title:
const
Text
(
'讨论'
),
title:
const
Text
(
'讨论'
),
),
),
body:
Container
(
body:
Column
(
color:
Colors
.
transparent
,
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
(
child:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
controller:
controller
.
refreshController
,
//
onRefresh: controller.onRefresh,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
ListView
.
builder
(
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
){
itemBuilder:
(
BuildContext
context
,
int
index
){
return
GestureDetector
(
return
GestureDetector
(
onTap:
(){
onTap:
(){
...
@@ -50,11 +39,11 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
...
@@ -50,11 +39,11 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
);
);
},
},
itemCount:
controller
.
discuss
.
length
,
itemCount:
controller
.
discuss
.
length
,
),
),
)
)
),
),
),
),
],
),
),
),
);
);
}
}
...
...
lib/pages/user_discuss/widgets/item.dart
浏览文件 @
bce01c8c
...
@@ -14,43 +14,23 @@ class BuildItem extends StatelessWidget {
...
@@ -14,43 +14,23 @@ class BuildItem extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Container
(
return
Container
(
color:
Colors
.
transparent
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// color: Colors.red,
margin:
const
EdgeInsets
.
all
(
10
),
// 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:
BoxDecoration
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
borderRadius:
BorderRadius
.
circular
(
8
),
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
),
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
,
),
),
child:
Column
(
children:
[
Container
(
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
// color: Colors.red,
...
...
lib/pages/user_notes/view.dart
浏览文件 @
bce01c8c
...
@@ -17,43 +17,34 @@ class _UserNotePageState extends State<UserNotePage> {
...
@@ -17,43 +17,34 @@ class _UserNotePageState extends State<UserNotePage> {
centerTitle:
true
,
centerTitle:
true
,
title:
const
Text
(
'笔记'
),
title:
const
Text
(
'笔记'
),
),
),
body:
CustomPullScrollView
(
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
,
controller:
controller
.
refreshController
,
//
onRefresh: controller.onRefresh,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
ListView
.
builder
(
child:
Container
(
// physics: const NeverScrollableScrollPhysics(),
margin:
EdgeInsets
.
all
(
10
.
w
),
// shrinkWrap: true,
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
,
itemBuilder:
(
BuildContext
context
,
int
index
){
itemBuilder:
(
BuildContext
context
,
int
index
){
return
GestureDetector
(
return
GestureDetector
(
onTap:
(){
onTap:
(){
context
.
pushNamed
(
Routes
.
noteDes
,
extra:
controller
.
notes
[
index
]);
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
,
itemCount:
controller
.
notes
.
length
,
)
),
),
),
),
),
],
)
),
),
),
),
);
);
...
...
lib/pages/user_notes/widgets/item.dart
浏览文件 @
bce01c8c
...
@@ -2,54 +2,30 @@ part of user_notes;
...
@@ -2,54 +2,30 @@ part of user_notes;
class
BuildItem
extends
StatelessWidget
{
class
BuildItem
extends
StatelessWidget
{
final
CourseModel
model
;
final
CourseModel
model
;
final
int
index
;
final
int
num
;
const
BuildItem
({
const
BuildItem
({
Key
?
key
,
Key
?
key
,
required
this
.
model
,
required
this
.
model
,
required
this
.
index
,
required
this
.
num
})
:
super
(
key:
key
);
})
:
super
(
key:
key
);
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Container
(
return
Container
(
color:
Colors
.
white
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// margin: const EdgeInsets.all(10),
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:
BoxDecoration
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
borderRadius:
BorderRadius
.
circular
(
8
),
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
),
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
,
),
),
child:
Column
(
children:
[
Container
(
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
// color: Colors.red,
...
...
lib/pages/user_wrong/view.dart
浏览文件 @
bce01c8c
...
@@ -17,35 +17,27 @@ class _UserWrongPageState extends State<UserWrongPage> {
...
@@ -17,35 +17,27 @@ class _UserWrongPageState extends State<UserWrongPage> {
centerTitle:
true
,
centerTitle:
true
,
title:
const
Text
(
'错题'
),
title:
const
Text
(
'错题'
),
),
),
body:
CustomPullScrollView
(
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
,
controller:
controller
.
refreshController
,
//
onRefresh: controller.onRefresh,
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
ListView
.
builder
(
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
){
itemBuilder:
(
BuildContext
context
,
int
index
){
return
BuildItem
(
model:
controller
.
wrongs
[
index
],
index:
index
,
num
:
controller
.
wrongs
.
length
,);
return
BuildItem
(
model:
controller
.
wrongs
[
index
],
index:
index
,
num
:
controller
.
wrongs
.
length
,);
},
},
itemCount:
controller
.
wrongs
.
length
,
itemCount:
controller
.
wrongs
.
length
,
)
),
),
),
),
)
],
),
),
),
),
);
);
...
...
lib/pages/user_wrong/widgets/item.dart
浏览文件 @
bce01c8c
...
@@ -14,41 +14,22 @@ class BuildItem extends StatelessWidget {
...
@@ -14,41 +14,22 @@ class BuildItem extends StatelessWidget {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
Container
(
return
Container
(
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// margin: const EdgeInsets.all(10),
margin:
const
EdgeInsets
.
all
(
10
),
// decoration: BoxDecoration(
decoration:
BoxDecoration
(
// borderRadius: BorderRadius.circular(8),
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
,
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
),
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
,
),
),
child:
Column
(
children:
[
Container
(
Container
(
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
// color: Colors.red,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论