修复评论消息 回复过长溢出屏幕的问题

搜索结果添加跳转
访客邀请链接修改
hmxc
张萌 4 years ago
parent e1998de41d
commit 1d518ff5aa

@ -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);

@ -63,6 +63,7 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
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<CommentMessagePage> {
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<CommentMessagePage> {
.size(28.sp)
.make(),
],
),
Spacer(),
).expand(),
Container(
width: 160.w,
height: 160.w,

@ -34,6 +34,7 @@ class _SystemMessageDetailPageState extends State<SystemMessageDetailPage> {
onRefresh: () async {
_model = await MessageFunc.getSystemMessageDetial(widget.id);
_onload = false;
setState(() {});
},
child: _onload
? _empty()

@ -256,7 +256,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
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,

@ -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<BeeSearch> {
);
}
///
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<BeeSearch> {
);
}
///
Widget _communityCardButton(CommunityTopicModel model) {
return MaterialButton(
onPressed: () {},
onPressed: () {
Get.to(() => TopicDetailPage(
model: model,
));
},
shape: StadiumBorder(),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,

Loading…
Cancel
Save