Browse Source

优化好友接口对接和跳转

master
王子贤 3 months ago
parent
commit
c540b4d51c
1 changed files with 66 additions and 66 deletions
  1. 132
      lib/pages/home/content_card.dart

132
lib/pages/home/content_card.dart

@ -58,54 +58,54 @@ class _CardHeader extends StatelessWidget {
),
),
),
if (isOnline)
Positioned(
right: 6,
bottom: 1,
child: Container(
width: 12,
height: 12,
decoration: BoxDecoration(
color: isOnline
? const Color(0xFF2ED573)
: const Color(0xFFCCCCCC), // 线绿线
shape: BoxShape.circle,
boxShadow: isOnline
? const [
BoxShadow(
color: Color(0x332ED573),
blurRadius: 4,
offset: Offset(0, 2),
),
]
: [],
),
),
),
if (isLive)
Positioned(
bottom: 0,
left: 0,
right: 0,
child: Container(
width: 37,
height: 14,
alignment: Alignment.center, //
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(Assets.imagesBtnBgIcon),
),
),
child: const Text(
'直播中',
style: TextStyle(
color: Colors.white,
fontSize: 8,
fontWeight: FontWeight.w600,
),
),
),
),
// if (isOnline)
// Positioned(
// right: 6,
// bottom: 1,
// child: Container(
// width: 12,
// height: 12,
// decoration: BoxDecoration(
// color: isOnline
// ? const Color(0xFF2ED573)
// : const Color(0xFFCCCCCC), // 线绿线
// shape: BoxShape.circle,
// boxShadow: isOnline
// ? const [
// BoxShadow(
// color: Color(0x332ED573),
// blurRadius: 4,
// offset: Offset(0, 2),
// ),
// ]
// : [],
// ),
// ),
// ),
// if (isLive)
// Positioned(
// bottom: 0,
// left: 0,
// right: 0,
// child: Container(
// width: 37,
// height: 14,
// alignment: Alignment.center, //
// decoration: BoxDecoration(
// image: DecorationImage(
// image: AssetImage(Assets.imagesBtnBgIcon),
// ),
// ),
// child: const Text(
// '直播中',
// style: TextStyle(
// color: Colors.white,
// fontSize: 8,
// fontWeight: FontWeight.w600,
// ),
// ),
// ),
// ),
],
),
const SizedBox(width: 10),
@ -133,24 +133,24 @@ class _CardHeader extends StatelessWidget {
overflow: TextOverflow.ellipsis,
),
// 线
if (isOnline == true)
Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 2,
),
decoration: BoxDecoration(
color: Color.fromRGBO(234, 255, 219, 1),
borderRadius: BorderRadius.circular(12),
),
child: Text(
isOnline ? '在线' : '',
style: TextStyle(
fontSize: 9,
color: Color.fromRGBO(38, 199, 124, 1),
),
),
),
// if (isOnline == true)
// Container(
// padding: const EdgeInsets.symmetric(
// horizontal: 8,
// vertical: 2,
// ),
// decoration: BoxDecoration(
// color: Color.fromRGBO(234, 255, 219, 1),
// borderRadius: BorderRadius.circular(12),
// ),
// child: Text(
// isOnline ? '在线' : '',
// style: TextStyle(
// fontSize: 9,
// color: Color.fromRGBO(38, 199, 124, 1),
// ),
// ),
// ),
//
if (item.isRealNameCertified == true)
Container(

Loading…
Cancel
Save