mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: floating未销毁导致日志出现bad state: Cannot add event after closing
This commit is contained in:
@@ -55,6 +55,11 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
speedsList = widget.controller!.speedsList;
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
widget.floating?.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
/// 设置面板
|
||||
void showSettingSheet() {
|
||||
showModalBottomSheet(
|
||||
@@ -656,7 +661,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
margin: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
children: [
|
||||
SizedBox(
|
||||
const SizedBox(
|
||||
height: 45,
|
||||
child: Center(child: Text('选择解码格式', style: titleStyle))),
|
||||
Expanded(
|
||||
|
||||
Reference in New Issue
Block a user