Fix design

This commit is contained in:
Christian Pauly 2020-02-07 20:00:20 +01:00
parent e0893d3bfc
commit 1ebb045f8f
4 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,7 @@ class Message extends StatelessWidget {
Client client = Matrix.of(context).client;
final bool ownMessage = event.senderId == client.userID;
Alignment alignment = ownMessage ? Alignment.topRight : Alignment.topLeft;
Color color = Colors.white;
Color color = Theme.of(context).secondaryHeaderColor;
final bool sameSender = nextEvent != null &&
[EventTypes.Message, EventTypes.Sticker].contains(nextEvent.type)
? nextEvent.sender.id == event.sender.id
@ -135,7 +135,8 @@ class Message extends StatelessWidget {
duration: Duration(milliseconds: 500),
opacity: event.status == 0 ? 0.5 : 1,
child: Bubble(
//elevation: 0,
elevation: 0,
radius: Radius.circular(8),
alignment: alignment,
margin: BubbleEdges.symmetric(horizontal: 4),
color: color,

View file

@ -20,6 +20,7 @@ class StateMessage extends StatelessWidget {
child: Opacity(
opacity: 0.5,
child: Bubble(
elevation: 0,
color: Colors.black,
alignment: Alignment.center,
child: LinkText(

View file

@ -29,7 +29,7 @@ class App extends StatelessWidget {
brightness: Brightness.light,
primaryColor: Color(0xFF5625BA),
backgroundColor: Colors.white,
secondaryHeaderColor: Color(0xFFF6F0F6),
secondaryHeaderColor: Color(0xFFECECF2),
scaffoldBackgroundColor: Colors.white,
dialogTheme: DialogTheme(
shape: RoundedRectangleBorder(

View file

@ -253,7 +253,6 @@ class _ChatState extends State<_Chat> {
),
actions: <Widget>[ChatSettingsPopupMenu(room, !room.isDirectChat)],
),
backgroundColor: Theme.of(context).secondaryHeaderColor,
body: SafeArea(
child: Column(
children: <Widget>[