|
@@ -126,7 +126,8 @@ class HomePage extends HookConsumerWidget {
|
|
|
visible: notificationCount != null && notificationCount != "0",
|
|
|
child: Transform.translate(
|
|
|
offset: const Offset(-10, -5),
|
|
|
- child: MyTextView(notificationCount ?? "0",
|
|
|
+ child: MyTextView(
|
|
|
+ notificationCount ?? "0",
|
|
|
boxWidth: 20.0,
|
|
|
textColor: Colors.white,
|
|
|
fontSize: 10,
|
|
@@ -524,7 +525,10 @@ class HomePage extends HookConsumerWidget {
|
|
|
clipBehavior: Clip.none,
|
|
|
child: Row(
|
|
|
children: propertyNews.map((news) {
|
|
|
- return PropertyNews(news: news); // 假设 PropertyNews 需要传入一个 news 参数
|
|
|
+ return PropertyNews(news: news).onTap(() {
|
|
|
+ //路由跳转到Property模块的新闻详情页面
|
|
|
+ ComponentServiceManager().propertyService.startPropertyNewsDetailPage(int.parse(news.id ?? "0"));
|
|
|
+ }); // 假设 PropertyNews 需要传入一个 news 参数
|
|
|
}).toList(),
|
|
|
).marginOnly(left: 15, right: 15),
|
|
|
);
|