提交 2ee406b4 authored 作者: 岳维路's avatar 岳维路

合并分支 'test' 到 'sim'

Test 查看合并请求 kiwitap/zijing-app!23
......@@ -134,32 +134,42 @@ class _BuildItemState extends State<BuildItem> {
// });
},
child: Container(
padding: EdgeInsets.symmetric(horizontal: 15.w),
padding: EdgeInsets.only(left: 15.w),
height: 40.w,
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(chapterModel.name??'',style: TextStyle(fontSize: 14.w,color: chapterModel.currentRead?AppTheme.primary:chapterModel.seen ==0? Colours.c3:Colours.c9,fontWeight: Fonts.medium,height: 2),),
Gaps.hGaps5,
chapterModel.isReading == 1? Container(
margin: const EdgeInsets.fromLTRB(0, 6, 0, 0),
height: 18,
width: 18,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.5.w),
border: Border.all(width:1,color: AppTheme.primary)
),
child: Text('试',style: TextStyle(fontSize: 11.w,color: AppTheme.primary),),
):const SizedBox(),
],
Expanded(
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Expanded(child: Container(
color: Colors.white,
child: Text(chapterModel.name??'',style: TextStyle(fontSize: 14.w,color: chapterModel.currentRead?AppTheme.primary:chapterModel.seen ==0? Colours.c3:Colours.c9,fontWeight: Fonts.medium,height: 2),maxLines: 1,overflow:TextOverflow.ellipsis))),
Gaps.hGaps5,
chapterModel.isReading == 1? Container(
margin: const EdgeInsets.fromLTRB(0, 6, 0, 0),
height: 18,
width: 18,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.5.w),
border: Border.all(width:1,color: AppTheme.primary)
),
child: Text('试',style: TextStyle(fontSize: 11.w,color: AppTheme.primary),),
):const SizedBox(),
],
),
),
chapterModel.children!.isEmpty?const SizedBox(): Transform.rotate(
chapterModel.children!.isEmpty?Container(
margin: EdgeInsets.only(left: 15.w,right: 15.w),
width: 12.w,
height: 6.w,
// color: Colors.red,
// child: Image.asset('assets/images/down.png')
): Transform.rotate(
angle: chapterModel.selected?0:-90 * (3.141592653589793 / 180),
child: GestureDetector(
onTap: (){
......@@ -167,7 +177,8 @@ class _BuildItemState extends State<BuildItem> {
chapterModel.selected = !chapterModel.selected;
});
},
child: SizedBox(
child: Container(
margin: EdgeInsets.only(left: 15.w,right: 15.w),
width: 12.w,
height: 6.w,
// color: Colors.red,
......
......@@ -118,23 +118,27 @@ class _LoginPageState extends State<LoginPage> {
},
),
Positioned(
right: 10.w,
child: Row(
children: [
Container(height: 20.w,width: 1,color: const Color(0xFFEBEBEB),),
Gaps.hGaps10,
GestureDetector(
child: Container(
padding: EdgeInsets.symmetric(vertical: 10.w),
// color: Colors.yellow,
child: Text(controller.isCounting?'${controller.countDown}':'获取验证码',style: TextStyle(fontSize: 11.w,color: AppTheme.primary,height: 1.4),)),
onTap: (){
if (controller.isCounting == false){
controller.sendCode();
}
},
right: 0.w,
child: GestureDetector(
onTap: (){
if (controller.isCounting == false){
controller.sendCode();
}
},
child: Container(
color: Colors.transparent,
child: Row(
children: [
Container(height: 20.w,width: 1,color: const Color(0xFFEBEBEB),),
Gaps.hGaps10,
Container(
// color: Colors.red,
padding: EdgeInsets.only(top: 10.w,bottom: 10.w,right: 10.w),
// color: Colors.yellow,
child: Text(controller.isCounting?'${controller.countDown}':'获取验证码',style: TextStyle(fontSize: 11.w,color: AppTheme.primary,height: 1.4),)),
],
),
],
),
)
)
],
......@@ -193,16 +197,19 @@ class _LoginPageState extends State<LoginPage> {
controller.setAgree();
},
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(
width: 14.w,
height: 14.w,
Container(
color: Colors.white,
width: 30.w,
height: 30.w,
// color: AppTheme.primary,
padding: EdgeInsets.only(left: 9.w,top: 8.w,bottom: 6.w,right: 5.w),
child: Image.asset(
controller.agree?'assets/images/check_box_select.png':'assets/images/uncheck.png',fit: BoxFit.contain,
controller.agree?'assets/images/check_box_select.png':'assets/images/uncheck.png',fit: BoxFit.contain
),
),
Gaps.hGaps5,
// Gaps.hGaps5,
Text('我已阅读并同意',style: TextStyle(color: Colours.c9,fontSize:14.w,height: 1.4)),
],
),
......
......@@ -45,15 +45,15 @@ class _ReadPageState extends State<ReadPage> {
),
centerTitle: false,
actions: [
GestureDetector(
onTap: () {
readController.getBookDown();
},
child: Text(
readController.existDownFile == true?'':'离线阅读',
style: TextStyle(
fontSize: 14.w, color: Colours.c3),
))
// GestureDetector(
// onTap: () {
// readController.getBookDown();
// },
// child: Text(
// readController.existDownFile == true?'':'离线阅读',
// style: TextStyle(
// fontSize: 14.w, color: Colours.c3),
// ))
],
),
resizeToAvoidBottomInset: false,
......
......@@ -121,17 +121,18 @@ class _BuildItemState extends State<BuildItem> {
// });
},
child: Container(
padding: EdgeInsets.symmetric(horizontal: 15.w),
padding: EdgeInsets.only(left: 15.w),
height: 40.w,
color: Colors.white,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Row(
Expanded(child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(chapterModel.name??'',style: TextStyle(fontSize: 14.w,color: chapterModel.currentRead ?AppTheme.primary: chapterModel.seen ==0? Colours.c3:Colours.c9,fontWeight: Fonts.medium,height: 2),),
Expanded(child:Text(chapterModel.name??'',style: TextStyle(fontSize: 14.w,color: chapterModel.currentRead ?AppTheme.primary: chapterModel.seen ==0? Colours.c3:Colours.c9,fontWeight: Fonts.medium,height: 2,),maxLines: 1,overflow: TextOverflow.ellipsis,),
),
Gaps.hGaps5,
chapterModel.isReading == 1? Container(
margin: const EdgeInsets.fromLTRB(0, 6, 0, 0),
......@@ -145,8 +146,13 @@ class _BuildItemState extends State<BuildItem> {
child: Text('试',style: TextStyle(fontSize: 11.w,color: AppTheme.primary),),
):const SizedBox(),
],
),
chapterModel.children!.isEmpty?const SizedBox(): Transform.rotate(
),),
chapterModel.children!.isEmpty?Container(
margin: EdgeInsets.only(left: 15.w,right: 15.w),
width: 12.w,
height: 6.w,
// color: Colors.red,
): Transform.rotate(
angle: chapterModel.selected?0:-90 * (3.141592653589793 / 180),
child: GestureDetector(
onTap: (){
......@@ -155,6 +161,7 @@ class _BuildItemState extends State<BuildItem> {
});
},
child: Container(
margin: EdgeInsets.only(left: 15.w,right: 15.w),
width: 12.w,
height: 6.w,
// color: Colors.red,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论