提交 843d638a authored 作者: yueweilu's avatar yueweilu

Merge remote-tracking branch 'origin/test' into test

...@@ -28,75 +28,77 @@ class _FilterPageState extends State<FilterPage> { ...@@ -28,75 +28,77 @@ class _FilterPageState extends State<FilterPage> {
return Container( return Container(
color: const Color(0xFF000000).withOpacity(0.5), color: const Color(0xFF000000).withOpacity(0.5),
child: Column( child: SingleChildScrollView(
children: [ child: Column(
Container( children: [
color: Colors.white, Container(
width: double.infinity, color: Colors.white,
padding: EdgeInsets.only(bottom: 10.w), width: double.infinity,
child: Column( padding: EdgeInsets.only(bottom: 10.w),
children: [ child: Column(
Column( children: [
crossAxisAlignment: CrossAxisAlignment.start, Column(
children: [ crossAxisAlignment: CrossAxisAlignment.start,
_buildWrapWidget('分类', widget.controller.filterCategories), children: [
_buildWrapWidget('标签', widget.controller.filterLabels), _buildWrapWidget('分类', widget.controller.filterCategories),
_buildWrapWidget('是否收费', widget.controller.filterFree), _buildWrapWidget('标签', widget.controller.filterLabels),
_buildWrapWidget('排序', widget.controller.filterDown), _buildWrapWidget('是否收费', widget.controller.filterFree),
], _buildWrapWidget('排序', widget.controller.filterDown),
) ],
], )
), ],
),
), ),
Container( Container(
padding: EdgeInsets.only(left:10.w,right:10.w,top:30.w,bottom:10.w), padding: EdgeInsets.only(left:10.w,right:10.w,top:30.w,bottom:10.w),
color: Colors.white, color: Colors.white,
// margin: const EdgeInsets.symmetric(horizontal: 15), // margin: const EdgeInsets.symmetric(horizontal: 15),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [ children: [
Expanded( Expanded(
child: GestureDetector( child: GestureDetector(
onTap: (){ onTap: (){
widget.controller.resetFilter(); widget.controller.resetFilter();
}, },
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
height: 35.w, height: 35.w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(17.5.w), borderRadius: BorderRadius.circular(17.5.w),
border:Border.all( border:Border.all(
width: 0.5.w, width: 0.5.w,
color: Colours.c9 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,
Gaps.hGaps10, Expanded(
Expanded( child: GestureDetector(
child: GestureDetector( onTap: widget.sureTap,
onTap: widget.sureTap, child: Container(
child: Container( decoration: BoxDecoration(
decoration: BoxDecoration( borderRadius: BorderRadius.circular(17.5.w),
borderRadius: BorderRadius.circular(17.5.w), color: AppTheme.primary.withOpacity(0.1)
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),),
), ),
), )
) ],
], ),
), )
) ],
], ),
), ),
); );
} }
......
...@@ -194,7 +194,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto ...@@ -194,7 +194,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
), ),
Gaps.hGaps20, Gaps.hGaps20,
AbsorbPointer( AbsorbPointer(
absorbing: false, absorbing: bookListModel.rating!.toDouble()>0,
child: CustomRating( child: CustomRating(
max: 5, max: 5,
score:bookListModel.rating !=null ?bookListModel.rating!.toDouble():0, score:bookListModel.rating !=null ?bookListModel.rating!.toDouble():0,
...@@ -221,18 +221,20 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto ...@@ -221,18 +221,20 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
focusedBorder: InputBorder.none, focusedBorder: InputBorder.none,
border: InputBorder.none, border: InputBorder.none,
enabledBorder: InputBorder.none, enabledBorder: InputBorder.none,
disabledBorder: InputBorder.none,
errorBorder: InputBorder.none, errorBorder: InputBorder.none,
fillColor: Colors.white, fillColor: Colors.white,
hintText: '请简要描述', hintText: '请简要描述',
hintStyle: TextStyle( hintStyle: TextStyle(
fontSize: 14.w, height: 1.5, color: Colours.c6)), fontSize: 14.w, height: 1.5, color: Colours.c6)),
maxLines: 5, maxLines: 5,
onChanged: (text){ onChanged: (text){
orderEvaluates[index].comments=myController._commentsControllers[index].text; orderEvaluates[index].comments=myController._commentsControllers[index].text;
myController.setCanClick(double:orderEvaluates[index].rating??0); myController.setCanClick(double:orderEvaluates[index].rating??0);
}, },
focusNode: myController._focusNode, focusNode: myController._focusNode,
controller: myController._commentsControllers[index], controller: myController._commentsControllers[index],
enabled: myController._commentsControllers[index].text.isEmpty,
onTap: () { onTap: () {
// 在文本框获取焦点时,将光标移动到文本末尾 // 在文本框获取焦点时,将光标移动到文本末尾
myController._commentsControllers[index].selection = TextSelection.fromPosition( myController._commentsControllers[index].selection = TextSelection.fromPosition(
...@@ -240,27 +242,6 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto ...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论