mod: 首页推荐picture类型
This commit is contained in:
@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user