From 7ad7d5089d539e6c9c82c3a7b1aa5c5d0cb5674b Mon Sep 17 00:00:00 2001 From: orz12 Date: Thu, 11 Jul 2024 17:17:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20badge=E5=88=A4=E7=A9=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common/widgets/badge.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/widgets/badge.dart b/lib/common/widgets/badge.dart index 439b5083..f19a8089 100644 --- a/lib/common/widgets/badge.dart +++ b/lib/common/widgets/badge.dart @@ -68,7 +68,7 @@ class PBadge extends StatelessWidget { border: Border.all(color: borderColor), ), child: Text( - text!, + text ?? "", style: TextStyle(fontSize: fs ?? fontSize, color: color), semanticsLabel: semanticsLabel, ),