mod: 首页推荐picture类型

This commit is contained in:
guozhigq
2023-08-19 11:34:36 +08:00
parent 9db76e99db
commit 7c2518bcd2

View File

@ -60,6 +60,16 @@ class VideoCardV extends StatelessWidget {
'heroTag': heroTag, 'heroTag': heroTag,
}); });
break; break;
default:
SmartDialog.showToast(videoItem.goto);
Get.toNamed(
'/webview',
parameters: {
'url': videoItem.uri,
'type': 'url',
'pageTitle': videoItem.title,
},
);
} }
} }
@ -151,6 +161,15 @@ class VideoContent extends StatelessWidget {
type: 'color', type: 'color',
) )
], ],
if (videoItem.goto == 'picture') ...[
const PBadge(
text: '动态',
stack: 'normal',
size: 'small',
type: 'line',
fs: 9,
)
],
Expanded( Expanded(
child: Text( child: Text(
videoItem.owner.name, videoItem.owner.name,