mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-24 20:35:50 +08:00
opt: ActionItem (#974)
This commit is contained in:
committed by
GitHub
parent
fac37e59aa
commit
aaad7fc6dc
@@ -30,6 +30,23 @@ mixin SearchKeywordMixin {
|
||||
void subDispose() {
|
||||
sub?.cancel();
|
||||
ctr?.close();
|
||||
sub = null;
|
||||
ctr = null;
|
||||
}
|
||||
}
|
||||
|
||||
abstract class SearchState<T extends StatefulWidget> extends State<T>
|
||||
with SearchKeywordMixin {
|
||||
@override
|
||||
void dispose() {
|
||||
subDispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
subInit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user