mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-05 09:37:52 +08:00
@@ -15,8 +15,8 @@ import 'package:PiliPlus/models_new/space/space/tab2.dart';
|
||||
import 'package:PiliPlus/pages/common/common_data_controller.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/request_utils.dart';
|
||||
import 'package:PiliPlus/utils/share_utils.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:extended_nested_scroll_view/extended_nested_scroll_view.dart'
|
||||
show ExtendedNestedScrollViewState;
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -201,7 +201,7 @@ class MemberController extends CommonDataController<SpaceData, SpaceData?>
|
||||
}
|
||||
|
||||
void shareUser() {
|
||||
Utils.shareText('https://space.bilibili.com/$mid');
|
||||
ShareUtils.shareText('https://space.bilibili.com/$mid');
|
||||
}
|
||||
|
||||
Future<void> _onBlock() async {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_medal_wall/uinfo_medal.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
import 'package:PiliPlus/utils/color_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
const _kFontSize = 10.0;
|
||||
@@ -27,8 +27,8 @@ class MedalWidget extends StatelessWidget {
|
||||
this.padding = _kPadding,
|
||||
}) : medalName = medal.name!,
|
||||
level = medal.level!,
|
||||
backgroundColor = Utils.parseMedalColor(medal.v2MedalColorStart!),
|
||||
nameColor = Utils.parseColor(medal.v2MedalColorText!);
|
||||
backgroundColor = ColourUtils.parseMedalColor(medal.v2MedalColorStart!),
|
||||
nameColor = ColourUtils.parseColor(medal.v2MedalColorText!);
|
||||
|
||||
final String medalName;
|
||||
final int level;
|
||||
|
||||
@@ -24,6 +24,8 @@ import 'package:PiliPlus/pages/member_guard/view.dart';
|
||||
import 'package:PiliPlus/pages/member_upower_rank/view.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/app_scheme.dart';
|
||||
import 'package:PiliPlus/utils/bili_utils.dart';
|
||||
import 'package:PiliPlus/utils/color_utils.dart';
|
||||
import 'package:PiliPlus/utils/extension/context_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/num_ext.dart';
|
||||
import 'package:PiliPlus/utils/extension/string_ext.dart';
|
||||
@@ -165,8 +167,8 @@ class UserInfoCard extends StatelessWidget {
|
||||
Color? nameColor;
|
||||
Color? backgroundColor;
|
||||
try {
|
||||
nameColor = Utils.parseColor(detailV2.medalColorName!);
|
||||
backgroundColor = Utils.parseColor(detailV2.medalColor!);
|
||||
nameColor = ColourUtils.parseColor(detailV2.medalColorName!);
|
||||
backgroundColor = ColourUtils.parseColor(detailV2.medalColor!);
|
||||
} catch (e, s) {
|
||||
if (kDebugMode) {
|
||||
Utils.reportError(e, s);
|
||||
@@ -216,7 +218,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Image.asset(
|
||||
Utils.levelName(
|
||||
BiliUtils.levelName(
|
||||
card.levelInfo!.currentLevel!,
|
||||
isSeniorMember: card.levelInfo?.identity == 2,
|
||||
),
|
||||
@@ -714,7 +716,7 @@ class UserInfoCard extends StatelessWidget {
|
||||
bool isLight,
|
||||
SpacePrInfo prInfo,
|
||||
) {
|
||||
final textColor = Utils.parseColor(
|
||||
final textColor = ColourUtils.parseColor(
|
||||
isLight ? prInfo.textColor : prInfo.textColorNight,
|
||||
);
|
||||
String? icon = !isLight && prInfo.iconNight?.isNotEmpty == true
|
||||
@@ -726,7 +728,9 @@ class UserInfoCard extends StatelessWidget {
|
||||
Widget child = Container(
|
||||
margin: const .only(top: 8),
|
||||
padding: const .symmetric(horizontal: 16, vertical: 10),
|
||||
color: Utils.parseColor(isLight ? prInfo.bgColor : prInfo.bgColorNight),
|
||||
color: ColourUtils.parseColor(
|
||||
isLight ? prInfo.bgColor : prInfo.bgColorNight,
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
if (icon != null) ...[
|
||||
@@ -1055,7 +1059,7 @@ class _HeaderTitleState extends State<HeaderTitle> {
|
||||
fontSize: 12,
|
||||
fontFamily: Assets.digitalNum,
|
||||
color: title.subTitleColorFormat?.colors?.isNotEmpty == true
|
||||
? Utils.parseMedalColor(
|
||||
? ColourUtils.parseMedalColor(
|
||||
title.subTitleColorFormat!.colors!.last,
|
||||
)
|
||||
: Colors.white,
|
||||
|
||||
Reference in New Issue
Block a user