chore: Follow up bubble color

This commit is contained in:
krille-chan 2025-02-05 19:19:06 +01:00
commit 321cc07fb8
No known key found for this signature in database
2 changed files with 21 additions and 7 deletions

View file

@ -39,6 +39,7 @@ class Message extends StatelessWidget {
final void Function()? resetAnimateIn;
final bool wallpaperMode;
final ScrollController scrollController;
final List<Color> colors;
const Message(
this.event, {
@ -58,6 +59,7 @@ class Message extends StatelessWidget {
this.resetAnimateIn,
this.wallpaperMode = false,
required this.scrollController,
required this.colors,
super.key,
});
@ -328,13 +330,7 @@ class Message extends StatelessWidget {
),
clipBehavior: Clip.antiAlias,
child: BubbleBackground(
colors: [
theme.brightness == Brightness.light
? theme.colorScheme.tertiary
: theme.colorScheme
.tertiaryContainer,
color,
],
colors: colors,
ignore: noBubble || !ownMessage,
scrollController: scrollController,
child: Container(