暂时把bug先处理掉了,准备尝试实现最小播放目标

This commit is contained in:
2026-08-15 23:20:54 +08:00
parent 902788c736
commit 699ab7ce86
11 changed files with 313 additions and 130 deletions
+4 -5
View File
@@ -7,9 +7,7 @@ import 'pages/home_page.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
// 初始化 media_kit
Player.init();
// 初始化播放服务
// media_kit 不需要静态 initPlaybackService 中会初始化 Player
PlaybackService().init();
runApp(
ChangeNotifierProvider(
@@ -32,8 +30,9 @@ class QTPlayerApp extends StatelessWidget {
colorScheme: const ColorScheme.dark(
primary: Color(0xFF7C9A9E),
secondary: Color(0xFFB8D4D0),
surface: Color(0xFF1A1F1E),
background: Color(0xFF0E1211),
surface: Color(0xFF1A1F1E), // 替代 background
// 用 onSurface 控制文字颜色
onSurface: Colors.white,
),
appBarTheme: const AppBarTheme(
backgroundColor: Color(0xFF1A1F1E),