Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
1cb79a92
提交
1cb79a92
authored
3月 22, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
筛选可滑动
上级
99b6ddc8
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
68 行增加
和
64 行删除
+68
-64
filter.dart
lib/pages/library/widgets/filter.dart
+68
-64
没有找到文件。
lib/pages/library/widgets/filter.dart
浏览文件 @
1cb79a92
...
...
@@ -32,78 +32,82 @@ class _FilterPageState extends State<FilterPage> {
},
child:
Container
(
color:
const
Color
(
0xFF000000
).
withOpacity
(
0.5
),
child:
Column
(
children:
[
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
(){},
child:
Container
(
color:
Colors
.
white
,
width:
double
.
infinity
,
padding:
EdgeInsets
.
only
(
bottom:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
widget
.
controller
.
filterCategories
.
isEmpty
?
const
SizedBox
():
_buildWrapWidget
(
'分类'
,
widget
.
controller
.
filterCategories
),
widget
.
controller
.
filterLabels
.
isEmpty
?
const
SizedBox
():
_buildWrapWidget
(
'标签'
,
widget
.
controller
.
filterLabels
),
_buildWrapWidget
(
'是否收费'
,
widget
.
controller
.
filterFree
),
_buildWrapWidget
(
'排序'
,
widget
.
controller
.
filterDown
),
],
)
],
),
// color: Colors.red,
child:
SingleChildScrollView
(
child:
Column
(
// mainAxisSize: MainAxisSize.min,
children:
[
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
(){},
child:
Container
(
color:
Colors
.
white
,
width:
double
.
infinity
,
padding:
EdgeInsets
.
only
(
bottom:
10
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
widget
.
controller
.
filterCategories
.
isEmpty
?
const
SizedBox
():
_buildWrapWidget
(
'分类'
,
widget
.
controller
.
filterCategories
),
widget
.
controller
.
filterLabels
.
isEmpty
?
const
SizedBox
():
_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
.
resetTap
,
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
.
resetTap
,
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
),),
),
)
,
)
]
,
)
,
)
]
,
)
],
)
,
)
],
)
,
),
),
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论