Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmdrz committed Oct 13, 2018
1 parent 326d050 commit 91589ee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
10 changes: 9 additions & 1 deletion lib/pages/capture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ class _CaptureRoute extends State<CaptureRoute> {

@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;
Expand Down Expand Up @@ -131,7 +139,7 @@ class _CaptureRoute extends State<CaptureRoute> {
seriesUUID: uuid,
captureMode: CaptureMode.picture);
CaptureModel.updateItem(model);
}
}
setState(() {});
}
});
Expand Down
3 changes: 1 addition & 2 deletions lib/utils/card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ class ImageAppCard extends StatefulWidget {
ImageAppCard({this.filepath});

@override
_ImageAppCardState createState() =>
_ImageAppCardState(filepath);
_ImageAppCardState createState() => _ImageAppCardState(filepath);
}

class _ImageAppCardState extends State<ImageAppCard> {
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 91589ee

Please sign in to comment.