fix:修复消息列表页没有红点显示
This commit is contained in:
parent
5baa5830ac
commit
0fe024bc9f
@ -58,6 +58,8 @@ class StarLockLoginLogic extends BaseGetXController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void changeAgreeState() {
|
||||
_resetCanNext();
|
||||
}
|
||||
|
||||
@ -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
|
||||
});
|
||||
},
|
||||
)),
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user