chore: Design follow up
This commit is contained in:
parent
65fd8a4184
commit
cdaaad9c54
4 changed files with 23 additions and 38 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -34,8 +34,8 @@ class ReplyContent extends StatelessWidget {
|
|||
timeline != null ? replyEvent.getDisplayEvent(timeline) : replyEvent;
|
||||
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
|
||||
final color = ownMessage
|
||||
? theme.colorScheme.primaryContainer
|
||||
: theme.colorScheme.primary;
|
||||
? theme.colorScheme.tertiaryContainer
|
||||
: theme.colorScheme.tertiary;
|
||||
|
||||
return Material(
|
||||
color: backgroundColor ??
|
||||
|
|
@ -56,6 +56,7 @@ class ReplyContent extends StatelessWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
FutureBuilder<User?>(
|
||||
initialData: displayEvent.senderFromMemoryOrFallback,
|
||||
future: displayEvent.fetchSenderUser(),
|
||||
builder: (context, snapshot) {
|
||||
return Text(
|
||||
|
|
@ -80,7 +81,7 @@ class ReplyContent extends StatelessWidget {
|
|||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
color: ownMessage
|
||||
? theme.colorScheme.onPrimary
|
||||
? theme.colorScheme.onTertiary
|
||||
: theme.colorScheme.onSurface,
|
||||
fontSize: fontSize,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue