🐛 Fix some link preview compatibility issue

This commit is contained in:
LittleSheep 2025-01-25 01:40:54 +08:00
parent ac41cbd99f
commit cbd1eaf1af

View File

@ -81,8 +81,9 @@ class _LinkPreviewEntry extends StatelessWidget {
child: AspectRatio(
aspectRatio: 16 / 9,
child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(8)),
child: AutoResizeUniversalImage(
meta.image!,
meta.image!.startsWith('//') ? 'https:${meta.image}' : meta.image!,
fit: BoxFit.contain,
),
),