Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
f9b7be66
提交
f9b7be66
authored
2月 28, 2024
作者:
maodou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.筛选ui
2.评价存在星星时不可点击,评价存在内容时不可点击修改
上级
a0fe5e17
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
68 行增加
和
85 行删除
+68
-85
filter.dart
lib/pages/library/widgets/filter.dart
+64
-62
view.dart
lib/pages/user_order_evaluate/view.dart
+4
-23
没有找到文件。
lib/pages/library/widgets/filter.dart
浏览文件 @
f9b7be66
...
...
@@ -28,75 +28,77 @@ class _FilterPageState extends State<FilterPage> {
return
Container
(
color:
const
Color
(
0xFF000000
).
withOpacity
(
0.5
),
child:
Column
(
children:
[
Container
(
color:
Colors
.
white
,
width:
double
.
infinity
,
padding:
EdgeInsets
.
only
(
bottom:
10
.
w
),
child:
Column
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
_buildWrapWidget
(
'分类'
,
widget
.
controller
.
filterCategories
),
_buildWrapWidget
(
'标签'
,
widget
.
controller
.
filterLabels
),
_buildWrapWidget
(
'是否收费'
,
widget
.
controller
.
filterFree
),
_buildWrapWidget
(
'排序'
,
widget
.
controller
.
filterDown
),
],
)
],
),
child:
SingleChildScrollView
(
child:
Column
(
children:
[
Container
(
color:
Colors
.
white
,
width:
double
.
infinity
,
padding:
EdgeInsets
.
only
(
bottom:
10
.
w
),
child:
Column
(
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
_buildWrapWidget
(
'分类'
,
widget
.
controller
.
filterCategories
),
_buildWrapWidget
(
'标签'
,
widget
.
controller
.
filterLabels
),
_buildWrapWidget
(
'是否收费'
,
widget
.
controller
.
filterFree
),
_buildWrapWidget
(
'排序'
,
widget
.
controller
.
filterDown
),
],
)
],
),
),
Container
(
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
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Expanded
(
child:
GestureDetector
(
onTap:
(){
widget
.
controller
.
resetFilter
();
},
child:
Container
(
alignment:
Alignment
.
center
,
height:
35
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
border:
Border
.
all
(
width:
0.5
.
w
,
color:
Colours
.
c9
),
Container
(
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
(
mainAxisAlignment:
MainAxisAlignment
.
spaceEvenly
,
children:
[
Expanded
(
child:
GestureDetector
(
onTap:
(){
widget
.
controller
.
resetFilter
();
},
child:
Container
(
alignment:
Alignment
.
center
,
height:
35
.
w
,
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
border:
Border
.
all
(
width:
0.5
.
w
,
color:
Colours
.
c9
),
// color: Colours.cE0.withOpacity(0.5),
),
// color: Colours.cE0.withOpacity(0.5),
// padding: EdgeInsets.symmetric(vertical: 8),
child:
Text
(
'重置'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
),
// padding: EdgeInsets.symmetric(vertical: 8),
child:
Text
(
'重置'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
Colours
.
c9
,
height:
1.5
),),
),
),
),
Gaps
.
hGaps10
,
Expanded
(
child:
GestureDetector
(
onTap:
widget
.
sureTap
,
child:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
color:
AppTheme
.
primary
.
withOpacity
(
0.1
)
Gaps
.
hGaps10
,
Expanded
(
child:
GestureDetector
(
onTap:
widget
.
sureTap
,
child:
Container
(
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
17.5
.
w
),
color:
AppTheme
.
primary
.
withOpacity
(
0.1
)
),
height:
35
.
w
,
alignment:
Alignment
.
center
,
padding:
EdgeInsets
.
symmetric
(
vertical:
8
.
w
),
child:
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
AppTheme
.
primary
,
height:
1.5
),),
),
height:
35
.
w
,
alignment:
Alignment
.
center
,
padding:
EdgeInsets
.
symmetric
(
vertical:
8
.
w
),
child:
Text
(
'确定'
,
style:
TextStyle
(
fontSize:
13
.
w
,
color:
AppTheme
.
primary
,
height:
1.5
),),
),
)
,
)
]
,
)
,
)
]
,
)
],
)
,
)
],
)
,
),
);
}
...
...
lib/pages/user_order_evaluate/view.dart
浏览文件 @
f9b7be66
...
...
@@ -194,7 +194,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
),
Gaps
.
hGaps20
,
AbsorbPointer
(
absorbing:
false
,
absorbing:
bookListModel
.
rating
!.
toDouble
()>
0
,
child:
CustomRating
(
max:
5
,
score:
bookListModel
.
rating
!=
null
?
bookListModel
.
rating
!.
toDouble
():
0
,
...
...
@@ -221,18 +221,20 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
focusedBorder:
InputBorder
.
none
,
border:
InputBorder
.
none
,
enabledBorder:
InputBorder
.
none
,
disabledBorder:
InputBorder
.
none
,
errorBorder:
InputBorder
.
none
,
fillColor:
Colors
.
white
,
hintText:
'请简要描述'
,
hintStyle:
TextStyle
(
fontSize:
14
.
w
,
height:
1.5
,
color:
Colours
.
c6
)),
maxLines:
5
,
maxLines:
5
,
onChanged:
(
text
){
orderEvaluates
[
index
].
comments
=
myController
.
_commentsControllers
[
index
].
text
;
myController
.
setCanClick
(
double
:
orderEvaluates
[
index
].
rating
??
0
);
},
focusNode:
myController
.
_focusNode
,
controller:
myController
.
_commentsControllers
[
index
],
enabled:
myController
.
_commentsControllers
[
index
].
text
.
isEmpty
,
onTap:
()
{
// 在文本框获取焦点时,将光标移动到文本末尾
myController
.
_commentsControllers
[
index
].
selection
=
TextSelection
.
fromPosition
(
...
...
@@ -240,27 +242,6 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
);
},
),
// CustomInputCommands(
// decoration: InputDecoration(
// focusedBorder: InputBorder.none,
// border: InputBorder.none,
// enabledBorder: InputBorder.none,
// errorBorder: InputBorder.none,
// fillColor: Colors.white,
// hintStyle: TextStyle(
// fontSize: 14.w, height: 1.5, color: Colours.c6)),
// maxLines: 5,
// controller: myController.commentsInput,
// hintText: '请简要描述',
// onChanged: (text){
// myController.setCanClick();
// print(myController.commentsInput.text);
// orderEvaluates[index].comments=myController.commentsInput.text;
// },
// focusNode: myController._focusNode,
// ),
],
),
),
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论