Fix misaligned chat names (#187)
This commit is contained in:
parent
a691370514
commit
71a3c8b7b9
1 changed files with 7 additions and 14 deletions
|
|
@ -285,22 +285,15 @@ class IRCMessage {
|
|||
}
|
||||
}
|
||||
|
||||
// Printing template for debugging purposes.
|
||||
// debugPrint('OLD - NAME: ${tags['display-name']!}, HUE: ${hsl.hue}, SATURATION: ${hsl.saturation}, LIGHNTESS: ${hsl.lightness}');
|
||||
// debugPrint('NEW - NAME: ${tags['display-name']!}, HUE: ${hsl.hue}, SATURATION: ${hsl.saturation}, LIGHNTESS: ${hsl.lightness}');
|
||||
|
||||
// Add the display name (username) to the span and apply the onLongPressName callback.
|
||||
span.add(
|
||||
WidgetSpan(
|
||||
child: InkWell(
|
||||
onLongPress: onLongPressName,
|
||||
child: Text(
|
||||
tags['display-name']!,
|
||||
style: TextStyle(
|
||||
color: color,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
text: tags['display-name']!,
|
||||
style: TextStyle(
|
||||
color: color,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
recognizer: LongPressGestureRecognizer()..onLongPress = onLongPressName,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue