mod: 收藏卡片内容修改
This commit is contained in:
@ -9,6 +9,7 @@ import 'package:pilipala/models/common/search_type.dart';
|
|||||||
import 'package:pilipala/utils/id_utils.dart';
|
import 'package:pilipala/utils/id_utils.dart';
|
||||||
import 'package:pilipala/utils/utils.dart';
|
import 'package:pilipala/utils/utils.dart';
|
||||||
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
||||||
|
import '../../../common/widgets/badge.dart';
|
||||||
|
|
||||||
// 收藏视频卡片 - 水平布局
|
// 收藏视频卡片 - 水平布局
|
||||||
class FavVideoCardH extends StatelessWidget {
|
class FavVideoCardH extends StatelessWidget {
|
||||||
@ -86,22 +87,21 @@ class FavVideoCardH extends StatelessWidget {
|
|||||||
height: maxHeight,
|
height: maxHeight,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
PBadge(
|
||||||
right: 4,
|
text: Utils.timeFormat(videoItem.duration!),
|
||||||
bottom: 4,
|
right: 6.0,
|
||||||
child: Container(
|
bottom: 6.0,
|
||||||
padding: const EdgeInsets.symmetric(
|
type: 'gray',
|
||||||
vertical: 1, horizontal: 6),
|
),
|
||||||
decoration: BoxDecoration(
|
if (videoItem.ogv != null) ...[
|
||||||
borderRadius: BorderRadius.circular(4),
|
PBadge(
|
||||||
color: Colors.black54.withOpacity(0.4)),
|
text: videoItem.ogv['type_name'],
|
||||||
child: Text(
|
top: 6.0,
|
||||||
Utils.timeFormat(videoItem.duration!),
|
right: 6.0,
|
||||||
style: const TextStyle(
|
bottom: null,
|
||||||
fontSize: 11, color: Colors.white),
|
left: null,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
],
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@ -143,19 +143,30 @@ class VideoContent extends StatelessWidget {
|
|||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
if (videoItem.ogv != null) ...[
|
||||||
|
Text(
|
||||||
|
videoItem.intro,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
|
||||||
|
color: Theme.of(context).colorScheme.outline,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Text(
|
Text(
|
||||||
Utils.dateFormat(videoItem.ctime!),
|
Utils.dateFormat(videoItem.favTime),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 11, color: Theme.of(context).colorScheme.outline),
|
fontSize: 11, color: Theme.of(context).colorScheme.outline),
|
||||||
),
|
),
|
||||||
Text(
|
if (videoItem.owner.name != '') ...[
|
||||||
videoItem.owner.name,
|
Text(
|
||||||
style: TextStyle(
|
videoItem.owner.name,
|
||||||
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.outline,
|
fontSize: Theme.of(context).textTheme.labelMedium!.fontSize,
|
||||||
|
color: Theme.of(context).colorScheme.outline,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
StatView(
|
StatView(
|
||||||
|
Reference in New Issue
Block a user