design: Adjust message button design
This commit is contained in:
parent
4929858ae4
commit
b667e22d19
1 changed files with 4 additions and 5 deletions
|
|
@ -99,8 +99,7 @@ class MessageContent extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
|
final fontSize = AppConfig.messageFontSize * AppConfig.fontSizeFactor;
|
||||||
final buttonTextColor =
|
final buttonTextColor = textColor;
|
||||||
event.senderId == Matrix.of(context).client.userID ? textColor : null;
|
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case EventTypes.Message:
|
case EventTypes.Message:
|
||||||
case EventTypes.Encrypted:
|
case EventTypes.Encrypted:
|
||||||
|
|
@ -304,13 +303,13 @@ class _ButtonContent extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return OutlinedButton.icon(
|
return TextButton.icon(
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
label: Text(label, overflow: TextOverflow.ellipsis),
|
label: Text(label, overflow: TextOverflow.ellipsis),
|
||||||
style: OutlinedButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
foregroundColor: textColor,
|
foregroundColor: textColor,
|
||||||
backgroundColor: Colors.white.withAlpha(64),
|
textStyle: const TextStyle(fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue