Infer isLightTheme from provided context

This commit is contained in:
Tommy Chow 2023-11-24 16:25:15 -05:00
parent 6ed7de2804
commit da491bdc50
3 changed files with 2 additions and 11 deletions

View file

@ -114,13 +114,14 @@ class IRCMessage {
required ChatAssetsStore assetsStore,
required double badgeScale,
required double emoteScale,
required bool isLightTheme,
required bool launchExternal,
void Function()? onTapName,
bool showMessage = true,
bool useReadableColors = false,
TimestampType timestamp = TimestampType.disabled,
}) {
final isLightTheme = Theme.of(context).brightness == Brightness.light;
final emoteToObject = assetsStore.emoteToObject;
final twitchBadgeToObject = assetsStore.twitchBadgesToObject;
final ffzUserToBadges = assetsStore.userToFFZBadges;