mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-11 16:30:28 +00:00
Increase cache for public repeaters
This commit is contained in:
@@ -2035,10 +2035,10 @@ class _MessageBubbleState extends State<MessageBubble> {
|
|||||||
const Icon(Icons.person, size: 16),
|
const Icon(Icons.person, size: 16),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Column(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Flexible(
|
||||||
|
child: Text(
|
||||||
displayName,
|
displayName,
|
||||||
style: Theme.of(context).textTheme.labelMedium
|
style: Theme.of(context).textTheme.labelMedium
|
||||||
?.copyWith(
|
?.copyWith(
|
||||||
@@ -2050,12 +2050,67 @@ class _MessageBubbleState extends State<MessageBubble> {
|
|||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
// Show destination/source context on a separate line.
|
),
|
||||||
if (!widget.isCompact &&
|
if (!widget.isCompact &&
|
||||||
(recipientSubtitle != null ||
|
(recipientSubtitle != null ||
|
||||||
receivedChannelSubtitle != null)) ...[
|
receivedChannelSubtitle != null)) ...[
|
||||||
const SizedBox(height: 2),
|
const SizedBox(width: 8),
|
||||||
Row(
|
if (message.isChannelMessage)
|
||||||
|
Flexible(
|
||||||
|
child: Container(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8,
|
||||||
|
vertical: 3,
|
||||||
|
),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.surfaceContainerHighest
|
||||||
|
.withValues(alpha: 0.65),
|
||||||
|
borderRadius: BorderRadius.circular(999),
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Icon(
|
||||||
|
isOwnMessage
|
||||||
|
? Icons.campaign_outlined
|
||||||
|
: Icons.tag,
|
||||||
|
size: 11,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.labelSmall
|
||||||
|
?.color
|
||||||
|
?.withValues(alpha: 0.7),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 5),
|
||||||
|
Flexible(
|
||||||
|
child: Text(
|
||||||
|
isOwnMessage
|
||||||
|
? recipientDisplayName!
|
||||||
|
: channelDisplayName!,
|
||||||
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.labelSmall
|
||||||
|
?.copyWith(
|
||||||
|
color: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.labelSmall
|
||||||
|
?.color
|
||||||
|
?.withValues(alpha: 0.82),
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
),
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
else
|
||||||
|
Expanded(
|
||||||
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
isOwnMessage
|
isOwnMessage
|
||||||
@@ -2074,7 +2129,9 @@ class _MessageBubbleState extends State<MessageBubble> {
|
|||||||
isOwnMessage
|
isOwnMessage
|
||||||
? recipientSubtitle!
|
? recipientSubtitle!
|
||||||
: receivedChannelSubtitle!,
|
: receivedChannelSubtitle!,
|
||||||
style: Theme.of(context).textTheme.labelSmall
|
style: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.labelSmall
|
||||||
?.copyWith(
|
?.copyWith(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.textTheme
|
.textTheme
|
||||||
@@ -2089,6 +2146,7 @@ class _MessageBubbleState extends State<MessageBubble> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user