opt: dyn tab

opt: reload

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-15 16:19:33 +08:00
parent 2b567e7cb3
commit 14f8ec37c5
11 changed files with 65 additions and 25 deletions

View File

@@ -45,7 +45,7 @@ class PBadge extends StatelessWidget {
// 前景色
Color color = t.onPrimary;
// 边框色
Color? borderColor;
Color borderColor = Colors.transparent;
if (type == 'gray') {
bgColor = Colors.black45;
color = Colors.white;
@@ -77,7 +77,7 @@ class PBadge extends StatelessWidget {
decoration: BoxDecoration(
borderRadius: br,
color: bgColor,
border: borderColor != null ? Border.all(color: borderColor) : null,
border: Border.all(color: borderColor),
),
child: Text(
text!,