From 61be213dd2a083cb103e91282cb0e669ca802e77 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Mon, 8 Feb 2021 17:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=AF=9D=E9=A2=98=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E5=88=86=E5=89=B2=E7=BA=BF=E5=8F=98?= =?UTF-8?q?=E6=B7=A1=EF=BC=8C=E5=89=AF=E6=A0=87=E9=A2=98=E5=8A=A0=E5=A4=A7?= =?UTF-8?q?=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../community/community_views/widgets/chat_card.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index ca4fa282..dcd00792 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -1,4 +1,6 @@ // Flutter imports: +import 'dart:math'; + import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; @@ -9,7 +11,6 @@ import 'package:provider/provider.dart'; import 'package:velocity_x/velocity_x.dart'; // Project imports: -import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/constants/api.dart'; import 'package:akuCommunity/model/community/event_item_model.dart'; import 'package:akuCommunity/provider/user_provider.dart'; @@ -263,7 +264,9 @@ class _ChatCardState extends State { color: Colors.white, border: Border( bottom: BorderSide( - color: widget.hideLine ? Colors.transparent : Color(0xFFE5E5E5), + color: widget.hideLine + ? Colors.transparent + : Color(0xFFE5E5E5).withOpacity(0.5), ), ), ), @@ -311,14 +314,15 @@ class _ChatCardState extends State { }, onSelected: (_) async { VoidCallback cancel = BotToast.showLoading(); - await Future.delayed(Duration(milliseconds: 1000)); + await Future.delayed( + Duration(milliseconds: 500 + Random().nextInt(500))); cancel(); BotToast.showText(text: '举报成功'); }, ), ].row(), 6.hb, - widget.model.content.text.black.make(), + widget.model.content.text.size(32.sp).black.make(), 20.hb, _renderImage(), widget.model.gambitTitle?.isEmpty ?? true