diff --git a/lib/pages/home/home_page.dart b/lib/pages/home/home_page.dart index 5bac0c7d..4ab9a1ad 100644 --- a/lib/pages/home/home_page.dart +++ b/lib/pages/home/home_page.dart @@ -117,6 +117,40 @@ class _HomePageState extends State width: 48.w, height: 48.w, ), +<<<<<<< HEAD + Spacer(), + // GestureDetector( + // onTap: () { + // Get.to(() => BeeSearch()); + // }, + // child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_FIND_PNG, + // height: 40.w, width: 40.w), + // ), + Padding( + padding: EdgeInsets.only(right: 16.w, left: 12.w), + child: Badge( + elevation: 0, + badgeColor: Color(0xFFCF2525), + padding: sum > 9 ? EdgeInsets.all(2.w) : EdgeInsets.all(5.w), + showBadge: appProvider.messageCenterModel.commentCount != 0 || + appProvider.messageCenterModel.sysCount != 0, + position: BadgePosition.topEnd( + top: 8.w, + end: -4.w, + ), + badgeContent: Text( + (sum > 99 ? 99 : sum).toString(), + style: TextStyle(color: Colors.white, fontSize: 20.sp), + ), + child: GestureDetector( + onTap: () { + if (LoginUtil.isNotLogin) return; + Get.to(() => MessageCenterPage()); + }, + child: Image.asset(R.ASSETS_ICONS_ICON_MAIN_MESSAGE_PNG, + height: 40.w, width: 40.w), + )), +======= 16.wb, Text( appProvider.location?['city'] == null @@ -134,6 +168,7 @@ class _HomePageState extends State style: TextStyle( fontSize: 28.sp, color: Color(0xff999999), +>>>>>>> b09ea45bd7aafc589e5c65d5846bf3243066ee5d ), textAlign: TextAlign.center, ), diff --git a/lib/ui/community/community_views/community_page.dart b/lib/ui/community/community_views/community_page.dart index 88eede1d..e71a6e0e 100644 --- a/lib/ui/community/community_views/community_page.dart +++ b/lib/ui/community/community_views/community_page.dart @@ -155,8 +155,8 @@ class _CommunityPageState extends State ? SizedBox() : ListView( children: [ - _geSearch(), - 2.hb, + // _geSearch(), + // 2.hb, _hotNewsModels.isEmpty ? SizedBox() : _getInfo(), 16.hb, _gambitModels.isEmpty ? SizedBox() : _getNews(),