Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
c582e965
提交
c582e965
authored
1月 20, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正
上级
ed335851
隐藏空白字符变更
内嵌
并排
正在显示
68 个修改的文件
包含
610 行增加
和
595 行删除
+610
-595
index.dart
lib/pages/book_shop/index.dart
+1
-0
book.dart
lib/pages/book_shop/widgets/book.dart
+18
-18
count.dart
lib/pages/book_shop/widgets/count.dart
+11
-11
view.dart
lib/pages/change_phone/view.dart
+11
-11
view.dart
lib/pages/change_pwd/view.dart
+8
-8
view.dart
lib/pages/course/view.dart
+6
-6
banner.dart
lib/pages/course/widgets/banner.dart
+1
-1
book.dart
lib/pages/course/widgets/book.dart
+9
-9
view.dart
lib/pages/credit_points/view.dart
+20
-20
index.dart
lib/pages/forget_pwd/index.dart
+1
-0
view.dart
lib/pages/forget_pwd/view.dart
+5
-5
view.dart
lib/pages/library/view.dart
+10
-10
cell.dart
lib/pages/library/widgets/cell.dart
+16
-16
filter.dart
lib/pages/library/widgets/filter.dart
+10
-10
subject.dart
lib/pages/library/widgets/subject.dart
+9
-9
view.dart
lib/pages/login/view.dart
+22
-20
view.dart
lib/pages/order_evaluate/view.dart
+17
-17
index.dart
lib/pages/pay_coupon/index.dart
+1
-0
view.dart
lib/pages/pay_coupon/view.dart
+2
-2
index.dart
lib/pages/record/index.dart
+1
-0
view.dart
lib/pages/record/view.dart
+6
-6
index.dart
lib/pages/reset_pwd/index.dart
+1
-0
view.dart
lib/pages/reset_pwd/view.dart
+3
-3
index.dart
lib/pages/search/index.dart
+1
-0
view.dart
lib/pages/search/view.dart
+2
-2
history.dart
lib/pages/search/widgets/history.dart
+5
-5
home_card.dart
lib/pages/study/home_card.dart
+10
-10
index.dart
lib/pages/study/index.dart
+2
-0
index.dart
lib/pages/study_history/index.dart
+1
-0
item.dart
lib/pages/study_history/widgets/item.dart
+21
-21
view.dart
lib/pages/study_report/view.dart
+32
-32
card.dart
lib/pages/study_report/widgets/card.dart
+3
-3
index.dart
lib/pages/user_about/index.dart
+1
-0
view.dart
lib/pages/user_about/view.dart
+9
-9
view.dart
lib/pages/user_coin/view.dart
+7
-7
cell.dart
lib/pages/user_coin/widgets/cell.dart
+8
-8
view.dart
lib/pages/user_coupon/view.dart
+1
-1
item.dart
lib/pages/user_coupon/widgets/item.dart
+16
-16
view.dart
lib/pages/user_discuss/view.dart
+3
-3
item.dart
lib/pages/user_discuss/widgets/item.dart
+15
-15
view.dart
lib/pages/user_discuss_des/view.dart
+8
-8
discuss.dart
lib/pages/user_discuss_des/widgets/discuss.dart
+29
-29
item.dart
lib/pages/user_discuss_des/widgets/item.dart
+12
-12
index.dart
lib/pages/user_feedback/index.dart
+1
-0
view.dart
lib/pages/user_feedback/view.dart
+8
-8
view.dart
lib/pages/user_gender/view.dart
+19
-19
view.dart
lib/pages/user_info/view.dart
+23
-23
item.dart
lib/pages/user_love/widgets/item.dart
+15
-15
index.dart
lib/pages/user_msg/index.dart
+1
-0
item.dart
lib/pages/user_msg/widgets/item.dart
+9
-9
view.dart
lib/pages/user_nick/view.dart
+19
-19
view.dart
lib/pages/user_notes/view.dart
+4
-4
item.dart
lib/pages/user_notes/widgets/item.dart
+14
-14
view.dart
lib/pages/user_notes_des/view.dart
+6
-6
high.dart
lib/pages/user_notes_des/widgets/high.dart
+8
-8
item.dart
lib/pages/user_notes_des/widgets/item.dart
+12
-12
line.dart
lib/pages/user_notes_des/widgets/line.dart
+8
-8
note.dart
lib/pages/user_notes_des/widgets/note.dart
+15
-15
view.dart
lib/pages/user_point/view.dart
+3
-3
cell.dart
lib/pages/user_point/widgets/cell.dart
+8
-8
view.dart
lib/pages/user_security/view.dart
+12
-12
view.dart
lib/pages/user_set/view.dart
+24
-24
view.dart
lib/pages/user_wrong/view.dart
+3
-3
item.dart
lib/pages/user_wrong/widgets/item.dart
+12
-12
view.dart
lib/pages/version/view.dart
+4
-4
item.dart
lib/pages/version/widgets/item.dart
+4
-4
index.dart
lib/pages/version_des/index.dart
+1
-0
view.dart
lib/pages/version_des/view.dart
+2
-2
没有找到文件。
lib/pages/book_shop/index.dart
浏览文件 @
c582e965
...
...
@@ -7,6 +7,7 @@ import 'package:easy_refresh/easy_refresh.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter_book/utils/index.dart'
;
import
'package:flutter_book/widgets/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:flutter_slidable/flutter_slidable.dart'
;
import
'package:get/get.dart'
;
import
'package:go_router/go_router.dart'
;
...
...
lib/pages/book_shop/widgets/book.dart
浏览文件 @
c582e965
...
...
@@ -13,20 +13,20 @@ class BookCell extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
5
),
borderRadius:
BorderRadius
.
circular
(
5
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
model
.
selected
?
AppTheme
.
primary
.
withOpacity
(
0.21
):
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
spreadRadius:
0
,
blurRadius:
10
,
offset:
const
Offset
(
3
,
0
),
// changes the position of the shadow
spreadRadius:
0
.
w
,
blurRadius:
10
.
w
,
offset:
Offset
(
3
.
w
,
0
),
// changes the position of the shadow
),
],
border:
model
.
selected
?
Border
.
all
(
width:
0.5
,
color:
AppTheme
.
primary
):
null
,
border:
model
.
selected
?
Border
.
all
(
width:
0.5
.
w
,
color:
AppTheme
.
primary
):
null
,
),
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
height:
110
,
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
height:
110
.
w
,
child:
Slidable
(
endActionPane:
ActionPane
(
motion:
const
ScrollMotion
(),
...
...
@@ -47,19 +47,19 @@ class BookCell extends StatelessWidget {
children:
[
///左侧
Container
(
margin:
const
EdgeInsets
.
only
(
left:
12
,
right:
11
),
margin:
EdgeInsets
.
only
(
left:
12
.
w
,
right:
11
.
w
),
child:
Row
(
children:
[
SizedBox
(
height:
17
,
width:
17
,
height:
17
.
w
,
width:
17
.
w
,
// color: Colors.cyan,
child:
Image
.
asset
(
model
.
selected
?
'assets/images/pay_check.png'
:
'assets/images/pay_uncheck.png'
),
),
const
SizedBox
(
width:
12
,),
SizedBox
(
width:
12
.
w
,),
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
)
],
...
...
@@ -68,7 +68,7 @@ class BookCell extends StatelessWidget {
///右侧
Expanded
(
child:
Container
(
padding:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
10
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
10
.
w
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -76,12 +76,12 @@ class BookCell extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
,),
const
SizedBox
(
height:
5
,),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
11
,
color:
Colours
.
c9
)),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
,),
SizedBox
(
height:
5
.
w
,),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
Colours
.
c9
)),
],
),
Text
(
'¥
${model.vipPrice??''}
'
,
style:
const
TextStyle
(
fontSize:
14
,
fontWeight:
FontWeight
.
w500
,
color:
AppTheme
.
primary
)),
Text
(
'¥
${model.vipPrice??''}
'
,
style:
TextStyle
(
fontSize:
14
.
w
,
fontWeight:
FontWeight
.
w500
,
color:
AppTheme
.
primary
)),
],
),
),
...
...
lib/pages/book_shop/widgets/count.dart
浏览文件 @
c582e965
...
...
@@ -12,7 +12,7 @@ class BuildCounter extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
Container
(
color:
Colors
.
white
,
padding:
const
EdgeInsets
.
only
(
left:
20
,
right:
15
),
padding:
EdgeInsets
.
only
(
left:
20
.
w
,
right:
15
.
w
),
child:
Column
(
children:
[
Row
(
...
...
@@ -29,17 +29,17 @@ class BuildCounter extends StatelessWidget {
child:
Row
(
children:
[
SizedBox
(
height:
17
,
width:
17
,
height:
17
.
w
,
width:
17
.
w
,
child:
Image
.
asset
(
controller
.
all
?
'assets/images/pay_check.png'
:
'assets/images/pay_uncheck.png'
),
),
const
SizedBox
(
width:
11
),
const
Text
(
'全选'
,
style:
TextStyle
(
color:
Color
(
0xFF333333
),
fontSize:
12
,
fontWeight:
FontWeight
.
w500
)),
SizedBox
(
width:
11
.
w
),
Text
(
'全选'
,
style:
TextStyle
(
color:
const
Color
(
0xFF333333
),
fontSize:
12
.
w
,
fontWeight:
FontWeight
.
w500
)),
],
),
),
),
const
SizedBox
(
width:
15
,),
SizedBox
(
width:
15
.
w
,),
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
...
...
@@ -56,21 +56,21 @@ class BuildCounter extends StatelessWidget {
}
},
child:
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
9
),
margin:
EdgeInsets
.
symmetric
(
vertical:
9
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
),
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
color:
AppTheme
.
primary
),
// height: 35,
alignment:
Alignment
.
center
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
8
,
horizontal:
20
),
child:
Text
(
'结算(
${controller.num}
)'
,
style:
const
TextStyle
(
fontSize:
14
,
color:
Colors
.
white
,
height:
1.1
,
fontWeight:
Fonts
.
medium
),),
padding:
EdgeInsets
.
symmetric
(
vertical:
8
.
w
,
horizontal:
20
.
w
),
child:
Text
(
'结算(
${controller.num}
)'
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colors
.
white
,
height:
1.1
,
fontWeight:
Fonts
.
medium
),),
),
)
],
),
Container
(
height:
1
,
height:
1
.
w
,
color:
const
Color
(
0xFFF9F9F9
),
)
],
...
...
lib/pages/change_phone/view.dart
浏览文件 @
c582e965
...
...
@@ -19,24 +19,24 @@ class _ChangePhonePageState extends State<ChangePhonePage> {
title:
const
Text
(
'修改手机号'
),
),
body:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
15
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
15
.
w
),
child:
Column
(
children:
[
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.35
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
CustomFormInput
(
// label: 'Phone',
// required: true,
...
...
@@ -61,19 +61,19 @@ class _ChangePhonePageState extends State<ChangePhonePage> {
children:
[
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.35
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
CustomFormInput
(
// label: 'Phone',
// required: true,
...
...
@@ -93,16 +93,16 @@ class _ChangePhonePageState extends State<ChangePhonePage> {
),
),
Positioned
(
right:
10
,
right:
10
.
w
,
child:
Row
(
children:
[
Container
(
height:
20
,
width:
1
,
color:
const
Color
(
0xFFEBEBEB
),),
Container
(
height:
20
.
w
,
width:
1
.
w
,
color:
const
Color
(
0xFFEBEBEB
),),
Gaps
.
hGaps10
,
GestureDetector
(
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10
.
w
),
// color: Colors.yellow,
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
const
TextStyle
(
fontSize:
11
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
onTap:
(){
if
(
controller
.
isCounting
==
false
){
controller
.
sendCode
();
...
...
lib/pages/change_pwd/view.dart
浏览文件 @
c582e965
...
...
@@ -24,7 +24,7 @@ class _ChangePwdPageState extends State<ChangePwdPage> {
title:
Text
(
widget
.
type
==
'1'
?
'设置密码'
:
'修改密码'
),
),
body:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
top:
15
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
15
.
w
,
right:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
...
...
@@ -32,19 +32,19 @@ class _ChangePwdPageState extends State<ChangePwdPage> {
valueListenable:
controller
.
showPassword
,
builder:
(
context
,
value
,
child
)
=>
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.35
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
CustomFormInput
(
obscureText:
!
value
,
hintText:
'请输入新密码'
,
...
...
@@ -79,14 +79,14 @@ class _ChangePwdPageState extends State<ChangePwdPage> {
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.35
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
CustomFormInput
(
obscureText:
!
value
,
hintText:
'请再次输入密码'
,
...
...
@@ -112,8 +112,8 @@ class _ChangePwdPageState extends State<ChangePwdPage> {
),
),
Container
(
margin:
const
EdgeInsets
.
only
(
left:
5
,
top:
5
),
child:
const
Text
(
'密码必须是6-20个英文字母、数字或符号'
,
style:
TextStyle
(
fontSize:
10
,
color:
Colours
.
c9
),),
margin:
EdgeInsets
.
only
(
left:
5
.
w
,
top:
5
.
w
),
child:
Text
(
'密码必须是6-20个英文字母、数字或符号'
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Colours
.
c9
),),
),
Gaps
.
vGaps40
,
CustomGradientButton
(
...
...
lib/pages/course/view.dart
浏览文件 @
c582e965
...
...
@@ -43,9 +43,9 @@ class _CoursePageState extends State<CoursePage> {
// controller.logout(context);
},
child:
badges
.
Badge
(
position:
badges
.
BadgePosition
.
topEnd
(
top:
-
5
,
end:
0
),
position:
badges
.
BadgePosition
.
topEnd
(
top:
-
5
.
w
,
end:
0
),
showBadge:
controller
.
num
==
0
?
false
:
true
,
badgeContent:
Text
(
controller
.
num
.
toString
(),
style:
const
TextStyle
(
fontSize:
7
,
color:
Colors
.
white
),),
badgeContent:
Text
(
controller
.
num
.
toString
(),
style:
TextStyle
(
fontSize:
7
.
w
,
color:
Colors
.
white
),),
badgeStyle:
const
badges
.
BadgeStyle
(
badgeColor:
AppTheme
.
primary
,
shape:
badges
.
BadgeShape
.
circle
...
...
@@ -69,7 +69,7 @@ class _CoursePageState extends State<CoursePage> {
controller
.
ads
.
isNotEmpty
?
Container
(
color:
Colors
.
transparent
,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
BuildBanner
(
items:
controller
.
ads
),
):
const
SizedBox
(),
Expanded
(
...
...
@@ -78,11 +78,11 @@ class _CoursePageState extends State<CoursePage> {
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
GridView
.
builder
(
padding:
const
EdgeInsets
.
only
(
left:
13
,
top:
10
),
gridDelegate:
const
SliverGridDelegateWithFixedCrossAxisCount
(
padding:
EdgeInsets
.
only
(
left:
13
.
w
,
top:
10
.
w
),
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
2
,
crossAxisSpacing:
0
,
mainAxisSpacing:
10
,
mainAxisSpacing:
10
.
w
,
childAspectRatio:
0.85
),
itemBuilder:
(
BuildContext
context
,
int
index
)
{
...
...
lib/pages/course/widgets/banner.dart
浏览文件 @
c582e965
...
...
@@ -29,7 +29,7 @@ class BuildBanner extends StatelessWidget {
child:
Container
(
width:
double
.
infinity
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Color
.
fromRGBO
(
random
.
nextInt
(
256
),
// Red
random
.
nextInt
(
256
),
// Green
...
...
lib/pages/course/widgets/book.dart
浏览文件 @
c582e965
...
...
@@ -11,19 +11,19 @@ class Book extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
margin:
const
EdgeInsets
.
only
(
right:
13
),
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
bottom:
13.5
,
top:
16.5
),
margin:
EdgeInsets
.
only
(
right:
13
.
w
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
bottom:
13.5
.
w
,
top:
16.5
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
...
...
@@ -41,8 +41,8 @@ class Book extends StatelessWidget {
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c3
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.3
,
color:
Colours
.
c6
,),
textAlign:
TextAlign
.
left
,),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.3
,
color:
Colours
.
c6
,),
textAlign:
TextAlign
.
left
,),
],
),
),
...
...
@@ -52,10 +52,10 @@ class Book extends StatelessWidget {
children:
[
Container
(
color:
model
.
type
==
0
||
model
.
type
==
1
?
Colours
.
cEF
:
AppTheme
.
primary
.
withOpacity
(
0.1
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
3.5
),
child:
Text
(
model
.
typeName
,
style:
TextStyle
(
fontSize:
11
,
height:
1.3
,
color:
model
.
type
==
0
||
model
.
type
==
1
?
Colours
.
c9
:
AppTheme
.
primary
),),
padding:
EdgeInsets
.
symmetric
(
horizontal:
3.5
.
w
),
child:
Text
(
model
.
typeName
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.3
,
color:
model
.
type
==
0
||
model
.
type
==
1
?
Colours
.
c9
:
AppTheme
.
primary
),),
),
model
.
type
==
2
?
const
Text
(
'继续学习'
,
style:
TextStyle
(
fontSize:
11
,
height:
1.3
,
color:
AppTheme
.
primary
,
fontWeight:
Fonts
.
medium
),):
const
SizedBox
()
model
.
type
==
2
?
Text
(
'继续学习'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.3
,
color:
AppTheme
.
primary
,
fontWeight:
Fonts
.
medium
),):
const
SizedBox
()
],
)
],
...
...
lib/pages/credit_points/view.dart
浏览文件 @
c582e965
...
...
@@ -20,22 +20,22 @@ class CreditPointsPage extends StatelessWidget {
// 积分卡片
Container
(
color:
AppTheme
.
primary
.
withOpacity
(
0.02
),
padding:
const
EdgeInsets
.
all
(
10
),
padding:
EdgeInsets
.
all
(
10
.
w
),
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
17
,
top:
18
,
bottom:
24
,
right:
17
),
padding:
EdgeInsets
.
only
(
left:
17
.
w
,
top:
18
.
w
,
bottom:
24
.
w
,
right:
17
.
w
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
0
,
3
),
blurRadius:
4
,
offset:
Offset
(
0
,
3
.
w
),
blurRadius:
4
.
w
,
spreadRadius:
0
,
),
],
borderRadius:
BorderRadius
.
circular
(
8
)
),
height:
175
,
height:
175
.
w
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -52,16 +52,16 @@ class CreditPointsPage extends StatelessWidget {
children:
[
Expanded
(
child:
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cE7
,
),
),
Gaps
.
hGaps15
,
const
Text
(
'积分支付不能超过每笔订单的20%'
,
style:
TextStyle
(
fontSize:
12
,
height:
1.4
,
color:
Colours
.
c9
),),
Text
(
'积分支付不能超过每笔订单的20%'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
color:
Colours
.
c9
),),
Gaps
.
hGaps15
,
Expanded
(
child:
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cE7
,
),
),
...
...
@@ -74,26 +74,26 @@ class CreditPointsPage extends StatelessWidget {
// 使用积分
Container
(
// height: 105,
padding:
const
EdgeInsets
.
all
(
20
),
padding:
EdgeInsets
.
all
(
20
.
w
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
0
,
3
),
blurRadius:
4
,
offset:
Offset
(
0
,
3
.
w
),
blurRadius:
4
.
w
,
spreadRadius:
0
,
),
],
borderRadius:
BorderRadius
.
circular
(
8
)
borderRadius:
BorderRadius
.
circular
(
8
.
w
)
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
const
Text
(
'可用积分'
,
style:
TextStyle
(
fontSize:
16
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
'可用积分'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Gaps
.
vGaps10
,
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cE7
,
// color: Colors.red,
),
...
...
@@ -101,16 +101,16 @@ class CreditPointsPage extends StatelessWidget {
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
RichText
(
text:
const
TextSpan
(
RichText
(
text:
TextSpan
(
children:
[
TextSpan
(
text:
'抵扣'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
13
,
height:
1.4
)),
TextSpan
(
text:
'¥9.90'
,
style:
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
13
,
height:
1.4
,
fontWeight:
Fonts
.
medium
)),
TextSpan
(
text:
'使用9900积分'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
13
,
height:
1.4
)),
TextSpan
(
text:
'抵扣'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
13
.
w
,
height:
1.4
)),
TextSpan
(
text:
'¥9.90'
,
style:
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
13
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
)),
TextSpan
(
text:
'使用9900积分'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
13
.
w
,
height:
1.4
)),
]
)),
SizedBox
(
width:
15
,
height:
15
,
width:
15
.
w
,
height:
15
.
w
,
child:
Image
.
asset
(
'assets/images/uncheck.png'
,
),
...
...
lib/pages/forget_pwd/index.dart
浏览文件 @
c582e965
...
...
@@ -5,6 +5,7 @@ import 'dart:async';
import
'package:flutter/foundation.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'package:go_router/go_router.dart'
;
...
...
lib/pages/forget_pwd/view.dart
浏览文件 @
c582e965
...
...
@@ -19,7 +19,7 @@ class _ForgetPwdPageState extends State<ForgetPwdPage> {
title:
const
Text
(
'忘记密码'
),
),
body:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
15
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
15
.
w
),
child:
Column
(
children:
[
CustomFormInput
(
...
...
@@ -47,16 +47,16 @@ class _ForgetPwdPageState extends State<ForgetPwdPage> {
},
),
Positioned
(
right:
10
,
right:
10
.
w
,
child:
Row
(
children:
[
Container
(
height:
20
,
width:
1
,
color:
const
Color
(
0xFFEBEBEB
),),
Container
(
height:
20
.
w
,
width:
1
.
w
,
color:
const
Color
(
0xFFEBEBEB
),),
Gaps
.
hGaps10
,
GestureDetector
(
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10
.
w
),
color:
Colors
.
yellow
,
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
const
TextStyle
(
fontSize:
11
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
onTap:
(){
if
(
controller
.
isCounting
==
false
){
controller
.
sendCode
();
...
...
lib/pages/library/view.dart
浏览文件 @
c582e965
...
...
@@ -36,7 +36,7 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
width:
double
.
infinity
,
child:
Container
(
decoration:
BoxDecoration
(
border:
Border
.
all
(
width:
0.5
,
color:
Colours
.
cE5
)
border:
Border
.
all
(
width:
0.5
.
w
,
color:
Colours
.
cE5
)
),
child:
Row
(
children:
[
...
...
@@ -46,9 +46,9 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
border:
const
Border
(
bottom:
BorderSide
(
color:
Colors
.
transparent
,
width:
0.0
)),
// 将指示器的底边框颜色设置为透明
color:
const
Color
(
0xFFC02D55
).
withOpacity
(
0.08
)
),
labelStyle:
const
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
labelStyle:
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
unselectedLabelColor:
Colours
.
c9
,
unselectedLabelStyle:
const
TextStyle
(
color:
Colours
.
c9
,
fontSize:
14
,
height:
1.5
),
unselectedLabelStyle:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
14
.
w
,
height:
1.5
),
controller:
controller
.
tabController
,
isScrollable:
true
,
tabs:
controller
.
categories
.
map
((
model
){
...
...
@@ -74,16 +74,16 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
// );
},
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
alignment:
Alignment
.
center
,
// color: Colors.cyan,
height:
38
,
height:
38
.
w
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
Container
(
width:
12
,
height:
12
,
width:
12
.
w
,
height:
12
.
w
,
// color: Colors.red,
alignment:
Alignment
.
center
,
child:
Image
.
asset
(
...
...
@@ -91,7 +91,7 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
),
),
Gaps
.
hGaps5
,
const
Text
(
'筛选'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
14
,
height:
1.5
),)
Text
(
'筛选'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
14
.
w
,
height:
1.5
),)
],
),
// width: 75,
...
...
@@ -102,7 +102,7 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
),
),
Container
(
height:
43
,
height:
43
.
w
,
color:
Colours
.
cF9
,
child:
ListView
.
builder
(
scrollDirection:
Axis
.
horizontal
,
...
...
@@ -119,7 +119,7 @@ class _LibraryPageState extends State<LibraryPage> with AutomaticKeepAliveClient
),
Container
(
color:
Colors
.
transparent
,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
BuildBanner
(
items:
controller
.
ads
,),
),
Expanded
(
...
...
lib/pages/library/widgets/cell.dart
浏览文件 @
c582e965
...
...
@@ -12,23 +12,23 @@ class LibraryCell extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
padding:
const
EdgeInsets
.
only
(
top:
10
),
height:
150
,
padding:
EdgeInsets
.
only
(
top:
10
.
w
),
height:
150
.
w
,
// color: Colors.red,
child:
Stack
(
children:
[
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
top:
10
,
bottom:
20
),
margin:
const
EdgeInsets
.
only
(
top:
15
,
left:
10
,
right:
10
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
,
bottom:
20
.
w
),
margin:
EdgeInsets
.
only
(
top:
15
.
w
,
left:
10
.
w
,
right:
10
.
w
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
// 阴影颜色
spreadRadius:
2
,
// 阴影扩散半径
blurRadius:
5
,
// 阴影模糊半径
offset:
const
Offset
(
0
,
2
),
// 阴影偏移
spreadRadius:
2
.
w
,
// 阴影扩散半径
blurRadius:
5
.
w
,
// 阴影模糊半径
offset:
Offset
(
0
,
2
.
w
),
// 阴影偏移
),
],
...
...
@@ -37,14 +37,14 @@ class LibraryCell extends StatelessWidget {
children:
[
/// 左侧
Container
(
width:
100
,
height:
120
,
width:
100
.
w
,
height:
120
.
w
,
color:
Colors
.
red
,
),
/// 右侧
Expanded
(
child:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
),
// color: Colors.red,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -52,21 +52,21 @@ class LibraryCell extends StatelessWidget {
mainAxisSize:
MainAxisSize
.
max
,
children:
[
// SizedBox(height: 10,),
Text
(
model
.
bookName
??
''
,
overflow:
TextOverflow
.
ellipsis
,
maxLines:
2
,
style:
const
TextStyle
(
fontSize:
14
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
Text
(
model
.
bookName
??
''
,
overflow:
TextOverflow
.
ellipsis
,
maxLines:
2
,
style:
TextStyle
(
fontSize:
14
.
w
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
// const SizedBox(height: 4,),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
11
,
color:
Colours
.
c9
,
height:
1.5
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
Row
(
children:
[
Text
(
'
${model.readNum.toString()}
人读过'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
Colours
.
cC7
)),
Text
(
'
${model.readNum.toString()}
人读过'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
Colours
.
cC7
)),
Gaps
.
hGaps5
,
GestureDetector
(
onTap:
onTap
,
child:
SizedBox
(
width:
20
,
height:
20
,
width:
20
.
w
,
height:
20
.
w
,
// color: Colors.yellow,
child:
Image
.
asset
(
model
.
isCollection
==
0
?
'assets/images/unlove.png'
:
'assets/images/love.png'
,
...
...
lib/pages/library/widgets/filter.dart
浏览文件 @
c582e965
...
...
@@ -33,7 +33,7 @@ class _FilterPageState extends State<FilterPage> {
Container
(
color:
Colors
.
white
,
width:
double
.
infinity
,
padding:
EdgeInsets
.
only
(
bottom:
10
),
padding:
EdgeInsets
.
only
(
bottom:
10
.
w
),
child:
Column
(
children:
[
Column
(
...
...
@@ -50,7 +50,7 @@ class _FilterPageState extends State<FilterPage> {
),
Container
(
padding:
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
30
,
bottom:
10
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
30
.
w
,
bottom:
10
.
w
),
color:
Colors
.
white
,
// margin: const EdgeInsets.symmetric(horizontal: 15),
child:
Row
(
...
...
@@ -61,17 +61,17 @@ class _FilterPageState extends State<FilterPage> {
onTap:
widget
.
resetTap
,
child:
Container
(
alignment:
Alignment
.
center
,
height:
35
,
height:
35
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
),
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
border:
Border
.
all
(
width:
0.5
,
width:
0.5
.
w
,
color:
Colours
.
c9
),
// color: Colours.cE0.withOpacity(0.5),
),
// padding: EdgeInsets.symmetric(vertical: 8),
child:
const
Text
(
'重置'
,
style:
TextStyle
(
fontSize:
13
,
color:
Colours
.
c9
,
height:
1.5
),),
child:
Text
(
'重置'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
),
),
),
...
...
@@ -81,13 +81,13 @@ class _FilterPageState extends State<FilterPage> {
onTap:
widget
.
sureTap
,
child:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
),
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
color:
AppTheme
.
primary
.
withOpacity
(
0.1
)
),
height:
35
,
height:
35
.
w
,
alignment:
Alignment
.
center
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
8
),
child:
const
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
13
,
color:
AppTheme
.
primary
,
height:
1.5
),),
padding:
EdgeInsets
.
symmetric
(
vertical:
8
.
w
),
child:
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
AppTheme
.
primary
,
height:
1.5
),),
),
),
)
...
...
lib/pages/library/widgets/subject.dart
浏览文件 @
c582e965
...
...
@@ -11,29 +11,29 @@ class BuildLabelWidget extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
),
color:
Colors
.
transparent
,
width:
65
,
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
10
),
width:
65
.
w
,
padding:
EdgeInsets
.
only
(
top:
10
.
w
,
bottom:
10
.
w
),
child:
Container
(
// padding: EdgeInsets.all(8),
alignment:
Alignment
.
center
,
padding:
const
EdgeInsets
.
only
(
left:
8
,
right:
8
),
height:
23
,
padding:
EdgeInsets
.
only
(
left:
8
.
w
,
right:
8
.
w
),
height:
23
.
w
,
decoration:
BoxDecoration
(
borderRadius:
const
BorderRadius
.
all
(
Radius
.
circular
(
12.5
)),
border:
model
.
selected
?
Border
.
all
(
color:
AppTheme
.
primary
,
width:
0.5
,
style:
BorderStyle
.
solid
):
null
,
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
12.5
.
w
)),
border:
model
.
selected
?
Border
.
all
(
color:
AppTheme
.
primary
,
width:
0.5
.
w
,
style:
BorderStyle
.
solid
):
null
,
color:
Colors
.
white
,
boxShadow:
model
.
selected
?[
BoxShadow
(
color:
AppTheme
.
primary
.
withOpacity
(
0.3
),
offset:
const
Offset
(
0
,
1
),
offset:
Offset
(
0
,
1
.
w
),
blurRadius:
2
.
w
,
spreadRadius:
0
.
w
,
),
]:
null
,
),
child:
Text
(
model
.
name
??
''
,
style:
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
model
.
selected
?
AppTheme
.
primary
:
Colours
.
c9
,
fontWeight:
Fonts
.
medium
),)
child:
Text
(
model
.
name
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
model
.
selected
?
AppTheme
.
primary
:
Colours
.
c9
,
fontWeight:
Fonts
.
medium
),)
),
);
}
...
...
lib/pages/login/view.dart
浏览文件 @
c582e965
...
...
@@ -33,14 +33,16 @@ class _LoginPageState extends State<LoginPage> {
children:
[
Image
.
asset
(
'assets/images/login_bg.png'
,
fit:
BoxFit
.
contain
,
width:
double
.
infinity
,
),
SafeArea
(
top:
false
,
minimum:
EdgeInsets
.
all
(
AppTheme
.
margin
).
copyWith
(
// top:Screen.statusBar,
left:
25
,
right:
25
,
bottom:
25
left:
25
.
w
,
right:
25
.
w
,
bottom:
25
.
w
),
child:
Column
(
children:
[
...
...
@@ -61,16 +63,16 @@ class _LoginPageState extends State<LoginPage> {
// crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
const
SizedBox
(
height:
120
,),
SizedBox
(
height:
120
.
w
,),
Container
(
width:
180
,
height:
50
,
width:
180
.
w
,
height:
50
.
w
,
// color: Colors.cyan,
child:
Image
.
asset
(
'assets/images/zijing_icon.png'
,
),
),
const
SizedBox
(
height:
66
),
SizedBox
(
height:
66
.
w
),
//
CustomFormInput
(
// label: 'Phone',
...
...
@@ -112,16 +114,16 @@ class _LoginPageState extends State<LoginPage> {
controller:
controller
.
codeInput
,
),
Positioned
(
right:
10
,
right:
10
.
w
,
child:
Row
(
children:
[
Container
(
height:
20
,
width:
1
,
color:
const
Color
(
0xFFEBEBEB
),),
Container
(
height:
20
.
w
,
width:
1
,
color:
const
Color
(
0xFFEBEBEB
),),
Gaps
.
hGaps10
,
GestureDetector
(
child:
Container
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
10
.
w
),
// color: Colors.yellow,
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
const
TextStyle
(
fontSize:
11
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
child:
Text
(
controller
.
isCounting
?
'
${controller.countDown}
'
:
'获取验证码'
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
AppTheme
.
primary
,
height:
1.4
),)),
onTap:
(){
if
(
controller
.
isCounting
==
false
){
controller
.
sendCode
();
...
...
@@ -134,32 +136,32 @@ class _LoginPageState extends State<LoginPage> {
],
),
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
8.5
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
8.5
.
w
),
alignment:
Alignment
.
centerLeft
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
controller
.
loginType
==
0
?
GestureDetector
(
child:
const
Text
(
'验证码登录'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.3
,
color:
Colours
.
c6
),),
child:
Text
(
'验证码登录'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.3
,
color:
Colours
.
c6
),),
onTap:
(){
controller
.
updateLoginType
(
1
);
},
):
GestureDetector
(
child:
const
Text
(
'密码登录'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.3
,
color:
Colours
.
c6
),),
child:
Text
(
'密码登录'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.3
,
color:
Colours
.
c6
),),
onTap:
(){
controller
.
updateLoginType
(
0
);
},
),
controller
.
loginType
==
0
?
GestureDetector
(
child:
const
Text
(
'忘记密码'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.3
,
color:
Colours
.
cBlue
),),
child:
Text
(
'忘记密码'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.3
,
color:
Colours
.
cBlue
),),
onTap:
(){
context
.
pushNamed
(
Routes
.
forgetPwd
);
},
):
const
Text
(
'*登录后将自动完成注册'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.3
,
color:
Colours
.
c6
),),
):
Text
(
'*登录后将自动完成注册'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.3
,
color:
Colours
.
c6
),),
],
)
),
const
SizedBox
(
height:
30
,),
SizedBox
(
height:
30
.
w
,),
CustomGradientButton
(
text:
'立即登录'
,
isEnabled:
controller
.
enable
,
...
...
@@ -196,18 +198,18 @@ class _LoginPageState extends State<LoginPage> {
),
),
Gaps
.
hGaps5
,
const
Text
(
'我已阅读并同意'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
)),
Text
(
'我已阅读并同意'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
.
w
)),
],
),
),
GestureDetector
(
child:
const
Text
(
'《用户协议》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
10
)),
child:
Text
(
'《用户协议》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
10
.
w
)),
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
},
),
GestureDetector
(
child:
const
Text
(
'《隐私政策》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
10
)),
child:
Text
(
'《隐私政策》'
,
style:
TextStyle
(
color:
Colours
.
cBlue
,
fontSize:
10
.
w
)),
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
},
...
...
lib/pages/order_evaluate/view.dart
浏览文件 @
c582e965
...
...
@@ -20,47 +20,47 @@ class _OrderEvaluatePageState extends State<OrderEvaluatePage> {
body:
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
// 图书容器
Container
(
color:
Colours
.
cF8
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
11
,
vertical:
12
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
11
.
w
,
vertical:
12
.
w
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
width:
71
,
height:
86
,
width:
71
.
w
,
height:
86
.
w
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'一想到还有95%的问题留给人类,我就放'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
,)
Text
(
'一想到还有95%的问题留给人类,我就放'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
,)
],
),
),
// 评价容器
Container
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
15
),
padding:
EdgeInsets
.
symmetric
(
vertical:
15
.
w
),
width:
double
.
infinity
,
height:
160
,
height:
160
.
w
,
color:
Colors
.
white
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -69,7 +69,7 @@ class _OrderEvaluatePageState extends State<OrderEvaluatePage> {
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
),
child:
const
Text
(
'评分'
),
),
Gaps
.
hGaps20
,
...
...
@@ -78,11 +78,11 @@ class _OrderEvaluatePageState extends State<OrderEvaluatePage> {
child:
CustomRating
(
max:
5
,
score:
0
,
star:
const
Star
(
star:
Star
(
fat:
0.5
,
progress:
7
,
fillColor:
AppTheme
.
primary
,
size:
16
,
size:
16
.
w
,
emptyColor:
Colours
.
cE2
,
),
onRating:
(
double
)
{},
),
...
...
@@ -91,14 +91,14 @@ class _OrderEvaluatePageState extends State<OrderEvaluatePage> {
),
Container
(
// color: Colors.red,
child:
const
CustomInput
(
child:
CustomInput
(
decoration:
InputDecoration
(
focusedBorder:
InputBorder
.
none
,
border:
InputBorder
.
none
,
enabledBorder:
InputBorder
.
none
,
errorBorder:
InputBorder
.
none
,
fillColor:
Colors
.
white
,
hintStyle:
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c6
)
hintStyle:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c6
)
),
maxLines:
5
,
hintText:
'请简要描述'
,
...
...
@@ -113,9 +113,9 @@ class _OrderEvaluatePageState extends State<OrderEvaluatePage> {
),
),
),
const
SizedBox
(
height:
50
,),
SizedBox
(
height:
50
.
w
,),
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
CustomGradientButton
(
text:
'提交评价'
,
isEnabled:
false
,
...
...
lib/pages/pay_coupon/index.dart
浏览文件 @
c582e965
...
...
@@ -3,6 +3,7 @@ library pay_coupon;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/pages/user_coupon/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'../../theme.dart'
;
...
...
lib/pages/pay_coupon/view.dart
浏览文件 @
c582e965
...
...
@@ -24,9 +24,9 @@ class _PayCouponPageState extends State<PayCouponPage> {
TabBar
(
labelColor:
AppTheme
.
primary
,
// isScrollable: true,
labelStyle:
const
TextStyle
(
fontSize:
15
,
height:
1.4
,
fontWeight:
Fonts
.
medium
),
labelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
),
unselectedLabelColor:
Colours
.
c9
,
unselectedLabelStyle:
const
TextStyle
(
fontSize:
15
,
height:
1.4
),
unselectedLabelStyle:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
),
indicatorSize:
TabBarIndicatorSize
.
label
,
indicatorColor:
AppTheme
.
primary
,
tabs:
controller
.
tabs
,
...
...
lib/pages/record/index.dart
浏览文件 @
c582e965
...
...
@@ -4,6 +4,7 @@ library record;
import
'dart:io'
;
import
'package:audio_session/audio_session.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:flutter_sound/flutter_sound.dart'
;
import
'package:flutter_sound/public/flutter_sound_player.dart'
;
import
'package:flutter_sound/public/flutter_sound_recorder.dart'
;
...
...
lib/pages/record/view.dart
浏览文件 @
c582e965
...
...
@@ -42,9 +42,9 @@ class _RecordPageState extends State<RecordPage> {
body:
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
all
(
3
),
padding:
const
EdgeInsets
.
all
(
3
),
height:
80
,
margin:
EdgeInsets
.
all
(
3
.
w
),
padding:
EdgeInsets
.
all
(
3
.
w
),
height:
80
.
w
,
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
...
...
@@ -61,15 +61,15 @@ class _RecordPageState extends State<RecordPage> {
child:
Text
(
_mRecorder
!.
isRecording
?
'stop'
:
'Record'
)
),
SizedBox
(
width:
20
,
width:
20
.
w
,
),
Text
(
_mRecorder
!.
isRecording
?
'Recording in progress'
:
'Record is stopped'
)
],
),
),
Container
(
margin:
const
EdgeInsets
.
all
(
3
),
padding:
const
EdgeInsets
.
all
(
3
),
margin:
EdgeInsets
.
all
(
3
.
w
),
padding:
EdgeInsets
.
all
(
3
.
w
),
height:
80
,
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
...
...
lib/pages/reset_pwd/index.dart
浏览文件 @
c582e965
library
reset_pwd
;
import
'package:flutter_book/utils/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'package:flutter/material.dart'
;
...
...
lib/pages/reset_pwd/view.dart
浏览文件 @
c582e965
...
...
@@ -25,7 +25,7 @@ class _ResetPwdPageState extends State<ResetPwdPage> {
title:
const
Text
(
'重置密码'
),
),
body:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
top:
15
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
15
.
w
,
right:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
...
...
@@ -67,8 +67,8 @@ class _ResetPwdPageState extends State<ResetPwdPage> {
),
),
Container
(
margin:
const
EdgeInsets
.
only
(
left:
5
,
top:
5
),
child:
const
Text
(
'密码必须是6-20个英文字母、数字或符号'
,
style:
TextStyle
(
fontSize:
10
,
color:
Colours
.
c9
),),
margin:
EdgeInsets
.
only
(
left:
5
.
w
,
top:
5
.
w
),
child:
Text
(
'密码必须是6-20个英文字母、数字或符号'
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Colours
.
c9
),),
),
Gaps
.
vGaps40
,
CustomGradientButton
(
...
...
lib/pages/search/index.dart
浏览文件 @
c582e965
...
...
@@ -3,6 +3,7 @@ library search;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/widgets/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'package:get/get_state_manager/src/simple/get_controllers.dart'
;
import
'package:go_router/go_router.dart'
;
...
...
lib/pages/search/view.dart
浏览文件 @
c582e965
...
...
@@ -36,8 +36,8 @@ class _SearchPageState extends State<SearchPage> {
context
.
pop
();
},
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
top:
10
,
bottom:
10
),
child:
const
Text
(
'取消'
,
style:
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c3
),),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
,
bottom:
10
.
w
),
child:
Text
(
'取消'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
// color: Colors.red,
),
)
...
...
lib/pages/search/widgets/history.dart
浏览文件 @
c582e965
...
...
@@ -17,20 +17,20 @@ class _BuildHistoryState extends State<BuildHistory> {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
13
,
top:
18
),
margin:
EdgeInsets
.
only
(
left:
13
.
w
,
top:
18
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
const
Text
(
'搜索历史'
,
style:
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),),
Text
(
'搜索历史'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),),
GestureDetector
(
onTap:
(){
widget
.
controller
.
clear
();
},
child:
Container
(
padding:
const
EdgeInsets
.
all
(
10
),
padding:
EdgeInsets
.
all
(
10
.
w
),
// width: 10,
// height: 10,
// color: Colors.cyan,
...
...
@@ -42,8 +42,8 @@ class _BuildHistoryState extends State<BuildHistory> {
],
),
Wrap
(
spacing:
10
,
runSpacing:
10
,
spacing:
10
.
w
,
runSpacing:
10
.
w
,
alignment:
WrapAlignment
.
start
,
runAlignment:
WrapAlignment
.
start
,
children:
_buildItem
(
widget
.
controller
.
records
),
...
...
lib/pages/study/home_card.dart
浏览文件 @
c582e965
...
...
@@ -19,7 +19,7 @@ class HomeCard extends StatelessWidget {
mainAxisSize:
MainAxisSize
.
min
,
children:
[
Container
(
height:
40
,
height:
40
.
w
,
color:
Colors
.
red
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -28,10 +28,10 @@ class HomeCard extends StatelessWidget {
Row
(
children:
[
const
Text
(
'查看全部'
),
SizedBox
(
width:
10
,),
SizedBox
(
width:
10
.
w
,),
Container
(
height:
10
,
width:
4
,
height:
10
.
w
,
width:
4
.
w
,
color:
Colors
.
cyan
,
)
],
...
...
@@ -40,27 +40,27 @@ class HomeCard extends StatelessWidget {
),
),
Container
(
margin:
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
color:
Colors
.
blueAccent
,
// color: Colors.cyan,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
height:
160
,
width:
100
,
height:
160
.
w
,
width:
100
.
w
,
color:
Colors
.
cyan
,
),
Expanded
(
child:
Container
(
color:
Colors
.
red
,
margin:
EdgeInsets
.
all
(
10
),
child:
const
Column
(
margin:
EdgeInsets
.
all
(
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
// mainAxisAlignment: MainAxisAlignment.start,
children:
[
Text
(
'名称'
,
textAlign:
TextAlign
.
start
,),
SizedBox
(
height:
20
,),
SizedBox
(
height:
20
.
w
,),
Text
(
'描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述描述'
,
maxLines:
3
,
...
...
lib/pages/study/index.dart
浏览文件 @
c582e965
...
...
@@ -3,5 +3,6 @@ library study;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
part
'home_card.dart'
;
\ No newline at end of file
lib/pages/study_history/index.dart
浏览文件 @
c582e965
...
...
@@ -5,6 +5,7 @@ library study_history;
import
'package:easy_refresh/easy_refresh.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/apis/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'../../models/index.dart'
;
...
...
lib/pages/study_history/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -10,14 +10,14 @@ class BuildDayItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
top:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
,
right:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
1
,
3
),
blurRadius:
10
,
offset:
Offset
(
1
,
3
.
w
),
blurRadius:
10
.
w
,
spreadRadius:
0
,
),
],
...
...
@@ -27,17 +27,17 @@ class BuildDayItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
),
decoration:
const
BoxDecoration
(
margin:
EdgeInsets
.
only
(
left:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8.0
),
topRight:
Radius
.
circular
(
8.0
),
topLeft:
Radius
.
circular
(
8.0
.
w
),
topRight:
Radius
.
circular
(
8.0
.
w
),
),
// color: Colors.cyan,
),
height:
32
,
height:
32
.
w
,
alignment:
Alignment
.
centerLeft
,
child:
Text
(
historyModel
.
time
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
Colours
.
c6
),),
child:
Text
(
historyModel
.
time
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.4
,
color:
Colours
.
c6
),),
),
ListView
.
builder
(
shrinkWrap:
true
,
...
...
@@ -54,28 +54,28 @@ class BuildDayItem extends StatelessWidget {
Widget
_buildItem
(
CourseModel
courseModel
){
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
),
child:
Column
(
children:
[
Container
(
color:
Colours
.
cF0
,
height:
0.5
,
height:
0.5
.
w
,
),
Container
(
margin:
const
EdgeInsets
.
only
(
top:
11.5
,
bottom:
14.5
),
margin:
EdgeInsets
.
only
(
top:
11.5
.
w
,
bottom:
14.5
.
w
),
// color: Colors.yellow,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
courseModel
.
img
??
''
,
),
Expanded
(
child:
Container
(
// color: Colors.green,
padding:
const
EdgeInsets
.
only
(
top:
2.5
,
left:
13
),
padding:
EdgeInsets
.
only
(
top:
2.5
.
w
,
left:
13
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
...
...
@@ -83,9 +83,9 @@ class BuildDayItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
courseModel
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
Text
(
courseModel
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
Gaps
.
vGaps5
,
Text
(
courseModel
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.4
,
color:
Colours
.
c6
),),
Text
(
courseModel
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
color:
Colours
.
c6
),),
],
),
Gaps
.
vGaps25
,
...
...
@@ -94,11 +94,11 @@ class BuildDayItem extends StatelessWidget {
children:
[
Container
(
color:
AppTheme
.
primary
.
withOpacity
(
0.1
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
3.5
),
child:
Text
(
courseModel
.
typeName
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.3
,
color:
AppTheme
.
primary
),),
padding:
EdgeInsets
.
symmetric
(
horizontal:
3.5
.
w
),
child:
Text
(
courseModel
.
typeName
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.3
,
color:
AppTheme
.
primary
),),
),
// Spacer(),
Text
(
'上次读到:
${courseModel.lastChapter}
'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.3
,
color:
Colours
.
c6
),)
Text
(
'上次读到:
${courseModel.lastChapter}
'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.3
,
color:
Colours
.
c6
),)
],
)
],
...
...
lib/pages/study_report/view.dart
浏览文件 @
c582e965
...
...
@@ -18,7 +18,7 @@ class _StudyReportPageState extends State<StudyReportPage> {
title:
const
Text
(
'学习报告'
),
),
body:
Container
(
margin:
EdgeInsets
.
only
(
left:
10
,
top:
10
,
bottom:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
,
bottom:
10
.
w
,
right:
10
.
w
),
child:
SingleChildScrollView
(
child:
Column
(
children:
[
...
...
@@ -38,31 +38,31 @@ class _StudyReportPageState extends State<StudyReportPage> {
child:
Column
(
children:
[
Container
(
padding:
EdgeInsets
.
only
(
left:
15
,
top:
15
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
top:
15
.
w
,
bottom:
15
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
yellow
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
1
,
3
),
blurRadius:
10
,
offset:
Offset
(
1
,
3
.
w
),
blurRadius:
10
.
w
,
spreadRadius:
0
,
),
],
),
height:
220
,
height:
220
.
w
,
child:
Column
(
children:
[
Row
(
children:
[
Container
(
width:
26
,
height:
26
,
width:
26
.
w
,
height:
26
.
w
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'笔记'
,
style:
TextStyle
(
fontSize:
16
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
Text
(
'笔记'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
],
)
...
...
@@ -71,31 +71,31 @@ class _StudyReportPageState extends State<StudyReportPage> {
),
Gaps
.
vGaps10
,
Container
(
padding:
EdgeInsets
.
only
(
left:
15
,
top:
15
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
top:
15
.
w
,
bottom:
15
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
red
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
1
,
3
),
blurRadius:
10
,
offset:
Offset
(
1
,
3
.
w
),
blurRadius:
10
.
w
,
spreadRadius:
0
,
),
],
),
height:
110
,
height:
110
.
w
,
child:
Column
(
children:
[
Row
(
children:
[
Container
(
width:
26
,
height:
26
,
width:
26
.
w
,
height:
26
.
w
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'距离连续学习'
,
style:
TextStyle
(
fontSize:
16
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
Text
(
'距离连续学习'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
],
)
...
...
@@ -111,16 +111,16 @@ class _StudyReportPageState extends State<StudyReportPage> {
child:
Column
(
children:
[
Container
(
padding:
EdgeInsets
.
only
(
left:
15
,
top:
15
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
top:
15
.
w
,
bottom:
15
.
w
),
height:
165
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
cyan
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
1
,
3
),
blurRadius:
10
,
offset:
Offset
(
1
,
3
.
w
),
blurRadius:
10
.
w
,
spreadRadius:
0
,
),
],
...
...
@@ -130,12 +130,12 @@ class _StudyReportPageState extends State<StudyReportPage> {
Row
(
children:
[
Container
(
width:
26
,
height:
26
,
width:
26
.
w
,
height:
26
.
w
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'知识测评'
,
style:
TextStyle
(
fontSize:
16
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
Text
(
'知识测评'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
],
)
...
...
@@ -144,31 +144,31 @@ class _StudyReportPageState extends State<StudyReportPage> {
),
Gaps
.
vGaps10
,
Container
(
padding:
EdgeInsets
.
only
(
left:
15
,
top:
15
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
top:
15
.
w
,
bottom:
15
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
green
,
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
offset:
const
Offset
(
1
,
3
),
blurRadius:
10
,
offset:
Offset
(
1
,
3
.
w
),
blurRadius:
10
.
w
,
spreadRadius:
0
,
),
],
),
height:
165
,
height:
165
.
w
,
child:
Column
(
children:
[
Row
(
children:
[
Container
(
width:
26
,
height:
26
,
width:
26
.
w
,
height:
26
.
w
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'讨论'
,
style:
TextStyle
(
fontSize:
16
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
Text
(
'讨论'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.3
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
),)
],
)
...
...
lib/pages/study_report/widgets/card.dart
浏览文件 @
c582e965
...
...
@@ -17,7 +17,7 @@ class BuildCard extends StatelessWidget {
top:
0
,
right:
0
,
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
17.5
,
top:
25
,
right:
20
,
bottom:
20
),
padding:
EdgeInsets
.
only
(
left:
17.5
.
w
,
top:
25
.
w
,
right:
20
.
w
,
bottom:
20
.
w
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
end
,
...
...
@@ -52,8 +52,8 @@ class BuildCard extends StatelessWidget {
),
),
Container
(
height:
120
,
width:
100
,
height:
120
.
w
,
width:
100
.
w
,
color:
Colors
.
lime
,
)
],
...
...
lib/pages/user_about/index.dart
浏览文件 @
c582e965
...
...
@@ -3,6 +3,7 @@ library about;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/utils/index.dart'
;
import
'package:flutter_book/widgets/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:go_router/go_router.dart'
;
import
'package:package_info_plus/package_info_plus.dart'
;
...
...
lib/pages/user_about/view.dart
浏览文件 @
c582e965
...
...
@@ -37,16 +37,16 @@ class _AboutPageState extends State<AboutPage> {
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
only
(
top:
55
),
height:
60
,
width:
60
,
margin:
EdgeInsets
.
only
(
top:
55
.
w
),
height:
60
.
w
,
width:
60
.
w
,
color:
Colors
.
cyan
,
child:
const
CustomImage
.
asset
(
url:
'assets/images/banner.png'
),
),
Gaps
.
vGaps15
,
const
Text
(
'紫荆数智学堂'
,
style:
TextStyle
(
fontSize:
17
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
'紫荆数智学堂'
,
style:
TextStyle
(
fontSize:
17
.
w
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Gaps
.
vGaps5
,
Text
(
'V
${packageInfo.version??''}
'
,
style:
const
TextStyle
(
fontSize:
13
,
color:
Colours
.
c9
)),
Text
(
'V
${packageInfo.version??''}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
)),
],
),
SafeArea
(
...
...
@@ -56,16 +56,16 @@ class _AboutPageState extends State<AboutPage> {
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
GestureDetector
(
child:
const
Text
(
'《用户协议》'
,
textAlign:
TextAlign
.
right
,
style:
TextStyle
(
fontSize:
10
,
color:
Color
(
0xFF2A82D9
)),),
child:
Text
(
'《用户协议》'
,
textAlign:
TextAlign
.
right
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
)),),
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
},
),
Gaps
.
vGaps15
,
Container
(
width:
1
,
height:
10
,
color:
const
Color
(
0xFFC8C8C8
),),
Container
(
width:
1
.
w
,
height:
10
.
w
,
color:
const
Color
(
0xFFC8C8C8
),),
Gaps
.
vGaps15
,
GestureDetector
(
child:
const
Text
(
'《隐私协议》'
,
textAlign:
TextAlign
.
left
,
style:
TextStyle
(
fontSize:
10
,
color:
Color
(
0xFF2A82D9
))),
child:
Text
(
'《隐私协议》'
,
textAlign:
TextAlign
.
left
,
style:
TextStyle
(
fontSize:
10
.
w
,
color:
Color
(
0xFF2A82D9
))),
onTap:
(){
context
.
pushNamed
(
Routes
.
terms
);
}
,
...
...
@@ -73,7 +73,7 @@ class _AboutPageState extends State<AboutPage> {
],
),
Gaps
.
hGaps10
,
const
Text
(
'Copyright © 2024 Zijing Education. All rights reserved.
\n
清控紫荆(北京)教育科技股份有限公司京
\n
ICP证150431号'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
9
),
textAlign:
TextAlign
.
center
,),
Text
(
'Copyright © 2024 Zijing Education. All rights reserved.
\n
清控紫荆(北京)教育科技股份有限公司京
\n
ICP证150431号'
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
9
.
w
),
textAlign:
TextAlign
.
center
,),
Gaps
.
vGaps25
,
],
),
...
...
lib/pages/user_coin/view.dart
浏览文件 @
c582e965
...
...
@@ -22,12 +22,12 @@ class _UserCoinPageState extends State<UserCoinPage> {
context:
context
,
builder:
(
BuildContext
context
)
{
return
Container
(
height:
200
,
height:
200
.
w
,
color:
Colors
.
white
,
child:
const
Center
(
child:
Center
(
child:
Text
(
'This is the bottom sheet content'
,
style:
TextStyle
(
fontSize:
18
),
style:
TextStyle
(
fontSize:
18
.
w
),
),
),
);
...
...
@@ -36,7 +36,7 @@ class _UserCoinPageState extends State<UserCoinPage> {
print
(
'================================================================'
);
});
},
child:
const
Text
(
'充值'
,
style:
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),)
child:
Text
(
'充值'
,
style:
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),)
)
],
),
...
...
@@ -45,14 +45,14 @@ class _UserCoinPageState extends State<UserCoinPage> {
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
lib/pages/user_coin/widgets/cell.dart
浏览文件 @
c582e965
...
...
@@ -14,7 +14,7 @@ class BuildCell extends StatelessWidget {
children:
[
Container
(
// color: Colors.green,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
...
...
@@ -22,10 +22,10 @@ class BuildCell extends StatelessWidget {
child:
Row
(
children:
[
Container
(
width:
27
,
height:
27
,
width:
27
.
w
,
height:
27
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
13.5
),
borderRadius:
BorderRadius
.
circular
(
13.5
.
w
),
color:
Colors
.
cyan
,
),
),
...
...
@@ -34,19 +34,19 @@ class BuildCell extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Gaps
.
vGaps15
,
Text
(
model
.
remarks
??
''
,
style:
const
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
,
height:
1.6
,
fontWeight:
Fonts
.
medium
),),
Text
(
model
.
createTime
??
''
,
style:
const
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
,
height:
1.6
,)),
Text
(
model
.
remarks
??
''
,
style:
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
.
w
,
height:
1.6
,
fontWeight:
Fonts
.
medium
),),
Text
(
model
.
createTime
??
''
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
.
w
,
height:
1.6
,)),
Gaps
.
vGaps15
,
],
)
],
),
),
Text
(
model
.
options
==
1
?
'+
${model.numbers}
'
:
'-
${model.numbers}
'
,
style:
const
TextStyle
(
fontSize:
17
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),)
Text
(
model
.
options
==
1
?
'+
${model.numbers}
'
:
'-
${model.numbers}
'
,
style:
TextStyle
(
fontSize:
17
.
w
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),)
],
),
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,),
Container
(
color:
Colours
.
cLine
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
height:
1
,),
],
);
}
...
...
lib/pages/user_coupon/view.dart
浏览文件 @
c582e965
...
...
@@ -30,7 +30,7 @@ class _UserCouponPageState extends State<UserCouponPage> {
controller
.
getOverCoupons
();
},
child:
Container
(
height:
40
,
height:
40
.
w
,
color:
Colors
.
cyan
,
child:
Text
(
'过期优惠券'
),
),
...
...
lib/pages/user_coupon/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -12,7 +12,7 @@ class BuildItem extends StatelessWidget {
return
ColorFiltered
(
colorFilter:
ColorFilter
.
mode
(
Colors
.
transparent
,
BlendMode
.
saturation
),
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
10
,
top:
10
,
right:
5
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
,
right:
5
.
w
),
child:
Stack
(
children:
[
Container
(
...
...
@@ -23,13 +23,13 @@ class BuildItem extends StatelessWidget {
)
,
),
Container
(
height:
105
,
height:
105
.
w
,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Container
(
width:
120
,
height:
100
,
width:
120
.
w
,
height:
100
.
w
,
child:
Column
(
children:
[
RichText
(
...
...
@@ -37,23 +37,23 @@ class BuildItem extends StatelessWidget {
children:
<
TextSpan
>[
TextSpan
(
text:
'¥'
,
style:
TextStyle
(
fontSize:
15
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
Colors
.
white
)
style:
TextStyle
(
fontSize:
15
.
w
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
Colors
.
white
)
),
TextSpan
(
text:
'5'
,
style:
TextStyle
(
fontSize:
40
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
Colors
.
white
)
style:
TextStyle
(
fontSize:
40
.
w
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
color:
Colors
.
white
)
),
]
),
),
Text
(
'满
${model.normPrice}
可用'
,
style:
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
Colors
.
white
),)
Text
(
'满
${model.normPrice}
可用'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
Colors
.
white
),)
],
),
// color: Colors.cyan,
),
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
margin:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
...
...
@@ -61,23 +61,23 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
Text
(
model
.
couponName
??
''
,
style:
TextStyle
(
fontSize:
16
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
Text
(
model
.
couponName
??
''
,
style:
TextStyle
(
fontSize:
16
.
w
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
Gaps
.
vGaps5
,
Text
(
'满
${model.normPrice}
减
${model.reducedPrice}
元'
,
style:
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'满
${model.normPrice}
减
${model.reducedPrice}
元'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Gaps
.
vGaps5
,
Text
(
model
.
endTime
??
''
,
style:
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
model
.
endTime
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
],
),
Container
(
width:
65
,
height:
24
,
width:
65
.
w
,
height:
24
.
w
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
15
),
borderRadius:
BorderRadius
.
circular
(
15
.
w
),
color:
Colors
.
white
,
border:
Border
.
all
(
width:
1
,
color:
AppTheme
.
primary
)
border:
Border
.
all
(
width:
1
.
w
,
color:
AppTheme
.
primary
)
),
child:
const
Text
(
'立即使用'
,
style:
TextStyle
(
fontSize:
12
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),),
child:
Text
(
'立即使用'
,
style:
TextStyle
(
fontSize:
12
.
w
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),),
)
],
),
...
...
lib/pages/user_discuss/view.dart
浏览文件 @
c582e965
...
...
@@ -25,14 +25,14 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
lib/pages/user_discuss/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -16,7 +16,7 @@ class BuildItem extends StatelessWidget {
return
Container
(
color:
Colors
.
transparent
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// color: Colors.red,
// margin: const EdgeInsets.all(10),
// decoration: BoxDecoration(
...
...
@@ -35,36 +35,36 @@ class BuildItem extends StatelessWidget {
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
,
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
const
BoxDecoration
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8
),
topRight:
Radius
.
circular
(
8
),
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c6
),),
child:
Text
(
'共
$num
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
):
const
SizedBox
(),
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
Container
(
padding:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
Container
(
height:
87
,
margin:
const
EdgeInsets
.
only
(
left:
13
),
height:
87
.
w
,
margin:
EdgeInsets
.
only
(
left:
13
.
w
),
// color: Colors.green,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -73,11 +73,11 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c6
),),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
],
),
Text
(
'
${model.commentNum.toString()}
个讨论'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
)),
Text
(
'
${model.commentNum.toString()}
个讨论'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
)),
],
),
)
...
...
lib/pages/user_discuss_des/view.dart
浏览文件 @
c582e965
...
...
@@ -33,24 +33,24 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> {
children:
[
BuildItem
(
model:
widget
.
model
),
ClipRRect
(
borderRadius:
const
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
5
),
topRight:
Radius
.
circular
(
5
)),
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
5
.
w
),
topRight:
Radius
.
circular
(
5
)),
child:
Container
(
width:
double
.
infinity
,
color:
Colors
.
white
,
height:
35
,
height:
35
.
w
,
child:
TabBar
(
indicator:
UnderlineTabIndicator
(
borderRadius:
BorderRadius
.
circular
(
0.75
),
borderSide:
const
BorderSide
(
width:
1.5
,
color:
AppTheme
.
primary
),
insets:
const
EdgeInsets
.
symmetric
(
horizontal:
22
),
// 设置标签下面指示器的水平内边距
borderRadius:
BorderRadius
.
circular
(
0.75
.
w
),
borderSide:
BorderSide
(
width:
1.5
.
w
,
color:
AppTheme
.
primary
),
insets:
EdgeInsets
.
symmetric
(
horizontal:
22
.
w
),
// 设置标签下面指示器的水平内边距
),
labelPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
20
),
labelPadding:
EdgeInsets
.
symmetric
(
horizontal:
20
.
w
),
indicatorSize:
TabBarIndicatorSize
.
label
,
indicatorColor:
AppTheme
.
primary
,
indicatorWeight:
1.5
,
labelStyle:
const
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
15
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
labelStyle:
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
15
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
unselectedLabelColor:
Colours
.
c9
,
unselectedLabelStyle:
const
TextStyle
(
color:
Colours
.
c9
,
fontSize:
15
,
height:
1.5
),
unselectedLabelStyle:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
15
.
w
,
height:
1.5
),
isScrollable:
true
,
tabs:
tabs
),
...
...
lib/pages/user_discuss_des/widgets/discuss.dart
浏览文件 @
c582e965
...
...
@@ -10,15 +10,15 @@ class BuildDiscuss extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
padding:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
4
),
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
1.5
,
0
),
offset:
Offset
(
1.5
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -29,14 +29,14 @@ class BuildDiscuss extends StatelessWidget {
children:
[
RichText
(
text:
TextSpan
(
children:
[
const
TextSpan
(
text:
'话题:'
,
style:
TextStyle
(
fontSize:
14
,
height:
1.5
,
TextSpan
(
text:
'话题:'
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
.
w
,
color:
Colours
.
c3
,
)),
TextSpan
(
text:
model
.
title
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
TextSpan
(
text:
model
.
title
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
.
w
,
color:
Colours
.
c3
,
fontWeight:
Fonts
.
medium
)),
...
...
@@ -44,24 +44,24 @@ class BuildDiscuss extends StatelessWidget {
)),
Gaps
.
vGaps10
,
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cF2
,
),
_buildItem
(
model
),
Container
(
margin:
const
EdgeInsets
.
only
(
left:
15
),
margin:
EdgeInsets
.
only
(
left:
15
.
w
),
child:
_buildListView
(
model
.
commentAll
!=
null
?
model
.
commentAll
!:[])
),
Gaps
.
vGaps13
,
Container
(
width:
double
.
infinity
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
5
,
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
5
.
w
,
horizontal:
10
.
w
),
color:
Colours
.
cF8
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
chapterName
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'内容:
${model.quoteContent??''}
'
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
model
.
chapterName
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'内容:
${model.quoteContent??''}
'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
],
)
)
...
...
@@ -75,17 +75,17 @@ class BuildDiscuss extends StatelessWidget {
return
Row
(
children:
[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
17.5
),
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
child:
Container
(
width:
35
,
height:
35
,
width:
35
.
w
,
height:
35
.
w
,
color:
Colors
.
red
,
child:
CustomImage
.
network
(
url:
model
.
personPic
??
''
),
),
),
Expanded
(
child:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
top:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
...
...
@@ -94,39 +94,39 @@ class BuildDiscuss extends StatelessWidget {
children:
[
Row
(
children:
[
Text
(
model
.
personName
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
model
.
personName
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Gaps
.
hGaps10
,
type
==
0
?
const
SizedBox
():
const
Text
(
'发起人'
,
style:
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
),)
type
==
0
?
const
SizedBox
():
Text
(
'发起人'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
),)
],
),
Text
(
model
.
createTime
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),)
Text
(
model
.
createTime
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),)
],
),
Text
(
model
.
content
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c3
),),
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
Row
(
children:
[
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
SizedBox
(
height:
15
,
width:
15
,
height:
15
.
w
,
width:
15
.
w
,
// color: Colors.green,
child:
Image
.
asset
(
'assets/images/love.png'
),
),
Text
(
model
.
goodNum
.
toString
(),
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
))
Text
(
model
.
goodNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
],
),
Gaps
.
hGaps15
,
Row
(
children:
[
SizedBox
(
height:
15
,
width:
15
,
height:
15
.
w
,
width:
15
.
w
,
// color: Colors.yellow,
child:
Image
.
asset
(
'assets/images/discuss_big.png'
),
),
Text
(
model
.
replyNum
.
toString
(),
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
))
Text
(
model
.
replyNum
.
toString
(),
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
))
],
)
],
...
...
lib/pages/user_discuss_des/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -10,36 +10,36 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
Column
(
children:
[
Container
(
padding:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
Container
(
height:
87
,
margin:
const
EdgeInsets
.
only
(
left:
13
),
height:
87
.
w
,
margin:
EdgeInsets
.
only
(
left:
13
.
w
),
// color: Colors.green,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -48,11 +48,11 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c6
),),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
],
),
Text
(
'
${model.commentNum.toString()}
个讨论'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
)),
Text
(
'
${model.commentNum.toString()}
个讨论'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
)),
],
),
)
...
...
lib/pages/user_feedback/index.dart
浏览文件 @
c582e965
...
...
@@ -2,6 +2,7 @@ library user_feedback;
import
'package:flutter/material.dart'
;
import
'package:flutter_book/utils/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'../../widgets/index.dart'
;
...
...
lib/pages/user_feedback/view.dart
浏览文件 @
c582e965
...
...
@@ -17,7 +17,7 @@ class _UserFeedbackPageState extends State<UserFeedbackPage> {
),
body:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
transparent
,
),
child:
Column
(
...
...
@@ -25,22 +25,22 @@ class _UserFeedbackPageState extends State<UserFeedbackPage> {
children:
[
Container
(
alignment:
Alignment
.
centerLeft
,
padding:
const
EdgeInsets
.
only
(
left:
10
,
top:
16.5
),
child:
const
Text
.
rich
(
TextSpan
(
children:
[
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
16.5
.
w
),
child:
Text
.
rich
(
TextSpan
(
children:
[
TextSpan
(
text:
"*"
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
cAB1941
)),
TextSpan
(
text:
"问题描述或建议"
,
style:
TextStyle
(
fontSize:
14
,
fontSize:
14
.
w
,
color:
Colours
.
c3
,
fontWeight:
FontWeight
.
bold
)),
])),
),
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
6.5
,
bottom:
10
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
6.5
.
w
,
bottom:
10
.
w
),
child:
const
CustomInput
(
maxLines:
5
,
...
...
@@ -50,8 +50,8 @@ class _UserFeedbackPageState extends State<UserFeedbackPage> {
// _buildTextField(context),
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
35
,
bottom:
20
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
35
.
w
,
bottom:
20
.
w
),
width:
double
.
infinity
,
child:
CustomGradientButton
(
...
...
lib/pages/user_gender/view.dart
浏览文件 @
c582e965
...
...
@@ -36,19 +36,19 @@ class _UserGenderPageState extends State<UserGenderPage> {
margin:
EdgeInsets
.
symmetric
(
horizontal:
AppTheme
.
margin
,
vertical:
AppTheme
.
margin
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
color:
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
...
...
@@ -62,17 +62,17 @@ class _UserGenderPageState extends State<UserGenderPage> {
});
},
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
),
color:
Colors
.
transparent
,
height:
35
,
height:
35
.
w
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
const
Text
(
Text
(
"男"
,
style:
TextStyle
(
fontSize:
14
,
fontSize:
14
.
w
,
color:
Colours
.
c3
,
),
),
...
...
@@ -105,8 +105,8 @@ class _UserGenderPageState extends State<UserGenderPage> {
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
height:
1
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
height:
1
.
w
,
),
GestureDetector
(
onTap:
()
{
...
...
@@ -116,17 +116,17 @@ class _UserGenderPageState extends State<UserGenderPage> {
});
},
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
),
color:
Colors
.
transparent
,
height:
35
,
height:
35
.
w
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
const
Text
(
Text
(
"女"
,
style:
TextStyle
(
fontSize:
14
,
fontSize:
14
.
w
,
color:
Colours
.
c3
,
),
),
...
...
@@ -158,7 +158,7 @@ class _UserGenderPageState extends State<UserGenderPage> {
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
height:
1
,
),
GestureDetector
(
...
...
@@ -183,17 +183,17 @@ class _UserGenderPageState extends State<UserGenderPage> {
)*/
Container
(
padding:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
),
color:
Colors
.
transparent
,
height:
35
,
height:
35
.
w
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
const
Text
(
Text
(
"保密"
,
style:
TextStyle
(
fontSize:
14
,
fontSize:
14
.
w
,
color:
Colours
.
c3
,
),
),
...
...
lib/pages/user_info/view.dart
浏览文件 @
c582e965
...
...
@@ -24,34 +24,34 @@ class _UserInfoPageState extends State<UserInfoPage> {
margin:
EdgeInsets
.
symmetric
(
horizontal:
AppTheme
.
margin
,
vertical:
AppTheme
.
margin
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
/// 头像
Container
(
height:
52
,
padding:
const
EdgeInsets
.
only
(
left:
18
,
right:
15
),
height:
52
.
w
,
padding:
EdgeInsets
.
only
(
left:
18
.
w
,
right:
15
.
w
),
child:
GestureDetector
(
onTap:
()
async
{
final
assets
=
await
AssetsPicker
.
image
(
context:
context
,
source
:
ImageSource
.
gallery
,
maxWidth:
512
,
maxHeight:
512
,
maxWidth:
512
.
w
,
maxHeight:
512
.
w
,
);
controller
.
upload
(
path:
assets
!.
path
);
},
...
...
@@ -60,11 +60,11 @@ class _UserInfoPageState extends State<UserInfoPage> {
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
const
Text
(
Text
(
'头像'
,
style:
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
,
fontSize:
14
.
w
,
height:
1.6
),
),
Row
(
...
...
@@ -83,8 +83,8 @@ class _UserInfoPageState extends State<UserInfoPage> {
),
Gaps
.
hGaps10
,
SizedBox
(
width:
5
,
height:
8
,
width:
5
.
w
,
height:
8
.
w
,
child:
Image
.
asset
(
'assets/images/right_arrow.png'
),
)
...
...
@@ -97,8 +97,8 @@ class _UserInfoPageState extends State<UserInfoPage> {
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
height:
1
.
w
,
),
GestureDetector
(
onTap:
()
{
...
...
@@ -110,8 +110,8 @@ class _UserInfoPageState extends State<UserInfoPage> {
)),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
height:
1
.
w
,
),
GestureDetector
(
onTap:
()
{
...
...
@@ -143,17 +143,17 @@ class _UserInfoPageState extends State<UserInfoPage> {
Widget
_buildItem
(
String
title
,
String
value
)
{
return
Container
(
padding:
const
EdgeInsets
.
only
(
left:
18
,
right:
15
),
padding:
EdgeInsets
.
only
(
left:
18
.
w
,
right:
15
.
w
),
color:
Colors
.
transparent
,
height:
52
,
height:
52
.
w
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Text
(
title
,
style:
const
TextStyle
(
fontSize:
14
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
,
),
),
...
...
@@ -161,15 +161,15 @@ class _UserInfoPageState extends State<UserInfoPage> {
children:
[
Text
(
value
,
style:
const
TextStyle
(
fontSize:
14
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c9
,
),
),
Gaps
.
hGaps10
,
SizedBox
(
width:
5
,
height:
8
,
width:
5
.
w
,
height:
8
.
w
,
child:
Image
.
asset
(
'assets/images/right_arrow.png'
),
)
],
...
...
lib/pages/user_love/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -12,17 +12,17 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
,
top:
15
,
bottom:
15
),
margin:
const
EdgeInsets
.
only
(
top:
15
,
left:
10
,
right:
10
),
padding:
EdgeInsets
.
only
(
left:
10
.
w
,
top:
15
.
w
,
bottom:
15
.
w
),
margin:
EdgeInsets
.
only
(
top:
15
.
w
,
left:
10
.
w
,
right:
10
.
w
),
decoration:
BoxDecoration
(
color:
Colors
.
white
,
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
// 阴影颜色
spreadRadius:
2
,
// 阴影扩散半径
blurRadius:
5
,
// 阴影模糊半径
offset:
const
Offset
(
0
,
2
),
// 阴影偏移
spreadRadius:
2
.
w
,
// 阴影扩散半径
blurRadius:
5
.
w
,
// 阴影模糊半径
offset:
Offset
(
0
,
2
.
w
),
// 阴影偏移
),
],
...
...
@@ -33,20 +33,20 @@ class BuildItem extends StatelessWidget {
children:
[
/// 左侧
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
/// 右侧
Expanded
(
child:
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
overflow:
TextOverflow
.
ellipsis
,
maxLines:
1
,
style:
const
TextStyle
(
fontSize:
14
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
const
SizedBox
(
height:
4
,),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
color:
Colours
.
c9
,
height:
1.5
),),
Text
(
model
.
bookName
??
''
,
overflow:
TextOverflow
.
ellipsis
,
maxLines:
1
,
style:
TextStyle
(
fontSize:
14
.
w
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
color:
Colours
.
c3
),),
SizedBox
(
height:
4
.
w
,),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
Gaps
.
vGaps15
,
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -56,9 +56,9 @@ class BuildItem extends StatelessWidget {
GestureDetector
(
onTap:
onTap
,
child:
Container
(
padding:
const
EdgeInsets
.
only
(
top:
10
),
width:
30
,
height:
30
,
padding:
EdgeInsets
.
only
(
top:
10
.
w
),
width:
30
.
w
,
height:
30
.
w
,
// color: Colors.yellow,
child:
Image
.
asset
(
'assets/images/del.png'
,
...
...
lib/pages/user_msg/index.dart
浏览文件 @
c582e965
...
...
@@ -4,6 +4,7 @@ import 'package:easy_refresh/easy_refresh.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter_book/apis/index.dart'
;
import
'package:flutter_book/models/index.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'package:go_router/go_router.dart'
;
...
...
lib/pages/user_msg/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -10,11 +10,11 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
,
vertical:
10
),
height:
75
,
height:
75
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
),
child:
Row
(
...
...
@@ -28,10 +28,10 @@ class BuildItem extends StatelessWidget {
shape:
badges
.
BadgeShape
.
circle
),
child:
Container
(
width:
30
,
height:
30
,
width:
30
.
w
,
height:
30
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
15
),
borderRadius:
BorderRadius
.
circular
(
15
.
w
),
color:
AppTheme
.
primary
.
withOpacity
(
0.1
)
),
child:
Image
.
asset
(
...
...
@@ -47,12 +47,12 @@ class BuildItem extends StatelessWidget {
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
model
.
title
??
''
,
style:
const
TextStyle
(
fontSize:
15
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
createTime
??
''
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.4
,
color:
Colours
.
c9
))
Text
(
model
.
title
??
''
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
createTime
??
''
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.4
,
color:
Colours
.
c9
))
],
),
Gaps
.
vGaps5
,
Text
(
model
.
content
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.4
,
color:
Colours
.
c6
),)
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.4
,
color:
Colours
.
c6
),)
],
),
)
...
...
lib/pages/user_nick/view.dart
浏览文件 @
c582e965
...
...
@@ -29,11 +29,11 @@ class _UserNickPageState extends State<UserNickPage> {
title:
const
Text
(
'设置昵称'
),
actions:
[
Container
(
height:
20
,
width:
40
,
height:
20
.
w
,
width:
40
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
10
),
border:
Border
.
all
(
color:
Colours
.
c3
,
width:
0.5
)),
borderRadius:
BorderRadius
.
circular
(
10
.
w
),
border:
Border
.
all
(
color:
Colours
.
c3
,
width:
0.5
.
w
)),
child:
Center
(
child:
GestureDetector
(
onTap:
()
{
...
...
@@ -41,10 +41,10 @@ class _UserNickPageState extends State<UserNickPage> {
controller
.
changeInfo
(
_textFieldController
.
text
);
_focusNode
.
unfocus
();
},
child:
const
Text
(
child:
Text
(
'保存'
,
style:
TextStyle
(
fontSize:
12
,
color:
Colours
.
c3
),
fontSize:
12
.
w
,
color:
Colours
.
c3
),
)),
),
)
...
...
@@ -52,33 +52,33 @@ class _UserNickPageState extends State<UserNickPage> {
),
body:
Container
(
margin:
EdgeInsets
.
only
(
left:
AppTheme
.
margin
,
right:
AppTheme
.
margin
,
top:
AppTheme
.
margin
),
height:
42
,
height:
42
.
w
,
decoration:
BoxDecoration
(
boxShadow:
[
BoxShadow
(
color:
Colours
.
cC7
.
withOpacity
(
0.5
),
spreadRadius:
0
,
blurRadius:
10
,
offset:
const
Offset
(
3
,
0
),
spreadRadius:
0
.
w
,
blurRadius:
10
.
w
,
offset:
Offset
(
3
.
w
,
0
),
),
],
borderRadius:
BorderRadius
.
circular
(
8
),
color:
Colors
.
white
),
],
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
),
child:
Container
(
padding:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
,
padding:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
,
),
child:
Row
(
children:
[
const
Text
(
Text
(
'昵称'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
),
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
),
),
Gaps
.
hGaps15
,
Expanded
(
child:
TextField
(
controller:
_textFieldController
,
style:
const
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
),
decoration:
const
InputDecoration
(
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
),
decoration:
InputDecoration
(
filled:
true
,
fillColor:
Colors
.
transparent
,
// 设置背景颜色为透明
...
...
@@ -87,7 +87,7 @@ class _UserNickPageState extends State<UserNickPage> {
enabledBorder:
InputBorder
.
none
,
focusedBorder:
InputBorder
.
none
,
suffixIconConstraints:
BoxConstraints
.
tightFor
(
height:
15
,
width:
15
)),
height:
15
.
w
,
width:
15
.
w
)),
focusNode:
_focusNode
,
),
),
...
...
lib/pages/user_notes/view.dart
浏览文件 @
c582e965
...
...
@@ -23,21 +23,21 @@ class _UserNotePageState extends State<UserNotePage> {
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
ListView
.
builder
(
physics:
const
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
...
...
lib/pages/user_notes/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -16,7 +16,7 @@ class BuildItem extends StatelessWidget {
return
Container
(
color:
Colors
.
white
,
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// margin: const EdgeInsets.all(10),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
...
...
@@ -34,36 +34,36 @@ class BuildItem extends StatelessWidget {
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
,
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
const
BoxDecoration
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
8
),
topRight:
Radius
.
circular
(
8
),
topLeft:
Radius
.
circular
(
8
.
w
),
topRight:
Radius
.
circular
(
8
.
w
),
),
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c6
),),
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:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
Container
(
height:
87
,
margin:
const
EdgeInsets
.
only
(
left:
13
),
height:
87
.
w
,
margin:
EdgeInsets
.
only
(
left:
13
.
w
),
// color: Colors.green,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -72,11 +72,11 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c6
),),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
],
),
Text
(
'
${model.notesNum.toString()}
个笔记'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
)),
Text
(
'
${model.notesNum.toString()}
个笔记'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
)),
],
),
)
...
...
lib/pages/user_notes_des/view.dart
浏览文件 @
c582e965
...
...
@@ -38,20 +38,20 @@ class _UserNotesDesPageState extends State<UserNotesDesPage> {
child:
Container
(
width:
double
.
infinity
,
color:
Colors
.
white
,
height:
35
,
height:
35
.
w
,
child:
TabBar
(
indicator:
UnderlineTabIndicator
(
borderRadius:
BorderRadius
.
circular
(
0.75
),
borderSide:
const
BorderSide
(
width:
1.5
,
color:
AppTheme
.
primary
),
insets:
const
EdgeInsets
.
symmetric
(
horizontal:
22
),
// 设置标签下面指示器的水平内边距
borderSide:
BorderSide
(
width:
1.5
.
w
,
color:
AppTheme
.
primary
),
insets:
EdgeInsets
.
symmetric
(
horizontal:
22
.
w
),
// 设置标签下面指示器的水平内边距
),
labelPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
20
),
labelPadding:
EdgeInsets
.
symmetric
(
horizontal:
20
.
w
),
indicatorSize:
TabBarIndicatorSize
.
label
,
indicatorColor:
AppTheme
.
primary
,
indicatorWeight:
1.5
,
labelStyle:
const
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
15
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
labelStyle:
TextStyle
(
color:
AppTheme
.
primary
,
fontSize:
15
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
),
unselectedLabelColor:
Colours
.
c9
,
unselectedLabelStyle:
const
TextStyle
(
color:
Colours
.
c9
,
fontSize:
15
,
height:
1.5
),
unselectedLabelStyle:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
15
.
w
,
height:
1.5
),
isScrollable:
true
,
tabs:
tabs
),
...
...
lib/pages/user_notes_des/widgets/high.dart
浏览文件 @
c582e965
...
...
@@ -10,15 +10,15 @@ class BuildHigh extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
padding:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
4
),
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
1.5
,
0
),
offset:
Offset
(
1.5
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -27,8 +27,8 @@ class BuildHigh extends StatelessWidget {
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
content
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colors
.
red
,
...
...
@@ -36,9 +36,9 @@ class BuildHigh extends StatelessWidget {
Gaps
.
vGaps8
,
Container
(
width:
double
.
infinity
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
5
,
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
5
.
w
,
horizontal:
10
.
w
),
color:
Colours
.
cF8
,
child:
Text
(
model
.
chapterName
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
child:
Text
(
model
.
chapterName
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
)
],
),
...
...
lib/pages/user_notes_des/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -10,36 +10,36 @@ class BuildItem extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
Column
(
children:
[
Container
(
padding:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
Container
(
height:
87
,
margin:
const
EdgeInsets
.
only
(
left:
13
),
height:
87
.
w
,
margin:
EdgeInsets
.
only
(
left:
13
.
w
),
// color: Colors.green,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -48,11 +48,11 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c6
),),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
],
),
Text
(
'
${model.notesNum.toString()}
个笔记'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
)),
Text
(
'
${model.notesNum.toString()}
个笔记'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
)),
],
),
)
...
...
lib/pages/user_notes_des/widgets/line.dart
浏览文件 @
c582e965
...
...
@@ -10,15 +10,15 @@ class BuildLine extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
padding:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
4
),
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
1.5
,
0
),
offset:
Offset
(
1.5
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -27,8 +27,8 @@ class BuildLine extends StatelessWidget {
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
content
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
Text
(
model
.
content
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
,
decoration:
TextDecoration
.
underline
,
...
...
@@ -38,9 +38,9 @@ class BuildLine extends StatelessWidget {
Gaps
.
vGaps8
,
Container
(
width:
double
.
infinity
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
5
,
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
5
.
w
,
horizontal:
10
.
w
),
color:
Colours
.
cF8
,
child:
Text
(
model
.
chapterName
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
child:
Text
(
model
.
chapterName
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
)
],
),
...
...
lib/pages/user_notes_des/widgets/note.dart
浏览文件 @
c582e965
...
...
@@ -10,15 +10,15 @@ class BuildNote extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
,
right:
10
,
top:
10
),
padding:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
only
(
left:
10
.
w
,
right:
10
.
w
,
top:
10
.
w
),
padding:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
4
),
borderRadius:
BorderRadius
.
circular
(
4
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
1.5
,
0
),
color:
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
Offset
(
1.5
.
w
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -28,7 +28,7 @@ class BuildNote extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
'看来谁都不记得自己为何出现在此'
,
style:
TextStyle
(
fontSize:
14
,
fontSize:
14
.
w
,
height:
1.5
,
color:
Colors
.
red
,
...
...
@@ -40,13 +40,13 @@ class BuildNote extends StatelessWidget {
Gaps
.
vGaps13
,
Container
(
width:
double
.
infinity
,
padding:
const
EdgeInsets
.
symmetric
(
vertical:
5
,
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
vertical:
5
.
w
,
horizontal:
10
.
w
),
color:
Colours
.
cF8
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
chapterName
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'内容:
${model.content??''}
'
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
model
.
chapterName
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
'内容:
${model.content??''}
'
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
],
)
)
...
...
@@ -61,10 +61,10 @@ class BuildNote extends StatelessWidget {
// padding: const EdgeInsets.only(left: 13,top: 10),
physics:
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
gridDelegate:
const
SliverGridDelegateWithFixedCrossAxisCount
(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
6
,
crossAxisSpacing:
2
,
mainAxisSpacing:
2
,
crossAxisSpacing:
2
.
w
,
mainAxisSpacing:
2
.
w
,
childAspectRatio:
1
),
itemBuilder:
(
BuildContext
context
,
int
index
)
{
...
...
@@ -82,10 +82,10 @@ class BuildNote extends StatelessWidget {
// padding: const EdgeInsets.only(left: 13,top: 10),
physics:
NeverScrollableScrollPhysics
(),
shrinkWrap:
true
,
gridDelegate:
const
SliverGridDelegateWithFixedCrossAxisCount
(
gridDelegate:
SliverGridDelegateWithFixedCrossAxisCount
(
crossAxisCount:
6
,
crossAxisSpacing:
2
,
mainAxisSpacing:
2
,
crossAxisSpacing:
2
.
w
,
mainAxisSpacing:
2
.
w
,
childAspectRatio:
1
),
itemBuilder:
(
BuildContext
context
,
int
index
)
{
...
...
lib/pages/user_point/view.dart
浏览文件 @
c582e965
...
...
@@ -21,14 +21,14 @@ class _UserPointPageState extends State<UserPointPage> {
onRefresh:
controller
.
onRefresh
,
onLoading:
controller
.
onLoading
,
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
lib/pages/user_point/widgets/cell.dart
浏览文件 @
c582e965
...
...
@@ -14,7 +14,7 @@ class BuildCell extends StatelessWidget {
children:
[
Container
(
// color: Colors.green,
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
...
...
@@ -22,10 +22,10 @@ class BuildCell extends StatelessWidget {
child:
Row
(
children:
[
Container
(
width:
27
,
height:
27
,
width:
27
.
w
,
height:
27
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
13.5
),
borderRadius:
BorderRadius
.
circular
(
13.5
.
w
),
color:
Colors
.
cyan
,
),
),
...
...
@@ -34,19 +34,19 @@ class BuildCell extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Gaps
.
vGaps15
,
Text
(
model
.
remarks
??
''
,
style:
const
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
,
height:
1.6
,
fontWeight:
Fonts
.
medium
),),
Text
(
model
.
createTime
??
''
,
style:
const
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
,
height:
1.6
,)),
Text
(
model
.
remarks
??
''
,
style:
TextStyle
(
color:
Colours
.
c3
,
fontSize:
14
.
w
,
height:
1.6
,
fontWeight:
Fonts
.
medium
),),
Text
(
model
.
createTime
??
''
,
style:
TextStyle
(
color:
Colours
.
c9
,
fontSize:
10
.
w
,
height:
1.6
,)),
Gaps
.
vGaps15
,
],
)
],
),
),
Text
(
model
.
options
==
1
?
'+
${model.numbers}
'
:
'-
${model.numbers}
'
,
style:
const
TextStyle
(
fontSize:
17
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),)
Text
(
model
.
options
==
1
?
'+
${model.numbers}
'
:
'-
${model.numbers}
'
,
style:
TextStyle
(
fontSize:
17
.
w
,
fontWeight:
Fonts
.
medium
,
color:
AppTheme
.
primary
),)
],
),
),
Container
(
color:
Colours
.
cLine
,
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
15
),
height:
1
,),
Container
(
color:
Colours
.
cLine
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
15
.
w
),
height:
1
.
w
,),
],
);
}
...
...
lib/pages/user_security/view.dart
浏览文件 @
c582e965
...
...
@@ -23,14 +23,14 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
body:
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
margin:
EdgeInsets
.
symmetric
(
vertical:
10
.
w
,
horizontal:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -45,8 +45,8 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
child:
_buildItem
(
title:
'修改手机号码'
,
value:
widget
.
model
.
phone
??
''
)
),
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
height:
0.5
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
GestureDetector
(
...
...
@@ -59,14 +59,14 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
),
),
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -85,7 +85,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
Widget
_buildItem
({
required
String
title
,
required
String
value
}){
return
Container
(
margin:
const
EdgeInsets
.
only
(
left:
15
,
right:
15
),
margin:
EdgeInsets
.
only
(
left:
15
.
w
,
right:
15
.
w
),
color:
Colors
.
white
,
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -96,14 +96,14 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
},
child:
Container
(
color:
Colors
.
white
,
height:
45
,
height:
45
.
w
,
alignment:
Alignment
.
centerLeft
,
child:
Text
(
title
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c3
)),
child:
Text
(
title
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c3
)),
),
),
Row
(
children:
[
Text
(
value
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
value
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
Gaps
.
hGaps10
,
Image
.
asset
(
'assets/images/right_arrow.png'
)
],
...
...
lib/pages/user_set/view.dart
浏览文件 @
c582e965
...
...
@@ -21,15 +21,15 @@ class _UserSetPageState extends State<UserSetPage> {
body:
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
symmetric
(
vertical:
10
,
horizontal:
10
),
padding:
const
EdgeInsets
.
only
(
right:
10
),
margin:
EdgeInsets
.
symmetric
(
vertical:
10
.
w
,
horizontal:
10
.
w
),
padding:
EdgeInsets
.
only
(
right:
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
@@ -44,15 +44,15 @@ class _UserSetPageState extends State<UserSetPage> {
},
child:
Container
(
color:
Colors
.
white
,
margin:
const
EdgeInsets
.
only
(
left:
15
),
height:
45
,
margin:
EdgeInsets
.
only
(
left:
15
.
w
),
height:
45
.
w
,
alignment:
Alignment
.
centerLeft
,
child:
const
Text
(
'清除缓存'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
)),
child:
Text
(
'清除缓存'
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
)),
),
),
Container
(
margin:
const
EdgeInsets
.
only
(
left:
10
),
height:
0.5
,
margin:
EdgeInsets
.
only
(
left:
10
.
w
),
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
GestureDetector
(
...
...
@@ -61,15 +61,15 @@ class _UserSetPageState extends State<UserSetPage> {
},
child:
Container
(
color:
Colors
.
white
,
margin:
const
EdgeInsets
.
only
(
left:
15
),
height:
45
,
margin:
EdgeInsets
.
only
(
left:
15
.
w
),
height:
45
.
w
,
alignment:
Alignment
.
centerLeft
,
child:
const
Text
(
'查看更新 >'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
)),
child:
Text
(
'查看更新 >'
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
)),
),
),
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
height:
0.5
,
margin:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
GestureDetector
(
...
...
@@ -78,10 +78,10 @@ class _UserSetPageState extends State<UserSetPage> {
},
child:
Container
(
color:
Colors
.
white
,
margin:
const
EdgeInsets
.
only
(
left:
15
),
height:
45
,
margin:
EdgeInsets
.
only
(
left:
15
.
w
),
height:
45
.
w
,
alignment:
Alignment
.
centerLeft
,
child:
const
Text
(
'版本介绍 >'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
)),
child:
Text
(
'版本介绍 >'
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
)),
),
)
],
...
...
@@ -101,23 +101,23 @@ class _UserSetPageState extends State<UserSetPage> {
}
},
child:
Container
(
height:
42
,
height:
42
.
w
,
width:
double
.
infinity
,
alignment:
Alignment
.
center
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
margin:
EdgeInsets
.
symmetric
(
horizontal:
AppTheme
.
margin
),
child:
const
Text
(
'退出登录'
,
style:
TextStyle
(
fontSize:
14
,
color:
Colours
.
c3
),),
child:
Text
(
'退出登录'
,
style:
TextStyle
(
fontSize:
14
.
w
,
color:
Colours
.
c3
),),
),
)
],
...
...
@@ -152,10 +152,10 @@ class _UserSetPageState extends State<UserSetPage> {
onWillPop:
()
=>
Future
.
value
(!
forcedUpgrade
),
child:
AlertDialog
(
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
8.0
),
borderRadius:
BorderRadius
.
circular
(
8.0
.
w
),
),
title:
const
Text
(
'发现新版本'
,
style:
TextStyle
(
fontSize:
16
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
content:
Text
(
_getModel
.
remarks
??
''
,
style:
const
TextStyle
(
fontSize:
13
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
title:
Text
(
'发现新版本'
,
style:
TextStyle
(
fontSize:
16
.
w
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
content:
Text
(
_getModel
.
remarks
??
''
,
style:
TextStyle
(
fontSize:
13
.
w
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
actions:
<
Widget
>[
if
(!
forcedUpgrade
)
TextButton
(
...
...
lib/pages/user_wrong/view.dart
浏览文件 @
c582e965
...
...
@@ -23,14 +23,14 @@ class _UserWrongPageState extends State<UserWrongPage> {
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
...
...
lib/pages/user_wrong/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -15,7 +15,7 @@ class BuildItem extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
Container
(
// margin: const EdgeInsets.symmetric(horizontal: 10),
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
.
w
),
// margin: const EdgeInsets.all(10),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(8),
...
...
@@ -33,7 +33,7 @@ class BuildItem extends StatelessWidget {
children:
[
index
==
0
?
Container
(
// padding: const EdgeInsets.only(left: 10),
height:
32
,
height:
32
.
w
,
width:
double
.
infinity
,
decoration:
const
BoxDecoration
(
borderRadius:
BorderRadius
.
only
(
...
...
@@ -43,26 +43,26 @@ class BuildItem extends StatelessWidget {
color:
Colors
.
white
,
),
alignment:
Alignment
.
centerLeft
,
child:
Text
(
'共
$num
本书'
,
style:
const
TextStyle
(
fontSize:
13
,
height:
1.5
,
color:
Colours
.
c6
),),
child:
Text
(
'共
$num
本书'
,
style:
TextStyle
(
fontSize:
13
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
):
const
SizedBox
(),
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cF0
,
),
Container
(
padding:
const
EdgeInsets
.
only
(
top:
12
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
12
.
w
,
bottom:
15
.
w
),
// color: Colors.red,
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
CustomCard
(
width:
72
,
height:
86
,
width:
72
.
w
,
height:
86
.
w
,
url:
model
.
img
??
''
,
),
Container
(
height:
87
,
margin:
const
EdgeInsets
.
only
(
left:
13
),
height:
87
.
w
,
margin:
EdgeInsets
.
only
(
left:
13
.
w
),
// color: Colors.green,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
...
...
@@ -71,11 +71,11 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c6
),),
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),),
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c6
),),
],
),
Text
(
'
${model.wrongNum.toString()}
个错题'
,
style:
const
TextStyle
(
fontSize:
11
,
height:
1.5
,
color:
AppTheme
.
primary
)),
Text
(
'
${model.wrongNum.toString()}
个错题'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
AppTheme
.
primary
)),
],
),
)
...
...
lib/pages/version/view.dart
浏览文件 @
c582e965
...
...
@@ -24,21 +24,21 @@ class _VersionPageState extends State<VersionPage> {
onLoading:
controller
.
onLoading
,
child:
SingleChildScrollView
(
child:
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
margin:
EdgeInsets
.
all
(
10
.
w
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
offset:
Offset
(
3
.
w
,
0
),
blurRadius:
10
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
borderRadius:
BorderRadius
.
circular
(
8
.
w
),
child:
ListView
.
builder
(
shrinkWrap:
true
,
physics:
const
NeverScrollableScrollPhysics
(),
...
...
lib/pages/version/widgets/item.dart
浏览文件 @
c582e965
...
...
@@ -11,7 +11,7 @@ class BuildItem extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
Container
(
color:
Colors
.
white
,
padding:
const
EdgeInsets
.
only
(
top:
10
,
right:
15
,
left:
15
),
padding:
EdgeInsets
.
only
(
top:
10
.
w
,
right:
15
.
w
,
left:
15
.
w
),
child:
Column
(
children:
[
Row
(
...
...
@@ -20,8 +20,8 @@ class BuildItem extends StatelessWidget {
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
version
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c3
),),
Text
(
model
.
updateTime
??
''
,
style:
const
TextStyle
(
fontSize:
12
,
height:
1.5
,
color:
Colours
.
c9
),),
Text
(
model
.
version
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
Text
(
model
.
updateTime
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
,
color:
Colours
.
c9
),),
],
),
Image
.
asset
(
'assets/images/right_arrow.png'
)
...
...
@@ -29,7 +29,7 @@ class BuildItem extends StatelessWidget {
),
Gaps
.
vGaps10
,
Container
(
height:
0.5
,
height:
0.5
.
w
,
color:
Colours
.
cF0
,
)
],
...
...
lib/pages/version_des/index.dart
浏览文件 @
c582e965
library
version_des
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'../../models/index.dart'
;
import
'../../utils/index.dart'
;
...
...
lib/pages/version_des/view.dart
浏览文件 @
c582e965
...
...
@@ -15,8 +15,8 @@ class VersionDesPage extends StatelessWidget {
title:
const
Text
(
'版本介绍'
),
),
body:
Container
(
margin:
const
EdgeInsets
.
all
(
15
),
child:
Text
(
model
.
remarks
??
''
,
style:
const
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c3
),),
margin:
EdgeInsets
.
all
(
15
.
w
),
child:
Text
(
model
.
remarks
??
''
,
style:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c3
),),
),
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论