diff --git a/lib/pages/home/content_card.dart b/lib/pages/home/content_card.dart index 6d8e98b..104b2ad 100644 --- a/lib/pages/home/content_card.dart +++ b/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(