基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
better background
Predidit07daf19f3d76
diff --git a/lib/pages/info/info_page.dart b/lib/pages/info/info_page.dartindex 5b36c0c2..a76b923e 100644--- a/lib/pages/info/info_page.dart+++ b/lib/pages/info/info_page.dart@@ -1,4 +1,4 @@-import 'dart:ui' as ui;+import 'package:adaptive_theme/adaptive_theme.dart';import 'package:flutter/material.dart';import 'package:flutter_modular/flutter_modular.dart';import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';@@ -47,6 +47,23 @@ class _InfoPageState extends State<InfoPage>// Navigator.of(context).pop();}+ // 获取当前主题模式+ bool get isLightTheme {+ final currentMode = AdaptiveTheme.of(context).mode;+ if (currentMode == AdaptiveThemeMode.light) {+ return true;+ }++ // 检查 AdaptiveThemeMode.system 的情况+ if (currentMode == AdaptiveThemeMode.system) {+ final brightness = MediaQuery.of(context).platformBrightness;+ if (brightness == Brightness.light) {+ return true;+ }+ }+ return false;+ }+@overridevoid dispose() {// 测试@@ -67,20 +84,8 @@ class _InfoPageState extends State<InfoPage>child: SafeArea(child: Stack(children: [- Positioned.fill(- child: Opacity(- opacity: 0.1,- child: LayoutBuilder(builder: (context, boxConstraints) {- return NetworkImgLayer(- src: infoController.bangumiItem.images['large'] ?? '',- width: boxConstraints.maxWidth,- height: boxConstraints.maxHeight,- );- }),- ),- ),Scaffold(- backgroundColor: Colors.transparent,+ backgroundColor: isLightTheme ? Colors.white : Colors.black,appBar: const SysAppBar(backgroundColor: Colors.transparent),body: Column(children: [@@ -168,6 +173,20 @@ class _InfoPageState extends State<InfoPage>],),),+ Positioned.fill(+ child: IgnorePointer(+ child: Opacity(+ opacity: 0.1,+ child: LayoutBuilder(builder: (context, boxConstraints) {+ return NetworkImgLayer(+ src: infoController.bangumiItem.images['large'] ?? '',+ width: boxConstraints.maxWidth,+ height: boxConstraints.maxHeight,+ );+ }),+ ),+ ),+ ),],),),diff --git a/lib/pages/settings/theme_settings_page.dart b/lib/pages/settings/theme_settings_page.dartindex d8f7d7a8..0fa9a4ea 100644--- a/lib/pages/settings/theme_settings_page.dart+++ b/lib/pages/settings/theme_settings_page.dart@@ -111,12 +111,6 @@ class _ThemeSettingsPageState extends State<ThemeSettingsPage> {@overrideWidget build(BuildContext context) {- // This method is rerun every time setState is called, for instance as done- // by the _incrementCounter method above.- //- // The Flutter framework has been optimized to make rerunning build methods- // fast, so that you can just rebuild anything that needs updating rather- // than having to individually change instances of widgets.WidgetsBinding.instance.addPostFrameCallback((_) {navigationBarState.hideNavigate();});diff --git a/lib/utils/utils.dart b/lib/utils/utils.dartindex 9704ce83..531a7c22 100644--- a/lib/utils/utils.dart+++ b/lib/utils/utils.dart@@ -346,7 +346,7 @@ class Utils {}}- static oledDarkTheme(ThemeData defaultDarkTheme) {+ static oledDarkTheme(ThemeData defaultDarkTheme) {return defaultDarkTheme.copyWith(scaffoldBackgroundColor: Colors.black,colorScheme: defaultDarkTheme.colorScheme.copyWith(