diff --git a/lib/src/view/database_operator.dart b/lib/src/view/database_operator.dart index 5cf1f2c..f5fb3c3 100644 --- a/lib/src/view/database_operator.dart +++ b/lib/src/view/database_operator.dart @@ -73,6 +73,12 @@ class _DatabaseOperatorState extends State { }); } + @override + void dispose() { + widget.database.close(); + super.dispose(); + } + @override Widget build(BuildContext context) { return Column(