chore: Design follow up

This commit is contained in:
Krille 2024-11-03 15:07:08 +01:00
commit cdaaad9c54
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
4 changed files with 23 additions and 38 deletions

View file

@ -306,27 +306,10 @@ class Message extends StatelessWidget {
curve: FluffyThemes.animationCurve,
child: Container(
decoration: BoxDecoration(
color: ownMessage
? null
: noBubble
? Colors.transparent
: color,
color: noBubble
? Colors.transparent
: color,
borderRadius: borderRadius,
gradient: ownMessage && !noBubble
? LinearGradient(
colors: [
theme.colorScheme.primary,
theme.brightness ==
Brightness.light
? theme.colorScheme
.onPrimaryFixedVariant
: theme.colorScheme
.primaryFixed,
],
begin: Alignment.centerLeft,
end: Alignment.bottomRight,
)
: null,
),
clipBehavior: Clip.antiAlias,
child: Container(