Fix design
This commit is contained in:
parent
e0893d3bfc
commit
1ebb045f8f
|
@ -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,
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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>[
|
||||
|
|
Loading…
Reference in a new issue