Compare commits

..

No commits in common. "d267316a35e06e81f36bb2505f946ce4c105a8ca" and "4562c2f9917ad9d4ad1984c3ad4385ad1d4788c3" have entirely different histories.

2 changed files with 7 additions and 29 deletions

View File

@ -129,8 +129,6 @@ class _ChatMessageInputState extends State<ChatMessageInput> {
client = auth.configureClient('messaging');
if (_textController.text.trim().isEmpty && _attachments.isEmpty) return;
const uuid = Uuid();
final payload = {
'uuid': uuid.v4(),

View File

@ -88,40 +88,20 @@ class MarkdownTextContent extends StatelessWidget {
final segments = url.replaceFirst('solink://', '').split('/');
switch (segments[0]) {
case 'stickers':
double radius = 8;
final StickerProvider sticker = Get.find();
url = sticker.aliasImageMapping[segments[1].toUpperCase()]!;
if (emojiMatch.length <= 1 && isOnlyEmoji) {
width = 128;
height = 128;
width = 112;
height = 112;
} else if (emojiMatch.length <= 3 && isOnlyEmoji) {
width = 32;
height = 32;
width = 56;
height = 56;
} else {
radius = 4;
width = 16;
height = 16;
width = 28;
height = 28;
}
fit = BoxFit.contain;
return ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(radius)),
child: Container(
color: Theme.of(context).colorScheme.surfaceContainer,
child: PlatformInfo.canCacheImage
? CachedNetworkImage(
imageUrl: url,
width: width,
height: height,
fit: fit,
)
: Image.network(
url,
width: width,
height: height,
fit: fit,
),
),
).paddingSymmetric(vertical: 4);
break;
case 'attachments':
const radius = BorderRadius.all(Radius.circular(8));
return LimitedBox(