|
...
|
...
|
@@ -36,78 +36,82 @@ class NotebookItemState extends State<NoteBookItem>{ |
|
|
|
|
|
|
|
Color textColor=(notebook.status=="3"||notebook.status=="4"||notebook.status=="6")?MyColours.color_bfbfbf:MyColours.color_353535;
|
|
|
|
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: (){
|
|
|
|
NavigatorUtil.goNotebookDetailPage(context,notebook.id);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(110),
|
|
|
|
color: (widget.index % 2 == 0) ? MyColours.color_f7fdfd : MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(171),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.tableinfoStr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(230),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Text(notebook.rnameStr,style: TextStyle(color: textColor,fontSize: ScreenUtil().setSp(28)),),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(notebook.phoneStr,style: TextStyle(color: textColor,fontSize: ScreenUtil().setSp(22)),)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
return Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(110),
|
|
|
|
color: (widget.index % 2 == 0) ? MyColours.color_f7fdfd : MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
GestureDetector(
|
|
|
|
onTap: (){
|
|
|
|
NavigatorUtil.goNotebookDetailPage(context,notebook.id);
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(171),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.tableinfoStr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(230),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: <Widget>[
|
|
|
|
Text(notebook.rnameStr,style: TextStyle(color: textColor,fontSize: ScreenUtil().setSp(28)),),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(notebook.phoneStr,style: TextStyle(color: textColor,fontSize: ScreenUtil().setSp(22)),)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(159),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.ddateStr,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(159),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: _onOperateClick,
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(184),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.ddateStr,
|
|
|
|
notebook.operationText,
|
|
|
|
style: TextStyle(
|
|
|
|
color: textColor,
|
|
|
|
color: (notebook.status=="3"||notebook.status=="4"||notebook.status=="6")?MyColours.color_bfbfbf:MyColours.color_2bb5b7,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(1),
|
|
|
|
ScreenUtil().setHeight(90),
|
|
|
|
color: MyColours.color_ededed,
|
|
|
|
),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: _onOperateClick,
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(184),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.operationText,
|
|
|
|
style: TextStyle(
|
|
|
|
color: (notebook.status=="3"||notebook.status=="4"||notebook.status=="6")?MyColours.color_bfbfbf:MyColours.color_2bb5b7,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|