Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
fc80bfa6
提交
fc80bfa6
authored
1月 20, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图书展示 使用统一自定义组件
上级
33ce5c6e
显示空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
92 行增加
和
119 行删除
+92
-119
book.dart
lib/pages/book_detail/widgets/book.dart
+2
-21
index.dart
lib/pages/book_pay/index.dart
+1
-0
item.dart
lib/pages/book_pay/widgets/item.dart
+3
-22
book.dart
lib/pages/book_shop/widgets/book.dart
+3
-22
book.dart
lib/pages/course/widgets/book.dart
+3
-16
cell.dart
lib/pages/library/widgets/cell.dart
+3
-7
item.dart
lib/pages/study_history/widgets/item.dart
+3
-5
item.dart
lib/pages/user_discuss/widgets/item.dart
+4
-4
item.dart
lib/pages/user_discuss_des/widgets/item.dart
+4
-4
item.dart
lib/pages/user_love/widgets/item.dart
+4
-5
item.dart
lib/pages/user_notes/widgets/item.dart
+4
-4
item.dart
lib/pages/user_notes_des/widgets/item.dart
+4
-4
controller.dart
lib/pages/user_wrong/controller.dart
+6
-0
view.dart
lib/pages/user_wrong/view.dart
+1
-1
item.dart
lib/pages/user_wrong/widgets/item.dart
+4
-4
book.dart
lib/widgets/book.dart
+41
-0
index.dart
lib/widgets/index.dart
+2
-0
没有找到文件。
lib/pages/book_detail/widgets/book.dart
浏览文件 @
fc80bfa6
...
@@ -27,27 +27,8 @@ class BuildBook extends StatelessWidget {
...
@@ -27,27 +27,8 @@ class BuildBook extends StatelessWidget {
margin:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
margin:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
child:
Row
(
child:
Row
(
children:
[
children:
[
Container
(
CustomCard
(
decoration:
BoxDecoration
(
url:
model
.
img
??
''
,
color:
Colors
.
cyan
,
borderRadius:
BorderRadius
.
circular
(
3
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFF707070
).
withOpacity
(
0.5
),
spreadRadius:
0
,
blurRadius:
4.5
,
offset:
const
Offset
(
0
,
0
),
// changes the position of the shadow
),
]
),
// color: Colors.white,
height:
102
,
width:
85
,
child:
Container
(
padding:
const
EdgeInsets
.
all
(
1
),
child:
CustomImage
.
network
(
url:
model
.
img
??
''
)
),
)
)
],
],
),
),
...
...
lib/pages/book_pay/index.dart
浏览文件 @
fc80bfa6
...
@@ -10,6 +10,7 @@ import 'package:get/get.dart';
...
@@ -10,6 +10,7 @@ import 'package:get/get.dart';
import
'../../models/index.dart'
;
import
'../../models/index.dart'
;
import
'../../models/shop.dart'
;
import
'../../models/shop.dart'
;
import
'../../utils/index.dart'
;
import
'../../utils/index.dart'
;
import
'../../widgets/index.dart'
;
import
'../book_shop/index.dart'
;
import
'../book_shop/index.dart'
;
import
'dart:io'
;
import
'dart:io'
;
...
...
lib/pages/book_pay/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -31,29 +31,10 @@ class BuildItem extends StatelessWidget {
...
@@ -31,29 +31,10 @@ class BuildItem extends StatelessWidget {
margin:
const
EdgeInsets
.
only
(
left:
12
,
right:
11
),
margin:
const
EdgeInsets
.
only
(
left:
12
,
right:
11
),
child:
Row
(
child:
Row
(
children:
[
children:
[
Container
(
CustomCard
(
decoration:
BoxDecoration
(
color:
Colors
.
cyan
,
borderRadius:
BorderRadius
.
circular
(
3
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFF707070
).
withOpacity
(
0.5
),
spreadRadius:
2
,
blurRadius:
5
,
offset:
const
Offset
(
3
,
0
),
// changes the position of the shadow
),
]
),
// color: Colors.white,
height:
86
,
width:
72
,
width:
72
,
child:
Container
(
height:
86
,
padding:
const
EdgeInsets
.
all
(
2
),
url:
model
.
img
??
''
,
child:
Container
(
color:
Colors
.
cyan
,
),
),
)
)
],
],
),
),
...
...
lib/pages/book_shop/widgets/book.dart
浏览文件 @
fc80bfa6
...
@@ -57,29 +57,10 @@ class BookCell extends StatelessWidget {
...
@@ -57,29 +57,10 @@ class BookCell extends StatelessWidget {
child:
Image
.
asset
(
model
.
selected
?
'assets/images/pay_check.png'
:
'assets/images/pay_uncheck.png'
),
child:
Image
.
asset
(
model
.
selected
?
'assets/images/pay_check.png'
:
'assets/images/pay_uncheck.png'
),
),
),
const
SizedBox
(
width:
12
,),
const
SizedBox
(
width:
12
,),
Container
(
CustomCard
(
decoration:
BoxDecoration
(
color:
Colors
.
cyan
,
borderRadius:
BorderRadius
.
circular
(
3
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFF707070
).
withOpacity
(
0.5
),
spreadRadius:
2
,
blurRadius:
5
,
offset:
const
Offset
(
3
,
0
),
// changes the position of the shadow
),
]
),
// color: Colors.white,
height:
86
,
width:
72
,
width:
72
,
child:
Container
(
height:
86
,
padding:
const
EdgeInsets
.
all
(
2
),
url:
model
.
img
??
''
,
child:
Container
(
color:
Colors
.
cyan
,
),
),
)
)
],
],
),
),
...
...
lib/pages/course/widgets/book.dart
浏览文件 @
fc80bfa6
...
@@ -30,22 +30,9 @@ class Book extends StatelessWidget {
...
@@ -30,22 +30,9 @@ class Book extends StatelessWidget {
Expanded
(
Expanded
(
child:
AspectRatio
(
child:
AspectRatio
(
aspectRatio:
0.85
,
aspectRatio:
0.85
,
child:
Container
(
child:
CustomCard
(
decoration:
BoxDecoration
(
url:
model
.
img
??
''
,
borderRadius:
BorderRadius
.
circular
(
3
),
)
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFF707070
).
withOpacity
(
0.5
),
offset:
const
Offset
(
0
,
0
),
blurRadius:
4.5
.
w
,
spreadRadius:
0
.
w
,
),
],
),
padding:
const
EdgeInsets
.
all
(
1
),
child:
CustomImage
.
network
(
url:
model
.
img
??
''
),
),
),
),
),
),
Gaps
.
vGaps10
,
Gaps
.
vGaps10
,
...
...
lib/pages/library/widgets/cell.dart
浏览文件 @
fc80bfa6
...
@@ -88,14 +88,10 @@ class LibraryCell extends StatelessWidget {
...
@@ -88,14 +88,10 @@ class LibraryCell extends StatelessWidget {
left:
20
,
left:
20
,
top:
0
,
top:
0
,
bottom:
18
,
bottom:
18
,
child:
Container
(
child:
CustomCard
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
3
),
color:
Colors
.
cyan
,
),
width:
100
,
width:
100
,
child:
CustomImage
.
network
(
url:
model
.
img
??
''
)
,
url:
model
.
img
??
''
,
)
,
)
),
),
],
],
)
)
...
...
lib/pages/study_history/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -67,12 +67,10 @@ class BuildDayItem extends StatelessWidget {
...
@@ -67,12 +67,10 @@ class BuildDayItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
width:
72
,
width:
72
,
height:
87
,
height:
86
,
// color: Colors.red,
url:
courseModel
.
img
??
''
,
child:
CustomImage
.
network
(
url:
courseModel
.
img
??
''
)
// Image.network(courseModel.img??''),
),
),
Expanded
(
Expanded
(
child:
Container
(
child:
Container
(
...
...
lib/pages/user_discuss/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -57,10 +57,10 @@ class BuildItem extends StatelessWidget {
...
@@ -57,10 +57,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
height:
87
,
width:
72
,
width:
73
,
height:
86
,
color:
Colors
.
cyan
,
url:
model
.
img
??
''
,
),
),
Container
(
Container
(
height:
87
,
height:
87
,
...
...
lib/pages/user_discuss_des/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -32,10 +32,10 @@ class BuildItem extends StatelessWidget {
...
@@ -32,10 +32,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
height:
87
,
width:
72
,
width:
73
,
height:
86
,
color:
Colors
.
cyan
,
url:
model
.
img
??
''
,
),
),
Container
(
Container
(
height:
87
,
height:
87
,
...
...
lib/pages/user_love/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -32,11 +32,10 @@ class BuildItem extends StatelessWidget {
...
@@ -32,11 +32,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
children:
[
children:
[
/// 左侧
/// 左侧
Container
(
CustomCard
(
width:
73
,
width:
72
,
height:
87
,
height:
86
,
color:
Colors
.
red
,
url:
model
.
img
??
''
,
child:
CustomImage
.
network
(
url:
model
.
img
??
''
),
),
),
/// 右侧
/// 右侧
Expanded
(
Expanded
(
...
...
lib/pages/user_notes/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -56,10 +56,10 @@ class BuildItem extends StatelessWidget {
...
@@ -56,10 +56,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
height:
87
,
width:
72
,
width:
73
,
height:
86
,
color:
Colors
.
cyan
,
url:
model
.
img
??
''
,
),
),
Container
(
Container
(
height:
87
,
height:
87
,
...
...
lib/pages/user_notes_des/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -32,10 +32,10 @@ class BuildItem extends StatelessWidget {
...
@@ -32,10 +32,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
height:
87
,
width:
72
,
width:
73
,
height:
86
,
color:
Colors
.
cyan
,
url:
model
.
img
??
''
,
),
),
Container
(
Container
(
height:
87
,
height:
87
,
...
...
lib/pages/user_wrong/controller.dart
浏览文件 @
fc80bfa6
...
@@ -13,6 +13,12 @@ class UserWrongController extends GetxController {
...
@@ -13,6 +13,12 @@ class UserWrongController extends GetxController {
int
_page
=
1
;
int
_page
=
1
;
bool
_noMore
=
false
;
bool
_noMore
=
false
;
@override
void
onReady
()
{
onRefresh
();
super
.
onReady
();
}
@override
@override
void
onClose
()
{
void
onClose
()
{
refreshController
.
dispose
();
refreshController
.
dispose
();
...
...
lib/pages/user_wrong/view.dart
浏览文件 @
fc80bfa6
...
@@ -19,7 +19,7 @@ class _UserWrongPageState extends State<UserWrongPage> {
...
@@ -19,7 +19,7 @@ class _UserWrongPageState extends State<UserWrongPage> {
),
),
body:
CustomPullScrollView
(
body:
CustomPullScrollView
(
controller:
controller
.
refreshController
,
controller:
controller
.
refreshController
,
onRefresh:
controller
.
onRefresh
,
//
onRefresh: controller.onRefresh,
onLoading:
controller
.
onLoading
,
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
child:
Container
(
child:
Container
(
...
...
lib/pages/user_wrong/widgets/item.dart
浏览文件 @
fc80bfa6
...
@@ -55,10 +55,10 @@ class BuildItem extends StatelessWidget {
...
@@ -55,10 +55,10 @@ class BuildItem extends StatelessWidget {
child:
Row
(
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
children:
[
C
ontainer
(
C
ustomCard
(
height:
87
,
width:
72
,
width:
73
,
height:
86
,
color:
Colors
.
cyan
,
url:
model
.
img
??
''
,
),
),
Container
(
Container
(
height:
87
,
height:
87
,
...
...
lib/widgets/book.dart
0 → 100644
浏览文件 @
fc80bfa6
part of
widgets
;
class
CustomCard
extends
StatelessWidget
{
final
String
url
;
final
double
height
;
final
double
width
;
final
BorderRadiusGeometry
?
borderRadius
;
final
List
<
BoxShadow
>?
boxShadow
;
const
CustomCard
({
super
.
key
,
required
this
.
url
,
this
.
height
=
102
,
this
.
width
=
85
,
this
.
borderRadius
,
this
.
boxShadow
,
});
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
cyan
,
borderRadius:
borderRadius
??
BorderRadius
.
circular
(
3
),
boxShadow:
boxShadow
??
[
BoxShadow
(
color:
const
Color
(
0xFF707070
).
withOpacity
(
0.5
),
spreadRadius:
0
,
blurRadius:
4.5
,
offset:
const
Offset
(
0
,
0
),
),
],
),
height:
height
,
width:
width
,
child:
Container
(
padding:
const
EdgeInsets
.
all
(
1
),
child:
CustomImage
.
network
(
url:
url
),
),
);
}
}
lib/widgets/index.dart
浏览文件 @
fc80bfa6
...
@@ -25,3 +25,4 @@ part 'button.dart';
...
@@ -25,3 +25,4 @@ part 'button.dart';
part
'pull_scroll_view.dart'
;
part
'pull_scroll_view.dart'
;
part
'tab_bar.dart'
;
part
'tab_bar.dart'
;
part
'dialog.dart'
;
part
'dialog.dart'
;
part
'book.dart'
;
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论