暂时把bug先处理掉了,准备尝试实现最小播放目标
This commit is contained in:
+4
-5
@@ -7,9 +7,7 @@ import 'pages/home_page.dart';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
// 初始化 media_kit
|
||||
Player.init();
|
||||
// 初始化播放服务
|
||||
// media_kit 不需要静态 init,PlaybackService 中会初始化 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),
|
||||
|
||||
Reference in New Issue
Block a user