准备进入新的测试阶段,先做一个snapshot(此版本下不可用)
This commit is contained in:
@@ -46,7 +46,8 @@ class GlobalMiniPlayer extends StatelessWidget {
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
// ⭐ 使用 Navigator.of(context) 替代 navigatorKey
|
||||
Navigator.of(context).pushNamed('/player');
|
||||
Navigator.of(context, rootNavigator: true)
|
||||
.pushNamed('/player');
|
||||
},
|
||||
// ⭐ 替换弃用的 withOpacity 为 withValues
|
||||
highlightColor: Colors.white.withValues(alpha: 0.05),
|
||||
|
||||
Reference in New Issue
Block a user