Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
21ceea79
提交
21ceea79
authored
3月 15, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
UI 修改
上级
2fddab5b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
121 行增加
和
101 行删除
+121
-101
item.dart
lib/pages/book_category/widgets/item.dart
+2
-2
item.dart
lib/pages/help_center/widgets/item.dart
+1
-1
view.dart
lib/pages/main/view.dart
+73
-60
item.dart
lib/pages/study_history/widgets/item.dart
+4
-3
card.dart
lib/pages/study_report/widgets/card.dart
+39
-33
input.dart
lib/widgets/input.dart
+2
-2
没有找到文件。
lib/pages/book_category/widgets/item.dart
浏览文件 @
21ceea79
...
...
@@ -167,8 +167,8 @@ class _BuildItemState extends State<BuildItem> {
});
},
child:
SizedBox
(
width:
20
.
w
,
height:
20
.
w
,
width:
12
.
w
,
height:
6
.
w
,
// color: Colors.red,
child:
Image
.
asset
(
'assets/images/down.png'
)
),
...
...
lib/pages/help_center/widgets/item.dart
浏览文件 @
21ceea79
...
...
@@ -27,7 +27,7 @@ class BuildItem extends StatelessWidget {
child:
Text
(
model
.
helpTitle
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.5
.
w
,
color:
Colours
.
c
9
),
fontSize:
12
.
w
,
height:
1.5
.
w
,
color:
Colours
.
c
3
),
),
),
],
...
...
lib/pages/main/view.dart
浏览文件 @
21ceea79
...
...
@@ -47,78 +47,91 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver{
),
bottomNavigationBar:
GetBuilder
<
MainController
>(
id:
'navigation'
,
builder:
(
controller
)
=>
BottomNavigationBar
(
currentIndex:
controller
.
currentPage
,
onTap:
(
page
){
if
(
page
!=
1
&&
!
UserStore
.
to
.
isLogin
)
{
context
.
pushNamed
(
Routes
.
login
);
}
else
{
controller
.
pageController
.
jumpToPage
(
page
);
}
// controller.pageController.jumpToPage(page);
},
items:
[
BottomNavigationBarItem
(
builder:
(
controller
)
=>
Container
(
decoration:
BoxDecoration
(
color:
Colors
.
white
,
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFE0E0E0
).
withOpacity
(
0.5
),
spreadRadius:
0
,
blurRadius:
4.5
,
offset:
const
Offset
(
0
,
0
),
),
],
),
child:
BottomNavigationBar
(
currentIndex:
controller
.
currentPage
,
onTap:
(
page
){
if
(
page
!=
1
&&
!
UserStore
.
to
.
isLogin
)
{
context
.
pushNamed
(
Routes
.
login
);
}
else
{
controller
.
pageController
.
jumpToPage
(
page
);
}
// controller.pageController.jumpToPage(page);
},
items:
[
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/course.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
activeIcon:
Image
.
asset
(
'assets/images/course_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
label:
'课程'
,
),
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/
course
.png'
,
'assets/images/
library
.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
activeIcon:
Image
.
asset
(
'assets/images/
course
_select.png'
,
'assets/images/
library
_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
label:
'课程'
,
),
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/library.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
activeIcon:
Image
.
asset
(
'assets/images/library_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
label:
'图书馆'
,
),
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/shujia.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
activeIcon:
Image
.
asset
(
'assets/images/shujia_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
label:
'图书馆'
,
),
label:
'书架'
,
),
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/mine.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
)
,
activeIcon:
Image
.
asset
(
'assets/images/mine_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/shujia.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
)
,
activeIcon:
Image
.
asset
(
'assets/images/shujia_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
)
,
label:
'书架'
,
),
label:
'我的'
,
)
]
BottomNavigationBarItem
(
icon:
Image
.
asset
(
'assets/images/mine.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
activeIcon:
Image
.
asset
(
'assets/images/mine_select.png'
,
width:
25
,
height:
27.5
,
fit:
BoxFit
.
cover
,
),
label:
'我的'
,
)
]
),
),
),
)
...
...
lib/pages/study_history/widgets/item.dart
浏览文件 @
21ceea79
...
...
@@ -82,10 +82,11 @@ class BuildDayItem extends StatelessWidget {
Expanded
(
child:
Container
(
// color: Colors.green,
height:
86
.
w
,
padding:
EdgeInsets
.
only
(
top:
2.5
.
w
,
left:
13
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
//
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
...
...
@@ -95,7 +96,7 @@ class BuildDayItem extends StatelessWidget {
Text
(
courseModel
.
authors
??
''
,
style:
TextStyle
(
fontSize:
12
.
w
,
height:
1.4
,
color:
Colours
.
c6
),),
],
),
Gaps
.
vGaps25
,
//
Gaps.vGaps25,
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
...
...
@@ -107,7 +108,7 @@ class BuildDayItem extends StatelessWidget {
// Spacer(),
Container
(
width:
120
,
alignment:
Alignment
.
center
Righ
t
,
alignment:
Alignment
.
center
Lef
t
,
child:
Text
(
'上次读到:
${courseModel.lastChapter}
'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.3
,
color:
Colours
.
c6
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
)
],
...
...
lib/pages/study_report/widgets/card.dart
浏览文件 @
21ceea79
...
...
@@ -24,44 +24,50 @@ class BuildCard extends StatelessWidget {
right:
0
,
child:
Container
(
padding:
EdgeInsets
.
only
(
left:
17.5
.
w
,
top:
25
.
w
,
right:
20
.
w
,
bottom:
20
.
w
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
end
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Expanded
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
18
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
Gaps
.
vGaps15
,
Row
(
Text
(
model
.
bookName
??
''
,
style:
TextStyle
(
fontSize:
18
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
crossAxisAlignment:
CrossAxisAlignment
.
end
,
children:
[
Expanded
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
start
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Text
(
'学习总进度'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
hGaps15
,
Text
(
model
.
progress
??
''
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
// Text(model.bookName??'',style: TextStyle(fontSize: 18.w,height: 1.4,color: Colors.white,fontWeight: Fonts.boldSemi),),
Gaps
.
vGaps15
,
Row
(
children:
[
Text
(
'学习总进度'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
hGaps15
,
Text
(
model
.
progress
??
''
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
]
),
Gaps
.
vGaps10
,
Row
(
children:
[
Text
(
'学习总时长'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
hGaps15
,
Text
(
'
${model.readSecond??''}
分钟'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
]
),
Gaps
.
vGaps10
,
Text
(
'上次读到'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
vGaps5
,
Text
(
model
.
lastChapter
??
''
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
]
),
Gaps
.
vGaps10
,
Row
(
children:
[
Text
(
'学习总时长'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
hGaps15
,
Text
(
'
${model.readSecond??''}
分钟'
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),),
]
),
Gaps
.
vGaps10
,
Text
(
'上次读到'
,
style:
TextStyle
(
fontSize:
15
.
w
,
height:
1.4
,
color:
Colors
.
white
),),
Gaps
.
vGaps5
,
Text
(
model
.
lastChapter
??
''
,
style:
TextStyle
(
fontSize:
16
.
w
,
height:
1.4
,
color:
Colors
.
white
,
fontWeight:
Fonts
.
boldSemi
),
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,),
]
),
),
CustomCard
(
url:
model
.
img
??
''
,
height:
120
.
w
,
width:
100
.
w
,
)
],
),
Container
(
height:
120
.
w
,
width:
100
.
w
,
child:
CustomImage
.
network
(
url:
model
.
img
??
''
),
)
],
),
)
...
...
lib/widgets/input.dart
浏览文件 @
21ceea79
...
...
@@ -378,8 +378,8 @@ class CustomInputSearch extends StatelessWidget {
onTap:
onTap
,
style:
TextStyle
(
// fontFamily: 'Sans',
fontSize:
1
6
.
w
,
height:
1.
2
,
fontSize:
1
2
.
w
,
height:
1.
5
,
),
decoration:
InputDecoration
(
border:
OutlineInputBorder
(
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论