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() { void changeAgreeState() {
_resetCanNext(); _resetCanNext();
} }

View File

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

View File

@ -192,10 +192,36 @@ class _MessageListXHJPageState extends State<MessageListXHJPage>
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
Image.asset( if (isNotRead)
isNotRead ? 'images/news_not_read.png' : 'images/news_read.png', Stack(
width: 48.r, children: [
height: 48.r), 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), SizedBox(width: 15.w),
Expanded( Expanded(
child: Column( child: Column(