mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-06 09:10:15 +08:00
@@ -259,7 +259,7 @@ class OpusContent extends StatelessWidget {
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
case 3 when (element.line != null):
|
||||
case 3 when (element.line?.pic != null):
|
||||
final height = element.line!.pic!.height?.toDouble();
|
||||
return CachedNetworkImage(
|
||||
fit: .contain,
|
||||
@@ -335,6 +335,8 @@ class OpusContent extends StatelessWidget {
|
||||
Text(ugc.title!),
|
||||
Text(
|
||||
ugc.descSecond!,
|
||||
maxLines: 2,
|
||||
overflow: .ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: colorScheme.outline,
|
||||
@@ -377,6 +379,8 @@ class OpusContent extends StatelessWidget {
|
||||
if (common.desc2 != null)
|
||||
Text(
|
||||
common.desc2!,
|
||||
maxLines: 2,
|
||||
overflow: .ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: colorScheme.outline,
|
||||
@@ -414,6 +418,8 @@ class OpusContent extends StatelessWidget {
|
||||
if (live.descSecond != null)
|
||||
Text(
|
||||
live.descSecond!,
|
||||
maxLines: 2,
|
||||
overflow: .ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: colorScheme.outline,
|
||||
@@ -506,6 +512,8 @@ class OpusContent extends StatelessWidget {
|
||||
if (music.label != null)
|
||||
Text(
|
||||
music.label!,
|
||||
maxLines: 2,
|
||||
overflow: .ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: colorScheme.outline,
|
||||
@@ -692,9 +700,9 @@ class OpusContent extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e, s) {
|
||||
return SelectableText(
|
||||
'错误的类型 $e',
|
||||
'错误的类型 $e${kDebugMode ? '\n$s' : ''}',
|
||||
style: const TextStyle(
|
||||
fontWeight: .bold,
|
||||
color: Colors.red,
|
||||
|
||||
Reference in New Issue
Block a user