mod: 推荐、最热、收藏增加日期显示
This commit is contained in:
@ -142,6 +142,11 @@ class VideoContent extends StatelessWidget {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
|
Text(
|
||||||
|
Utils.dateFormat(videoItem.ctime!),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 11, color: Theme.of(context).colorScheme.outline),
|
||||||
|
),
|
||||||
Text(
|
Text(
|
||||||
videoItem.owner.name,
|
videoItem.owner.name,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
@ -94,6 +94,7 @@ class _HotPageState extends State<HotPage> with AutomaticKeepAliveClientMixin {
|
|||||||
SliverChildBuilderDelegate((context, index) {
|
SliverChildBuilderDelegate((context, index) {
|
||||||
return VideoCardH(
|
return VideoCardH(
|
||||||
videoItem: _hotController.videoList[index],
|
videoItem: _hotController.videoList[index],
|
||||||
|
showPubdate: true,
|
||||||
longPress: () {
|
longPress: () {
|
||||||
_hotController.popupDialog = _createPopupDialog(
|
_hotController.popupDialog = _createPopupDialog(
|
||||||
_hotController.videoList[index]);
|
_hotController.videoList[index]);
|
||||||
|
|||||||
@ -36,6 +36,7 @@ class _RelatedVideoPanelState extends State<RelatedVideoPanel> {
|
|||||||
return Material(
|
return Material(
|
||||||
child: VideoCardH(
|
child: VideoCardH(
|
||||||
videoItem: snapshot.data['data'][index],
|
videoItem: snapshot.data['data'][index],
|
||||||
|
showPubdate: true,
|
||||||
longPress: () {
|
longPress: () {
|
||||||
try {
|
try {
|
||||||
_releatedController.popupDialog =
|
_releatedController.popupDialog =
|
||||||
|
|||||||
Reference in New Issue
Block a user