Showing
3 changed files
with
37 additions
and
24 deletions
| @@ -12,14 +12,14 @@ if (flutterRoot == null) { | @@ -12,14 +12,14 @@ if (flutterRoot == null) { | ||
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | 14 | ||
| 15 | -def flutterVersionCode = "402" | 15 | +def flutterVersionCode = "403" |
| 16 | if (flutterVersionCode == null) { | 16 | if (flutterVersionCode == null) { |
| 17 | - flutterVersionCode = '402' | 17 | + flutterVersionCode = '403' |
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | -def flutterVersionName = "4.0.2" | 20 | +def flutterVersionName = "4.0.3" |
| 21 | if (flutterVersionName == null) { | 21 | if (flutterVersionName == null) { |
| 22 | - flutterVersionName = '4.0.2' | 22 | + flutterVersionName = '4.0.3' |
| 23 | } | 23 | } |
| 24 | apply plugin: 'com.android.application' | 24 | apply plugin: 'com.android.application' |
| 25 | apply plugin: 'kotlin-android' | 25 | apply plugin: 'kotlin-android' |
| @@ -31,6 +31,14 @@ class FeastBoardSunModel { | @@ -31,6 +31,14 @@ class FeastBoardSunModel { | ||
| 31 | String className; | 31 | String className; |
| 32 | String nickName; | 32 | String nickName; |
| 33 | String account; | 33 | String account; |
| 34 | + String talbeStr; | ||
| 35 | + | ||
| 36 | + String get talbeStrShow { | ||
| 37 | + if (talbeStr.endsWith('、')) { | ||
| 38 | + return talbeStr.substring(0, talbeStr.length - 1); | ||
| 39 | + } | ||
| 40 | + return talbeStr; | ||
| 41 | + } | ||
| 34 | 42 | ||
| 35 | FeastBoardSunModel( | 43 | FeastBoardSunModel( |
| 36 | {this.rname, | 44 | {this.rname, |
| @@ -38,7 +46,8 @@ class FeastBoardSunModel { | @@ -38,7 +46,8 @@ class FeastBoardSunModel { | ||
| 38 | this.rid, | 46 | this.rid, |
| 39 | this.className, | 47 | this.className, |
| 40 | this.nickName, | 48 | this.nickName, |
| 41 | - this.account}); | 49 | + this.account, |
| 50 | + this.talbeStr}); | ||
| 42 | 51 | ||
| 43 | FeastBoardSunModel.fromJson(Map<String, dynamic> json) { | 52 | FeastBoardSunModel.fromJson(Map<String, dynamic> json) { |
| 44 | rname = json['rname']; | 53 | rname = json['rname']; |
| @@ -47,6 +56,7 @@ class FeastBoardSunModel { | @@ -47,6 +56,7 @@ class FeastBoardSunModel { | ||
| 47 | className = json['class_name']; | 56 | className = json['class_name']; |
| 48 | nickName = json['nick_name']; | 57 | nickName = json['nick_name']; |
| 49 | account = json['account']; | 58 | account = json['account']; |
| 59 | + talbeStr = json['talbeStr']; | ||
| 50 | } | 60 | } |
| 51 | 61 | ||
| 52 | Map<String, dynamic> toJson() { | 62 | Map<String, dynamic> toJson() { |
| @@ -57,6 +67,7 @@ class FeastBoardSunModel { | @@ -57,6 +67,7 @@ class FeastBoardSunModel { | ||
| 57 | data['class_name'] = this.className; | 67 | data['class_name'] = this.className; |
| 58 | data['nick_name'] = this.nickName; | 68 | data['nick_name'] = this.nickName; |
| 59 | data['account'] = this.account; | 69 | data['account'] = this.account; |
| 70 | + data['talbeStr'] = this.talbeStr; | ||
| 60 | return data; | 71 | return data; |
| 61 | } | 72 | } |
| 62 | } | 73 | } |
| @@ -95,28 +95,30 @@ class _FeastBoardItemState extends State<FeastBoardItem> { | @@ -95,28 +95,30 @@ class _FeastBoardItemState extends State<FeastBoardItem> { | ||
| 95 | child: Row( | 95 | child: Row( |
| 96 | mainAxisSize: MainAxisSize.min, | 96 | mainAxisSize: MainAxisSize.min, |
| 97 | children: <Widget>[ | 97 | children: <Widget>[ |
| 98 | - Expanded( | ||
| 99 | - flex: 3, | ||
| 100 | - child: Container( | ||
| 101 | - height: h(24), | ||
| 102 | - // constraints: BoxConstraints.expand(), | ||
| 103 | - alignment: Alignment.centerLeft, | ||
| 104 | - margin: index == | ||
| 105 | - widget.boardModel.data[title] | ||
| 106 | - .length - | ||
| 107 | - 1 | ||
| 108 | - ? EdgeInsets.zero | ||
| 109 | - : EdgeInsets.only(bottom: h(16)), | ||
| 110 | - padding: EdgeInsets.symmetric( | ||
| 111 | - horizontal: w(4), vertical: w(2)), | ||
| 112 | - decoration: BoxDecoration( | ||
| 113 | - color: MyColours.color_438E93, | ||
| 114 | - borderRadius: | ||
| 115 | - BorderRadius.circular(w(5)), | 98 | + Container( |
| 99 | + height: h(24), | ||
| 100 | + // constraints: BoxConstraints.expand(), | ||
| 101 | + alignment: Alignment.centerLeft, | ||
| 102 | + margin: index == | ||
| 103 | + widget.boardModel.data[title] | ||
| 104 | + .length - | ||
| 105 | + 1 | ||
| 106 | + ? EdgeInsets.zero | ||
| 107 | + : EdgeInsets.only(bottom: h(16)), | ||
| 108 | + padding: EdgeInsets.symmetric( | ||
| 109 | + horizontal: w(4), vertical: w(2)), | ||
| 110 | + decoration: BoxDecoration( | ||
| 111 | + color: MyColours.color_438E93, | ||
| 112 | + borderRadius: BorderRadius.circular(w(5)), | ||
| 113 | + ), | ||
| 114 | + child: ConstrainedBox( | ||
| 115 | + constraints: BoxConstraints( | ||
| 116 | + maxWidth: w(227), | ||
| 116 | ), | 117 | ), |
| 117 | child: Text( | 118 | child: Text( |
| 118 | - '${boardSunModel.className}-${boardSunModel.rname}-桌子名称顿号隔开', | 119 | + '${boardSunModel.className}-${boardSunModel.rname}-${boardSunModel.talbeStrShow}', |
| 119 | overflow: TextOverflow.ellipsis, | 120 | overflow: TextOverflow.ellipsis, |
| 121 | + softWrap: true, | ||
| 120 | maxLines: 1, | 122 | maxLines: 1, |
| 121 | style: TextStyle( | 123 | style: TextStyle( |
| 122 | fontSize: font(14), | 124 | fontSize: font(14), |
-
Please register or login to post a comment