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

View file

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

View file

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

View file

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