opt dyn panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-12 16:07:00 +08:00
parent 54fe38047f
commit f824477ddb
6 changed files with 20 additions and 18 deletions

View File

@@ -37,6 +37,7 @@ Widget livePanelSub(
width: width,
height: width / StyleString.aspectRatio,
src: content.cover,
quality: 40,
),
),
PBadge(

View File

@@ -36,6 +36,7 @@ Widget liveRcmdPanel(
width: width,
height: width / StyleString.aspectRatio,
src: liveRcmd.cover,
quality: 40,
),
),
PBadge(

View File

@@ -66,6 +66,7 @@ Widget videoSeasonWidget(
width: width,
height: width / StyleString.aspectRatio,
src: itemContent.cover,
quality: 40,
),
if (itemContent.badge?.text != null)
PBadge(
@@ -111,10 +112,12 @@ Widget videoSeasonWidget(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
if (itemContent.durationText != null) ...[
Text(
itemContent.durationText!,
semanticsLabel:
'时长${Utils.durationReadFormat(itemContent.durationText!)}',
DecoratedBox(
decoration: const BoxDecoration(
color: Colors.black45,
borderRadius: BorderRadius.all(Radius.circular(4)),
),
child: Text(' ${itemContent.durationText} '),
),
const SizedBox(width: 6),
],

View File

@@ -392,8 +392,7 @@ class LoginPageController extends GetxController
onPressed: Get.back,
child: Text(
"取消",
style: TextStyle(
color: Theme.of(Get.context!).colorScheme.outline),
style: TextStyle(color: Get.theme.colorScheme.outline),
),
),
TextButton(

View File

@@ -470,7 +470,7 @@ List<SettingsModel> get styleSettings => [
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Text(
'${GStorage.picQuality}%',
style: Theme.of(Get.context!).textTheme.titleSmall,
style: Get.theme.textTheme.titleSmall,
),
),
),
@@ -496,7 +496,7 @@ List<SettingsModel> get styleSettings => [
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Text(
'${GStorage.previewQ}%',
style: Theme.of(Get.context!).textTheme.titleSmall,
style: Get.theme.textTheme.titleSmall,
),
),
),
@@ -528,7 +528,7 @@ List<SettingsModel> get styleSettings => [
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: Text(
GStorage.toastOpacity.toStringAsFixed(1),
style: Theme.of(Get.context!).textTheme.titleSmall,
style: Get.theme.textTheme.titleSmall,
),
),
),
@@ -569,7 +569,7 @@ List<SettingsModel> get styleSettings => [
setKey: SettingBoxKey.isPureBlackTheme,
defaultVal: false,
onChanged: (value) {
if (Theme.of(Get.context!).brightness == Brightness.dark ||
if (Get.theme.brightness == Brightness.dark ||
GStorage.darkVideoPage) {
Get.forceAppUpdate();
}
@@ -1657,7 +1657,7 @@ List<SettingsModel> get extraSettings => [
setKey: SettingBoxKey.replyLengthLimit,
getTrailing: () => Text(
'${GlobalData().replyLengthLimit}',
style: Theme.of(Get.context!).textTheme.titleSmall,
style: Get.theme.textTheme.titleSmall,
),
onTap: (setState) {
String replyLengthLimit = GlobalData().replyLengthLimit.toString();
@@ -1715,7 +1715,7 @@ List<SettingsModel> get extraSettings => [
leading: const Icon(Icons.subtitles_outlined),
getTrailing: () => Text(
GStorage.danmakuLineHeight.toString(),
style: Theme.of(Get.context!).textTheme.titleSmall,
style: Get.theme.textTheme.titleSmall,
),
onTap: (setState) {
String danmakuLineHeight = GStorage.danmakuLineHeight.toString();

View File

@@ -842,6 +842,7 @@ class VideoDetailController extends GetxController
}
Widget buildItem(dynamic item, Animation<double> animation) {
final theme = Get.theme;
return Align(
alignment: Alignment.centerLeft,
child: SlideTransition(
@@ -858,12 +859,9 @@ class VideoDetailController extends GetxController
}
},
child: SearchText(
bgColor: Theme.of(Get.context!)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.8),
textColor:
Theme.of(Get.context!).colorScheme.onSecondaryContainer,
bgColor:
theme.colorScheme.secondaryContainer.withValues(alpha: 0.8),
textColor: theme.colorScheme.onSecondaryContainer,
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
fontSize: 14,
text: item is SegmentModel