mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
Nicer image design
This commit is contained in:
parent
bac298bf75
commit
13ca900728
@ -46,7 +46,7 @@ class Message extends StatelessWidget {
|
|||||||
BubbleNip nip = sameSender
|
BubbleNip nip = sameSender
|
||||||
? BubbleNip.no
|
? BubbleNip.no
|
||||||
: ownMessage ? BubbleNip.rightBottom : BubbleNip.leftBottom;
|
: ownMessage ? BubbleNip.rightBottom : BubbleNip.leftBottom;
|
||||||
final Color textColor = ownMessage
|
Color textColor = ownMessage
|
||||||
? Colors.white
|
? Colors.white
|
||||||
: Theme.of(context).brightness == Brightness.dark
|
: Theme.of(context).brightness == Brightness.dark
|
||||||
? Colors.white
|
? Colors.white
|
||||||
@ -54,7 +54,10 @@ class Message extends StatelessWidget {
|
|||||||
MainAxisAlignment rowMainAxisAlignment =
|
MainAxisAlignment rowMainAxisAlignment =
|
||||||
ownMessage ? MainAxisAlignment.end : MainAxisAlignment.start;
|
ownMessage ? MainAxisAlignment.end : MainAxisAlignment.start;
|
||||||
|
|
||||||
if (ownMessage) {
|
if (event.messageType == MessageTypes.Image) {
|
||||||
|
color = Theme.of(context).scaffoldBackgroundColor.withOpacity(0.66);
|
||||||
|
textColor = Theme.of(context).textTheme.body1.color;
|
||||||
|
} else if (ownMessage) {
|
||||||
color = event.status == -1
|
color = event.status == -1
|
||||||
? Colors.redAccent
|
? Colors.redAccent
|
||||||
: Theme.of(context).primaryColor;
|
: Theme.of(context).primaryColor;
|
||||||
|
Loading…
Reference in New Issue
Block a user