Fix misaligned chat names (#187)

This commit is contained in:
Tommy Chow 2022-09-02 12:20:40 -04:00 • committed by GitHub
parent a691370514
commit 71a3c8b7b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
),
);