mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -117,22 +117,17 @@ class OpusContent extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
case 'TEXT_NODE_TYPE_FORMULA' when (item.formula != null):
|
case 'TEXT_NODE_TYPE_FORMULA' when (item.formula != null):
|
||||||
return TextSpan(
|
return WidgetSpan(
|
||||||
children: [
|
child: CachedNetworkSVGImage(
|
||||||
WidgetSpan(
|
height: 65,
|
||||||
child: CachedNetworkSVGImage(
|
'https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=${Uri.encodeComponent(item.formula!.latexContent!)}',
|
||||||
height: 65,
|
colorFilter: ColorFilter.mode(
|
||||||
'https://api.bilibili.com/x/web-frontend/mathjax/tex?formula=${Uri.encodeComponent(item.formula!.latexContent!)}',
|
colorScheme.onSurfaceVariant,
|
||||||
colorFilter: ColorFilter.mode(
|
BlendMode.srcIn,
|
||||||
colorScheme.onSurfaceVariant,
|
|
||||||
BlendMode.srcIn,
|
|
||||||
),
|
|
||||||
alignment: Alignment.centerLeft,
|
|
||||||
placeholderBuilder: (_) =>
|
|
||||||
const SizedBox.shrink(),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
alignment: Alignment.centerLeft,
|
||||||
|
placeholderBuilder: (_) => const SizedBox.shrink(),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
return _getSpan(
|
return _getSpan(
|
||||||
|
|||||||
Reference in New Issue
Block a user