diff --git a/lib/pages/capture.dart b/lib/pages/capture.dart index ede4a82..cd135d1 100644 --- a/lib/pages/capture.dart +++ b/lib/pages/capture.dart @@ -64,10 +64,18 @@ class _CaptureRoute extends State { @override void initState() { + print("init state"); _prepare(); super.initState(); } + @override + void dispose() { + print("capture dispose"); + super.dispose(); + this.controller?.dispose(); + } + void onAudioRecordButtonPressed() { setState(() { _loading = true; @@ -131,7 +139,7 @@ class _CaptureRoute extends State { seriesUUID: uuid, captureMode: CaptureMode.picture); CaptureModel.updateItem(model); - } + } setState(() {}); } }); diff --git a/lib/utils/card.dart b/lib/utils/card.dart index afbb37d..dde40e0 100644 --- a/lib/utils/card.dart +++ b/lib/utils/card.dart @@ -78,8 +78,7 @@ class ImageAppCard extends StatefulWidget { ImageAppCard({this.filepath}); @override - _ImageAppCardState createState() => - _ImageAppCardState(filepath); + _ImageAppCardState createState() => _ImageAppCardState(filepath); } class _ImageAppCardState extends State { diff --git a/pubspec.lock b/pubspec.lock index 2d4b138..9bde5d5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -49,7 +49,7 @@ packages: name: camera url: "https://pub.dartlang.org" source: hosted - version: "0.2.3" + version: "0.2.4" charcode: dependency: transitive description: @@ -105,7 +105,7 @@ packages: name: fluro url: "https://pub.dartlang.org" source: hosted - version: "1.3.4" + version: "1.3.5" flutter: dependency: "direct main" description: flutter @@ -393,7 +393,7 @@ packages: name: sqflite url: "https://pub.dartlang.org" source: hosted - version: "0.12.1" + version: "0.12.2+1" stack_trace: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 451f8a8..8413f5e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: sdk: flutter cupertino_icons: ^0.1.2 - camera: ^0.2.3 + camera: 0.2.4 path_provider: ^0.4.1 sqflite: any fluro: "^1.3.4"