diff --git a/lib/generated_plugin_registrant.dart b/lib/generated_plugin_registrant.dart index 8e0b1cb0..222a4e7a 100644 --- a/lib/generated_plugin_registrant.dart +++ b/lib/generated_plugin_registrant.dart @@ -6,12 +6,13 @@ import 'package:device_info_plus_web/device_info_plus_web.dart'; import 'package:firebase_core_web/firebase_core_web.dart'; -import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'package:image_picker_for_web/image_picker_for_web.dart'; import 'package:package_info_plus_web/package_info_plus_web.dart'; import 'package:shared_preferences_web/shared_preferences_web.dart'; import 'package:url_launcher_web/url_launcher_web.dart'; +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; + // ignore: public_member_api_docs void registerPlugins(Registrar registrar) { DeviceInfoPlusPlugin.registerWith(registrar); diff --git a/lib/pages/message_center_page/comment_message/comment_message_page.dart b/lib/pages/message_center_page/comment_message/comment_message_page.dart index 5b81aef3..bc863cac 100644 --- a/lib/pages/message_center_page/comment_message/comment_message_page.dart +++ b/lib/pages/message_center_page/comment_message/comment_message_page.dart @@ -63,6 +63,7 @@ class _CommentMessagePageState extends State { Widget buildCard(CommentMessageModel model) { return Container( width: double.infinity, + constraints: BoxConstraints(maxWidth: 750.w), padding: EdgeInsets.fromLTRB(32.w, 32.w, 32.w, 16.w), child: Row( crossAxisAlignment: CrossAxisAlignment.start, @@ -84,7 +85,7 @@ class _CommentMessagePageState extends State { Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - model.createName!.text.black.size(36.sp).make(), + model.createName!.text.black.size(36.sp).ellipsis.make(), 10.w.heightBox, _messageContent(model), 16.w.heightBox, @@ -94,8 +95,7 @@ class _CommentMessagePageState extends State { .size(28.sp) .make(), ], - ), - Spacer(), + ).expand(), Container( width: 160.w, height: 160.w, diff --git a/lib/pages/message_center_page/system_message/system_message_detail_page.dart b/lib/pages/message_center_page/system_message/system_message_detail_page.dart index 81f8dc3e..4856e5d6 100644 --- a/lib/pages/message_center_page/system_message/system_message_detail_page.dart +++ b/lib/pages/message_center_page/system_message/system_message_detail_page.dart @@ -34,6 +34,7 @@ class _SystemMessageDetailPageState extends State { onRefresh: () async { _model = await MessageFunc.getSystemMessageDetial(widget.id); _onload = false; + setState(() {}); }, child: _onload ? _empty() diff --git a/lib/pages/visitor_access_page/visitor_access_page.dart b/lib/pages/visitor_access_page/visitor_access_page.dart index 42f286bc..4c83fc36 100644 --- a/lib/pages/visitor_access_page/visitor_access_page.dart +++ b/lib/pages/visitor_access_page/visitor_access_page.dart @@ -256,7 +256,7 @@ class _VisitorAccessPageState extends State { tel: tel, ); if (result != null) - Share.share('${API.host}/static/dist/index.html#/visitor?$result'); + Share.share('${API.host}/static/dist/index.html#/visitor?code=$result'); }, minWidth: double.infinity, height: 96.w, diff --git a/lib/ui/search/bee_search.dart b/lib/ui/search/bee_search.dart index ec4016dd..577dba9b 100644 --- a/lib/ui/search/bee_search.dart +++ b/lib/ui/search/bee_search.dart @@ -1,3 +1,5 @@ +import 'package:aku_community/ui/community/activity/activity_detail_page.dart'; +import 'package:aku_community/ui/community/community_views/topic/topic_detail_page.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; @@ -93,9 +95,12 @@ class _BeeSearchState extends State { ); } + ///社区活动卡片 Widget _activityCardButton(ActivityItemModel model) { return MaterialButton( - onPressed: () {}, + onPressed: () { + Get.to(() => ActivityDetailPage(id: model.id)); + }, shape: StadiumBorder(), child: Row( crossAxisAlignment: CrossAxisAlignment.start, @@ -139,9 +144,14 @@ class _BeeSearchState extends State { ); } + ///话题卡片 Widget _communityCardButton(CommunityTopicModel model) { return MaterialButton( - onPressed: () {}, + onPressed: () { + Get.to(() => TopicDetailPage( + model: model, + )); + }, shape: StadiumBorder(), child: Row( crossAxisAlignment: CrossAxisAlignment.start,