mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Buttons in chatlist
This commit is contained in:
parent
a6b60ad4fb
commit
7d08817f1c
@ -144,11 +144,16 @@ class MessageContent extends StatelessWidget {
|
|||||||
default:
|
default:
|
||||||
if (event.content['msgtype'] == Matrix.callNamespace) {
|
if (event.content['msgtype'] == Matrix.callNamespace) {
|
||||||
return RaisedButton(
|
return RaisedButton(
|
||||||
color: Theme.of(context).backgroundColor,
|
elevation: 7,
|
||||||
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(6),
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Icon(Icons.phone),
|
Icon(Icons.phone),
|
||||||
|
SizedBox(width: 8),
|
||||||
Text(L10n.of(context).videoCall),
|
Text(L10n.of(context).videoCall),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -20,17 +20,23 @@ class MessageDownloadContent extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
RaisedButton(
|
RaisedButton(
|
||||||
color: textColor,
|
elevation: 7,
|
||||||
elevation: 10,
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(8.0),
|
borderRadius: BorderRadius.circular(6),
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Icon(Icons.download_outlined),
|
||||||
|
SizedBox(width: 8),
|
||||||
|
Text(
|
||||||
filename,
|
filename,
|
||||||
overflow: TextOverflow.fade,
|
overflow: TextOverflow.fade,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
style: TextStyle(color: Theme.of(context).primaryColor),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
onPressed: () => event.openFile(context),
|
onPressed: () => event.openFile(context),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user