楼主字体对齐

pull/1/head
张萌 3 years ago
parent cbfba39946
commit 1045988529

@ -141,6 +141,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
body: EasyRefresh.custom( body: EasyRefresh.custom(
controller: _refreshController, controller: _refreshController,
header: MaterialHeader(), header: MaterialHeader(),
footer: MaterialFooter(),
firstRefresh: true, firstRefresh: true,
onRefresh: () async { onRefresh: () async {
BaseModel model = await NetUtil().get( BaseModel model = await NetUtil().get(
@ -493,6 +494,7 @@ class _EventDetailPageState extends State<EventDetailPage> {
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: 24.sp, fontSize: 24.sp,
height: 1.2,
fontWeight: FontWeight.bold), fontWeight: FontWeight.bold),
), ),
)), )),
@ -567,7 +569,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
color: kPrimaryColor, color: kPrimaryColor,
minWidth: 120.w, minWidth: 120.w,
height: 55.w, height: 55.w,
onPressed: () async { onPressed: () async {
var res = await NetUtil() var res = await NetUtil()
.post(SAASAPI.community.commentInsert, params: params); .post(SAASAPI.community.commentInsert, params: params);
@ -594,7 +595,6 @@ class _EventDetailPageState extends State<EventDetailPage> {
), ),
) )
], ],
) ));
);
} }
} }

@ -132,7 +132,7 @@ class _ChatCardState extends State<ChatCard> {
: kPrimaryColor, : kPrimaryColor,
), ),
5.wb, 5.wb,
'${widget.model.likes}' '${_likeNum}'
.text .text
.size(24.sp) .size(24.sp)
.color(Color(0xFF999999)) .color(Color(0xFF999999))
@ -282,9 +282,15 @@ class _ChatCardState extends State<ChatCard> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
32.hb, 32.hb,
if (!widget.model.content!.isEmptyOrNull) Offstage(
widget.model.content!.text.size(32.sp).black.make(), offstage: widget.model.content.isEmptyOrNull,
32.hb, child: Column(
children: [
widget.model.content!.text.size(32.sp).black.make(),
32.hb,
],
),
),
_renderImage(), _renderImage(),
widget.model.topicTags.isEmpty widget.model.topicTags.isEmpty
? SizedBox() ? SizedBox()

Loading…
Cancel
Save