dispose model controller and end AI client
This commit is contained in:
parent
40039ff67f
commit
0218a003b6
1 changed files with 8 additions and 0 deletions
|
|
@ -166,6 +166,14 @@ class _AiChatState extends State<AiChat> {
|
|||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
// TODO: implement dispose
|
||||
super.dispose();
|
||||
_modelCopntroller.dispose();
|
||||
client.endSession();
|
||||
}
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue