mod: sys notice align

This commit is contained in:
guozhigq
2024-10-24 00:49:10 +08:00
parent 13e7a50a89
commit 27c7a34e20

View File

@ -153,6 +153,7 @@ class ChatItem extends StatelessWidget {
jsonDecode(content['content']) jsonDecode(content['content'])
.map((m) => m['text'] as String) .map((m) => m['text'] as String)
.join("\n"), .join("\n"),
textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
letterSpacing: 0.6, letterSpacing: 0.6,
height: 5, height: 5,
@ -359,39 +360,40 @@ class ChatItem extends StatelessWidget {
), ),
const SizedBox(width: 6), const SizedBox(width: 6),
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
i['field1'], i['field1'],
maxLines: 2, maxLines: 2,
style: TextStyle( style: TextStyle(
letterSpacing: 0.6, letterSpacing: 0.6,
height: 1.5, height: 1.5,
color: textColor(context), color: textColor(context),
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
),
), ),
), Text(
Text( i['field2'],
i['field2'], style: TextStyle(
style: TextStyle( letterSpacing: 0.6,
letterSpacing: 0.6, height: 1.5,
height: 1.5, color: textColor(context).withOpacity(0.6),
color: textColor(context).withOpacity(0.6), fontSize: 12,
fontSize: 12, ),
), ),
), Text(
Text( i['field3'],
i['field3'], style: TextStyle(
style: TextStyle( letterSpacing: 0.6,
letterSpacing: 0.6, height: 1.5,
height: 1.5, color: textColor(context).withOpacity(0.6),
color: textColor(context).withOpacity(0.6), fontSize: 12,
fontSize: 12, ),
), ),
), ],
], ),
)), ),
], ],
), ),
), ),