Commit bfcdeffd0c415864673da05a9c27f86091ee336c

Authored by weixin_45529955
1 parent eb7e7f6b

微信通知 小程序卡片封面宽度不够换航

Showing 1 changed file with 3 additions and 1 deletions
... ... @@ -3050,6 +3050,8 @@ class Utils {
String month =
'${Utils.addZeroNumber(date.month)}/${Utils.addZeroNumber(date.day)} ';
String week = returnWeek(date, context);
week = week.replaceAll(' ', '');
String hour = subType1 == '1' || subType1 == '3' ? '${ddateHm}' : '';
String section = subType1 == '1' || subType1 == '4'
? _getDsoltStrShow(dsolt, mname)
... ... @@ -3113,7 +3115,7 @@ class Utils {
pb3.addText(month + week);
// 设置文本的宽度约束
ParagraphConstraints pc3 = ui.ParagraphConstraints(width: 240);
ParagraphConstraints pc3 = ui.ParagraphConstraints(width:245);
ui.Paragraph paragraph3 = pb3.build()..layout(pc3);
canvas.drawParagraph(paragraph3,
Offset(subType1 == '1' ? 14 * scaleX : 35 * scaleX, 146 * scaleY));
... ...