Showing
4 changed files
with
18 additions
and
9 deletions
| @@ -59,9 +59,13 @@ class NotebookItemState extends State<NoteBookItem> { | @@ -59,9 +59,13 @@ class NotebookItemState extends State<NoteBookItem> { | ||
| 59 | children: <Widget>[ | 59 | children: <Widget>[ |
| 60 | Container( | 60 | Container( |
| 61 | width: ScreenUtil().setWidth(171), | 61 | width: ScreenUtil().setWidth(171), |
| 62 | + padding: EdgeInsets.symmetric( | ||
| 63 | + horizontal: ScreenUtil().setWidth(24)), | ||
| 62 | alignment: Alignment.center, | 64 | alignment: Alignment.center, |
| 63 | child: Text( | 65 | child: Text( |
| 64 | notebook.tableinfoStr?.trim(), | 66 | notebook.tableinfoStr?.trim(), |
| 67 | + maxLines: 2, | ||
| 68 | + overflow: TextOverflow.ellipsis, | ||
| 65 | style: TextStyle( | 69 | style: TextStyle( |
| 66 | color: textColor, | 70 | color: textColor, |
| 67 | // fontWeight: FontWeight.bold, | 71 | // fontWeight: FontWeight.bold, |
| @@ -81,6 +85,9 @@ class NotebookItemState extends State<NoteBookItem> { | @@ -81,6 +85,9 @@ class NotebookItemState extends State<NoteBookItem> { | ||
| 81 | children: <Widget>[ | 85 | children: <Widget>[ |
| 82 | Text( | 86 | Text( |
| 83 | notebook.rnameStr, | 87 | notebook.rnameStr, |
| 88 | + // 'nnnnnnnnnnnnnn', | ||
| 89 | + maxLines: 1, | ||
| 90 | + overflow: TextOverflow.ellipsis, | ||
| 84 | style: TextStyle( | 91 | style: TextStyle( |
| 85 | color: textColor, | 92 | color: textColor, |
| 86 | // fontWeight: FontWeight.bold, | 93 | // fontWeight: FontWeight.bold, |
| @@ -89,6 +96,8 @@ class NotebookItemState extends State<NoteBookItem> { | @@ -89,6 +96,8 @@ class NotebookItemState extends State<NoteBookItem> { | ||
| 89 | VEmptyView(10), | 96 | VEmptyView(10), |
| 90 | Text( | 97 | Text( |
| 91 | notebook.phoneStr, | 98 | notebook.phoneStr, |
| 99 | + maxLines: 1, | ||
| 100 | + overflow: TextOverflow.ellipsis, | ||
| 92 | style: TextStyle( | 101 | style: TextStyle( |
| 93 | color: textColor, | 102 | color: textColor, |
| 94 | // fontWeight: FontWeight.bold, | 103 | // fontWeight: FontWeight.bold, |
| @@ -429,7 +429,7 @@ class NoteBookPageState extends State<NoteBookPage> { | @@ -429,7 +429,7 @@ class NoteBookPageState extends State<NoteBookPage> { | ||
| 429 | (BuildContext context, int index) { | 429 | (BuildContext context, int index) { |
| 430 | return NoteBookItem(model.notebooks[index], index); | 430 | return NoteBookItem(model.notebooks[index], index); |
| 431 | }, childCount: model.notebooks.length), | 431 | }, childCount: model.notebooks.length), |
| 432 | - itemExtent: ScreenUtil().setHeight(112), | 432 | + itemExtent: ScreenUtil().setWidth(112), |
| 433 | ) | 433 | ) |
| 434 | ], | 434 | ], |
| 435 | onRefresh: () async { | 435 | onRefresh: () async { |
| @@ -107,13 +107,12 @@ class NewTableItemState extends State<NewTableItem> { | @@ -107,13 +107,12 @@ class NewTableItemState extends State<NewTableItem> { | ||
| 107 | fontWeight: FontWeight.normal), | 107 | fontWeight: FontWeight.normal), |
| 108 | overflow: TextOverflow.ellipsis, | 108 | overflow: TextOverflow.ellipsis, |
| 109 | strutStyle: StrutStyle( | 109 | strutStyle: StrutStyle( |
| 110 | - forceStrutHeight: true, | ||
| 111 | - height: 1, | ||
| 112 | - leading: 0.2), | 110 | + forceStrutHeight: true, |
| 111 | + height: ScreenUtil().setWidth(2), | ||
| 112 | + // leading: ScreenUtil().setWidth(0.4) | ||
| 113 | + ), | ||
| 113 | ), | 114 | ), |
| 114 | - ) | ||
| 115 | - | ||
| 116 | - ), | 115 | + )), |
| 117 | // Text( | 116 | // Text( |
| 118 | // table.name, | 117 | // table.name, |
| 119 | // maxLines: 2, | 118 | // maxLines: 2, |
| @@ -144,8 +144,9 @@ class TableItemState extends State<TableItem> { | @@ -144,8 +144,9 @@ class TableItemState extends State<TableItem> { | ||
| 144 | overflow: TextOverflow.ellipsis, | 144 | overflow: TextOverflow.ellipsis, |
| 145 | strutStyle: StrutStyle( | 145 | strutStyle: StrutStyle( |
| 146 | forceStrutHeight: true, | 146 | forceStrutHeight: true, |
| 147 | - height: 1, | ||
| 148 | - leading: 0.2), | 147 | + height: ScreenUtil().setWidth(2), |
| 148 | + // leading: ScreenUtil().setWidth(0.4) | ||
| 149 | + ), | ||
| 149 | ), | 150 | ), |
| 150 | ) | 151 | ) |
| 151 | // Text( | 152 | // Text( |
-
Please register or login to post a comment