Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
a53af941
提交
a53af941
authored
2月 28, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、书籍评价星星没有按照评分显示
2、作者名称超长显示处理
上级
653c6632
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
29 行增加
和
24 行删除
+29
-24
book.dart
lib/pages/book_detail/widgets/book.dart
+2
-2
study.dart
lib/pages/book_detail/widgets/study.dart
+3
-2
view.dart
lib/pages/book_info/view.dart
+5
-2
controller.dart
lib/pages/library/controller.dart
+14
-14
cell.dart
lib/pages/library/widgets/cell.dart
+2
-1
view.dart
lib/pages/read_web/view.dart
+3
-3
没有找到文件。
lib/pages/book_detail/widgets/book.dart
浏览文件 @
a53af941
...
...
@@ -70,13 +70,13 @@ class BuildBook extends StatelessWidget {
),
Row
(
children:
[
Text
(
'¥
${model.vipPrice}
'
,
Text
(
'¥
${model.vipPrice
??''
}
'
,
style:
TextStyle
(
fontSize:
15
.
w
,
fontWeight:
FontWeight
.
w500
,
color:
AppTheme
.
primary
)),
Gaps
.
hGaps10
,
Text
(
'¥
${model.price}
'
,
Text
(
'¥
${model.price
??''
}
'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
...
...
lib/pages/book_detail/widgets/study.dart
浏览文件 @
a53af941
...
...
@@ -31,11 +31,12 @@ class _BuildStudyState extends State<BuildStudy> {
Text
(
'/5.0'
,
style:
TextStyle
(
fontSize:
18
.
w
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c9
),)
],
),
widget
.
model
.
rating
!=
null
?
AbsorbPointer
(
absorbing:
true
,
child:
CustomRating
(
max:
5
,
score:
widget
.
model
.
rating
!=
null
?
double
.
parse
(
widget
.
model
.
rating
!):
0
,
score:
double
.
parse
(
widget
.
model
.
rating
!)
,
star:
Star
(
progress:
7
,
fillColor:
AppTheme
.
primary
,
...
...
@@ -43,7 +44,7 @@ class _BuildStudyState extends State<BuildStudy> {
emptyColor:
Colours
.
cE2
,
),
onRating:
(
double
a
)
{},
),
),
)
:
const
SizedBox
()
,
],
),
),
...
...
lib/pages/book_info/view.dart
浏览文件 @
a53af941
...
...
@@ -116,9 +116,12 @@ class BookInfoPage extends StatelessWidget {
child:
Text
(
item
[
'name'
].
toString
(),
style:
const
TextStyle
(
fontSize:
15
,
height:
2.1
,
color:
Colours
.
c3
),),
),
Gaps
.
hGaps20
,
Container
(
Expanded
(
child:
Container
(
// color: Colors.red,
alignment:
Alignment
.
centerLeft
,
child:
Text
(
item
[
'value'
].
toString
(),
style:
const
TextStyle
(
fontSize:
15
,
height:
2.1
,
color:
Colours
.
c9
),
textAlign:
TextAlign
.
end
,),
child:
Text
(
item
[
'value'
].
toString
(),
style:
const
TextStyle
(
fontSize:
15
,
height:
2.1
,
color:
Colours
.
c9
),
textAlign:
TextAlign
.
end
,
overflow:
TextOverflow
.
ellipsis
,
maxLines:
1
),
),
),
],
);
...
...
lib/pages/library/controller.dart
浏览文件 @
a53af941
...
...
@@ -85,20 +85,20 @@ class LibraryController extends GetxController with GetTickerProviderStateMixin{
_getAds
();
onRefresh
();
Map
<
String
,
dynamic
>
data
=
{
'types'
:
1
,
'book_id'
:
175
,
'chapter_id'
:
334
,
'is_open'
:
1
,
'color'
:
'blue'
,
'content'
:
'This is a note content'
,
'upload'
:
0
,
'positioning'
:
'top'
,
'note_content'
:
'This is a note'
,
'node_id'
:
0
,
};
await
SqlManager
.
insertData
(
data
);
//
Map<String, dynamic> data = {
//
'types': 1,
//
'book_id': 175,
//
'chapter_id': 334,
//
'is_open': 1,
//
'color': 'blue',
//
'content': 'This is a note content',
//
'upload': 0,
//
'positioning': 'top',
//
'note_content': 'This is a note',
//
'node_id': 0,
//
};
//
//
await SqlManager.insertData(data);
final
result
=
await
Tools
.
checkCurrentNetStatus
();
// 有网络 并且是登录状态 的时候上传 笔记
...
...
lib/pages/library/widgets/cell.dart
浏览文件 @
a53af941
...
...
@@ -57,7 +57,8 @@ class LibraryCell extends StatelessWidget {
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
Expanded
(
child:
Text
(
model
.
authors
??
''
,
style:
TextStyle
(
fontSize:
11
.
w
,
color:
Colours
.
c9
,
height:
1.5
),
overflow:
TextOverflow
.
ellipsis
,
maxLines:
1
,)),
Gaps
.
hGaps10
,
Row
(
children:
[
Text
(
'
${model.readNum.toString()}
人读过'
,
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
Colours
.
cC7
)),
...
...
lib/pages/read_web/view.dart
浏览文件 @
a53af941
...
...
@@ -180,9 +180,9 @@ class _ReadPageState extends State<ReadPage> {
});
// 监听 上一节 下一节
controller
.
addJavaScriptHandler
(
handlerName:
'readCallBack'
,
callback:
(
args
){
Console
.
log
(
'监听 上一节 下一节------------------------------------------------
$args
'
);
});
//
controller.addJavaScriptHandler(handlerName: 'readCallBack', callback: (args){
//
Console.log('监听 上一节 下一节------------------------------------------------$args');
//
});
},
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论