opt: code

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-08 14:07:48 +08:00
parent 7cdfe26a26
commit 63a12ba6ed
22 changed files with 65 additions and 61 deletions

View File

@@ -66,7 +66,7 @@ class UserInfoCard extends StatelessWidget {
}
_buildHeader(BuildContext context) {
bool darken = GStorage.brightness == Brightness.dark;
bool darken = Theme.of(context).brightness == Brightness.dark;
String? imgUrl = darken
? (images.nightImgurl?.isEmpty == true
? images.imgUrl?.http2https
@@ -123,7 +123,7 @@ class UserInfoCard extends StatelessWidget {
fontWeight: FontWeight.bold,
color: (card.vip?.vipStatus ?? -1) > 0 &&
card.vip?.vipType == 2
? Utils.vipColor
? context.vipColor
: null,
),
),