SDK update

This commit is contained in:
Christian Pauly 2020-01-14 12:45:52 +01:00
parent d017ceb763
commit cc929dc786
5 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ class Message extends StatelessWidget {
MessageTypes.Emote, MessageTypes.Emote,
MessageTypes.None, MessageTypes.None,
].contains(event.messageType) && ].contains(event.messageType) &&
event.getBody().isNotEmpty) { event.body.isNotEmpty) {
popupMenuList.add( popupMenuList.add(
const PopupMenuItem<String>( const PopupMenuItem<String>(
value: "copy", value: "copy",
@ -97,7 +97,7 @@ class Message extends StatelessWidget {
await event.remove(); await event.remove();
break; break;
case "copy": case "copy":
await Clipboard.setData(ClipboardData(text: event.getBody())); await Clipboard.setData(ClipboardData(text: event.body));
break; break;
} }
}, },

View File

@ -278,7 +278,7 @@ class MatrixState extends State<Matrix> {
body = "${event.sender.calcDisplayname()} sent a video"; body = "${event.sender.calcDisplayname()} sent a video";
break; break;
default: default:
body = "${event.sender.calcDisplayname()}: ${event.getBody()}"; body = "${event.sender.calcDisplayname()}: ${event.body}";
break; break;
} }

View File

@ -92,7 +92,7 @@ class MessageContent extends StatelessWidget {
child: RaisedButton( child: RaisedButton(
color: Colors.blueGrey, color: Colors.blueGrey,
child: Text( child: Text(
"Download ${event.getBody()}", "Download ${event.body}",
overflow: TextOverflow.fade, overflow: TextOverflow.fade,
softWrap: false, softWrap: false,
maxLines: 1, maxLines: 1,
@ -116,7 +116,7 @@ class MessageContent extends StatelessWidget {
: ""; : "";
final String body = event.redacted final String body = event.redacted
? "Redacted by ${event.redactedBecause.sender.calcDisplayname()}" ? "Redacted by ${event.redactedBecause.sender.calcDisplayname()}"
: senderPrefix + event.getBody(); : senderPrefix + event.body;
if (textOnly) { if (textOnly) {
return Text( return Text(
body, body,
@ -140,7 +140,7 @@ class MessageContent extends StatelessWidget {
case MessageTypes.Emote: case MessageTypes.Emote:
if (textOnly) { if (textOnly) {
return Text( return Text(
"* " + event.getBody(), "* " + event.body,
maxLines: maxLines, maxLines: maxLines,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
@ -152,7 +152,7 @@ class MessageContent extends StatelessWidget {
); );
} }
return LinkText( return LinkText(
text: "* " + event.getBody(), text: "* " + event.body,
textStyle: TextStyle( textStyle: TextStyle(
color: textColor, color: textColor,
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,

View File

@ -82,8 +82,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864" ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
resolved-ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864" resolved-ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
url: "https://gitlab.com/famedly/famedlysdk.git" url: "https://gitlab.com/famedly/famedlysdk.git"
source: git source: git
version: "0.0.1" version: "0.0.1"
@ -360,7 +360,7 @@ packages:
source: hosted source: hosted
version: "1.0.5" version: "1.0.5"
url_launcher_web: url_launcher_web:
dependency: transitive dependency: "direct main"
description: description:
name: url_launcher_web name: url_launcher_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"

View File

@ -27,7 +27,7 @@ dependencies:
famedlysdk: famedlysdk:
git: git:
url: https://gitlab.com/famedly/famedlysdk.git url: https://gitlab.com/famedly/famedlysdk.git
ref: 5a3f88e979fc85cb876dbfecffd8230c9698f864 ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
localstorage: ^3.0.1+4 localstorage: ^3.0.1+4
bubble: ^1.1.9+1 bubble: ^1.1.9+1