fix deprecated and lint warnings

This commit is contained in:
Tommy Chow 2024-12-23 15:09:28 -05:00
parent ca9dd32555
commit b9dae5df88
8 changed files with 21 additions and 16 deletions

View file

@ -146,7 +146,7 @@ class IRCMessage {
span.add(
TextSpan(
text: '${DateFormat.Hm().format(parsedTime)} ',
style: style?.copyWith(color: style.color?.withOpacity(0.5)),
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
),
);
}
@ -155,7 +155,7 @@ class IRCMessage {
span.add(
TextSpan(
text: '${DateFormat('h:mm').format(parsedTime)} ',
style: style?.copyWith(color: style.color?.withOpacity(0.5)),
style: style?.copyWith(color: style.color?.withValues(alpha: 0.5)),
),
);
}