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;
|
speedsList = widget.controller!.speedsList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
widget.floating?.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
/// 设置面板
|
/// 设置面板
|
||||||
void showSettingSheet() {
|
void showSettingSheet() {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
@@ -656,7 +661,7 @@ class _HeaderControlState extends State<HeaderControl> {
|
|||||||
margin: const EdgeInsets.all(12),
|
margin: const EdgeInsets.all(12),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
height: 45,
|
height: 45,
|
||||||
child: Center(child: Text('选择解码格式', style: titleStyle))),
|
child: Center(child: Text('选择解码格式', style: titleStyle))),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
Reference in New Issue
Block a user