mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 23:09:35 +01:00
SDK update
This commit is contained in:
parent
d017ceb763
commit
cc929dc786
@ -54,7 +54,7 @@ class Message extends StatelessWidget {
|
||||
MessageTypes.Emote,
|
||||
MessageTypes.None,
|
||||
].contains(event.messageType) &&
|
||||
event.getBody().isNotEmpty) {
|
||||
event.body.isNotEmpty) {
|
||||
popupMenuList.add(
|
||||
const PopupMenuItem<String>(
|
||||
value: "copy",
|
||||
@ -97,7 +97,7 @@ class Message extends StatelessWidget {
|
||||
await event.remove();
|
||||
break;
|
||||
case "copy":
|
||||
await Clipboard.setData(ClipboardData(text: event.getBody()));
|
||||
await Clipboard.setData(ClipboardData(text: event.body));
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
@ -278,7 +278,7 @@ class MatrixState extends State<Matrix> {
|
||||
body = "${event.sender.calcDisplayname()} sent a video";
|
||||
break;
|
||||
default:
|
||||
body = "${event.sender.calcDisplayname()}: ${event.getBody()}";
|
||||
body = "${event.sender.calcDisplayname()}: ${event.body}";
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@ class MessageContent extends StatelessWidget {
|
||||
child: RaisedButton(
|
||||
color: Colors.blueGrey,
|
||||
child: Text(
|
||||
"Download ${event.getBody()}",
|
||||
"Download ${event.body}",
|
||||
overflow: TextOverflow.fade,
|
||||
softWrap: false,
|
||||
maxLines: 1,
|
||||
@ -116,7 +116,7 @@ class MessageContent extends StatelessWidget {
|
||||
: "";
|
||||
final String body = event.redacted
|
||||
? "Redacted by ${event.redactedBecause.sender.calcDisplayname()}"
|
||||
: senderPrefix + event.getBody();
|
||||
: senderPrefix + event.body;
|
||||
if (textOnly) {
|
||||
return Text(
|
||||
body,
|
||||
@ -140,7 +140,7 @@ class MessageContent extends StatelessWidget {
|
||||
case MessageTypes.Emote:
|
||||
if (textOnly) {
|
||||
return Text(
|
||||
"* " + event.getBody(),
|
||||
"* " + event.body,
|
||||
maxLines: maxLines,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
@ -152,7 +152,7 @@ class MessageContent extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
return LinkText(
|
||||
text: "* " + event.getBody(),
|
||||
text: "* " + event.body,
|
||||
textStyle: TextStyle(
|
||||
color: textColor,
|
||||
fontStyle: FontStyle.italic,
|
||||
|
@ -82,8 +82,8 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
path: "."
|
||||
ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864"
|
||||
resolved-ref: "5a3f88e979fc85cb876dbfecffd8230c9698f864"
|
||||
ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
|
||||
resolved-ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
|
||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||
source: git
|
||||
version: "0.0.1"
|
||||
@ -360,7 +360,7 @@ packages:
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
url_launcher_web:
|
||||
dependency: transitive
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: url_launcher_web
|
||||
url: "https://pub.dartlang.org"
|
||||
|
@ -27,7 +27,7 @@ dependencies:
|
||||
famedlysdk:
|
||||
git:
|
||||
url: https://gitlab.com/famedly/famedlysdk.git
|
||||
ref: 5a3f88e979fc85cb876dbfecffd8230c9698f864
|
||||
ref: bb6b5dfe3fee2ca6f4234c8777b49e79e23353bb
|
||||
|
||||
localstorage: ^3.0.1+4
|
||||
bubble: ^1.1.9+1
|
||||
|
Loading…
Reference in New Issue
Block a user