fix:修复消息列表页没有红点显示

This commit is contained in:
anfe 2024-06-04 09:12:41 +08:00
parent 5baa5830ac
commit 0fe024bc9f
3 changed files with 37 additions and 9 deletions

View File

@ -58,6 +58,8 @@ class StarLockLoginLogic extends BaseGetXController {
}
}
void changeAgreeState() {
_resetCanNext();
}

View File

@ -72,7 +72,7 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
Obx(() => CommonItem(
leftTitel:
"${"你所在的".tr}${TranslationLoader.lanKeys!.countryAndRegion!.tr}",
rightTitle: "",
rightTitle: '',
isHaveLine: true,
isPadding: false,
isHaveRightWidget: true,
@ -179,8 +179,8 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
fontSize: 20.sp)),
onTap: () {
Get.toNamed(Routers.webviewShowPage, arguments: {
"url": XSConstantMacro.userAgreementURL,
"title": '用户协议'.tr
'url': XSConstantMacro.userAgreementURL,
'title': '用户协议'.tr
});
},
)),
@ -194,8 +194,8 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
fontSize: 20.sp)),
onTap: () {
Get.toNamed(Routers.webviewShowPage, arguments: {
"url": XSConstantMacro.privacyPolicyURL,
"title": '隐私政策'.tr
'url': XSConstantMacro.privacyPolicyURL,
'title': '隐私政策'.tr
});
},
)),

View File

@ -192,10 +192,36 @@ class _MessageListXHJPageState extends State<MessageListXHJPage>
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Image.asset(
isNotRead ? 'images/news_not_read.png' : 'images/news_read.png',
width: 48.r,
height: 48.r),
if (isNotRead)
Stack(
children: [
Image.asset(
'images/news_not_read.png',
width: 48.r,
height: 48.r,
),
Positioned(
right: 1.5.r,
top: 7.r,
child: Container(
width: 12.r,
height: 12.r,
decoration: const BoxDecoration(
color: Colors.red, //
shape: BoxShape.circle, //
),
),
),
],
)
else
SizedBox(
width: 48.r,
height: 48.r,
child: Center(
child: Image.asset('images/news_read.png',
width: 32.r, height: 32.r),
)),
SizedBox(width: 15.w),
Expanded(
child: Column(