提交 2c48e532 authored 作者: yueweilu's avatar yueweilu

书籍作者过长展示问题

上级 9b582660
...@@ -42,7 +42,8 @@ class BuildItem extends StatelessWidget { ...@@ -42,7 +42,8 @@ class BuildItem extends StatelessWidget {
height: 86.w, height: 86.w,
url: model.img??'', url: model.img??'',
), ),
Container( Expanded(
child: Container(
height: 87.w, height: 87.w,
margin: EdgeInsets.only(left: 13.w), margin: EdgeInsets.only(left: 13.w),
// color: Colors.green, // color: Colors.green,
...@@ -54,12 +55,13 @@ class BuildItem extends StatelessWidget { ...@@ -54,12 +55,13 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),), Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),),
Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),), Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),overflow: TextOverflow.ellipsis,maxLines: 2,),
], ],
), ),
Text('${model.commentNum.toString()}个讨论',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)), Text('${model.commentNum.toString()}个讨论',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)),
], ],
), ),
),
) )
], ],
), ),
......
...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget { ...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget {
height: 86.w, height: 86.w,
url: model.img??'', url: model.img??'',
), ),
Container( Expanded(
child: Container(
height: 87.w, height: 87.w,
margin: EdgeInsets.only(left: 13.w), margin: EdgeInsets.only(left: 13.w),
// color: Colors.green, // color: Colors.green,
...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget { ...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),), Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),),
Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),), Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),overflow: TextOverflow.ellipsis,maxLines: 2,),
], ],
), ),
Text('${model.commentNum.toString()}个讨论',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)), Text('${model.commentNum.toString()}个讨论',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)),
], ],
), ),
),
) )
], ],
), ),
......
...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget { ...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget {
height: 86.w, height: 86.w,
url: model.img??'', url: model.img??'',
), ),
Container( Expanded(
child: Container(
height: 87.w, height: 87.w,
margin: EdgeInsets.only(left: 13.w), margin: EdgeInsets.only(left: 13.w),
// color: Colors.green, // color: Colors.green,
...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget { ...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),), Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),),
Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),), Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),overflow: TextOverflow.ellipsis,maxLines: 2,),
], ],
), ),
Text('${model.notesNum.toString()}个笔记',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)), Text('${model.notesNum.toString()}个笔记',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)),
], ],
), ),
),
) )
], ],
), ),
......
...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget { ...@@ -37,7 +37,8 @@ class BuildItem extends StatelessWidget {
height: 86.w, height: 86.w,
url: model.img??'', url: model.img??'',
), ),
Container( Expanded(
child: Container(
height: 87.w, height: 87.w,
margin: EdgeInsets.only(left: 13.w), margin: EdgeInsets.only(left: 13.w),
// color: Colors.green, // color: Colors.green,
...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget { ...@@ -49,12 +50,13 @@ class BuildItem extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),), Text(model.bookName??'',style: TextStyle(fontSize: 14.w,height: 1.5,fontWeight: Fonts.medium,color: Colours.c3),),
Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),), Text(model.authors??'',style: TextStyle(fontSize: 12.w,height: 1.5,color: Colours.c6),overflow: TextOverflow.ellipsis,maxLines: 2,),
], ],
), ),
Text('${model.notesNum.toString()}个笔记',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)), Text('${model.notesNum.toString()}个笔记',style: TextStyle(fontSize: 11.w,height: 1.5,color: AppTheme.primary)),
], ],
), ),
),
) )
], ],
), ),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论