feat: super chat

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-01 21:15:29 +08:00
parent e6af0ef15b
commit 80fa0240e9
20 changed files with 896 additions and 261 deletions

View File

@@ -23,7 +23,8 @@ class SettingBoxKey {
enableAutoBrightness = 'enableAutoBrightness',
enableAutoEnter = 'enableAutoEnter',
enableAutoExit = 'enableAutoExit',
enableOnlineTotal = 'enableOnlineTotal';
enableOnlineTotal = 'enableOnlineTotal',
showSuperChat = 'showSuperChat';
static const String enableVerticalExpand = 'enableVerticalExpand',
feedBackEnable = 'feedBackEnable',

View File

@@ -807,4 +807,7 @@ class Pref {
static bool get showMemberShop =>
_setting.get(SettingBoxKey.showMemberShop, defaultValue: false);
static bool get showSuperChat =>
_setting.get(SettingBoxKey.showSuperChat, defaultValue: true);
}

View File

@@ -15,6 +15,9 @@ class Utils {
static const channel = MethodChannel("PiliPlus");
static Color parseColor(String color) =>
Color(int.parse(color.replaceFirst('#', 'FF'), radix: 16));
static int? _sdkInt;
static Future<int> get sdkInt async {