mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-10 21:11:27 +08:00
fix: all music achievement (#2363)
* fix: all music achievement * remove empty space [skip ci] --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
22fc256d8a
commit
75bbe5ab5a
@@ -82,26 +82,21 @@ class PBadge extends StatelessWidget {
|
||||
color = theme.onSurfaceVariant;
|
||||
}
|
||||
|
||||
late EdgeInsets paddingStyle = const EdgeInsets.symmetric(
|
||||
vertical: 2,
|
||||
horizontal: 3,
|
||||
);
|
||||
BorderRadius br = size == PBadgeSize.small
|
||||
? const BorderRadius.all(Radius.circular(3))
|
||||
: const BorderRadius.all(Radius.circular(4));
|
||||
late EdgeInsets paddingStyle = const .symmetric(vertical: 2, horizontal: 3);
|
||||
final BorderRadius br = size == .small
|
||||
? const .all(.circular(3))
|
||||
: const .all(.circular(4));
|
||||
|
||||
Widget content = Container(
|
||||
padding: padding ?? paddingStyle,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: br,
|
||||
color: bgColor,
|
||||
border: Border.all(color: borderColor),
|
||||
border: .all(color: borderColor),
|
||||
),
|
||||
child: Text(
|
||||
text!,
|
||||
textScaler: textScaleFactor != null
|
||||
? TextScaler.linear(textScaleFactor!)
|
||||
: null,
|
||||
textScaler: textScaleFactor != null ? .linear(textScaleFactor!) : null,
|
||||
style: TextStyle(
|
||||
height: 1,
|
||||
fontSize: fontSize,
|
||||
|
||||
Reference in New Issue
Block a user