Formatting tweaks
This commit is contained in:
parent
55f634d173
commit
3577059cc0
|
@ -21,7 +21,7 @@ class MessageItem extends StatelessWidget {
|
||||||
final textTheme = theme.textTheme;
|
final textTheme = theme.textTheme;
|
||||||
final s = message.incoming ? message.sender : message.recipient;
|
final s = message.incoming ? message.sender : message.recipient;
|
||||||
final initial = (s == null || s.isEmpty) ? "?" : s[0];
|
final initial = (s == null || s.isEmpty) ? "?" : s[0];
|
||||||
final width = MediaQuery.of(context).size.width;
|
final width = MediaQuery.of(context).size.width - 96;
|
||||||
|
|
||||||
final messageDate = message.timestamp.toLocal();
|
final messageDate = message.timestamp.toLocal();
|
||||||
final now = DateTime.now();
|
final now = DateTime.now();
|
||||||
|
@ -71,7 +71,7 @@ class MessageItem extends StatelessWidget {
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Container(width: width * 0.8,
|
Container(width: width,
|
||||||
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
|
||||||
Text(message.fromto(), style: unreadStyle(textTheme.caption)),
|
Text(message.fromto(), style: unreadStyle(textTheme.caption)),
|
||||||
Text(dateString)
|
Text(dateString)
|
||||||
|
@ -80,7 +80,7 @@ class MessageItem extends StatelessWidget {
|
||||||
height: 5.0,
|
height: 5.0,
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: width * 0.6,
|
width: width,
|
||||||
child: Text(
|
child: Text(
|
||||||
message.subject,
|
message.subject,
|
||||||
style: unreadStyle(textTheme.titleMedium), overflow: TextOverflow.ellipsis)),
|
style: unreadStyle(textTheme.titleMedium), overflow: TextOverflow.ellipsis)),
|
||||||
|
@ -88,7 +88,7 @@ class MessageItem extends StatelessWidget {
|
||||||
height: 4.0,
|
height: 4.0,
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: width * 0.8,
|
width: width,
|
||||||
child: Text(
|
child: Text(
|
||||||
message.body,
|
message.body,
|
||||||
softWrap: true, maxLines: 5, overflow: TextOverflow.ellipsis,
|
softWrap: true, maxLines: 5, overflow: TextOverflow.ellipsis,
|
||||||
|
|
Loading…
Reference in New Issue