fix: badge判空错误

This commit is contained in:
orz12
2024-07-11 17:17:58 +08:00
parent 212a87b84c
commit 7ad7d5089d

View File

@@ -68,7 +68,7 @@ class PBadge extends StatelessWidget {
border: Border.all(color: borderColor), border: Border.all(color: borderColor),
), ),
child: Text( child: Text(
text!, text ?? "",
style: TextStyle(fontSize: fs ?? fontSize, color: color), style: TextStyle(fontSize: fs ?? fontSize, color: color),
semanticsLabel: semanticsLabel, semanticsLabel: semanticsLabel,
), ),