bubbleTextColorProvider top-level property
Implementation
final ProviderFamily<Color, String> bubbleTextColorProvider =
Provider.family((ref, String senderId) {
final account = ref.watch(accountIdProvider)!;
final theme = ref.watch(appThemeConfigProvider);
if (account == senderId) {
return theme.rightBubbleTextColor;
} else {
return theme.leftBubbleTextColor;
}
});