From b394a2732b8aeead4e3485c0d4826966b2ff1600 Mon Sep 17 00:00:00 2001 From: AYM1607 Date: Wed, 27 Feb 2019 19:33:48 -0600 Subject: [PATCH] Fixed App.dart --- lib/src/App.dart | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/lib/src/App.dart b/lib/src/App.dart index b3373ae..284f6ee 100644 --- a/lib/src/App.dart +++ b/lib/src/App.dart @@ -13,36 +13,4 @@ class App extends StatelessWidget { ), ); } - - Future uploadPicture() async { - final imageTaken = await ImagePicker.pickImage(source: ImageSource.camera); - setState(() { - image = imageTaken; - }); - task = provider.uploadFile(imageTaken); - } - - Widget buildImage() { - if (image == null) { - return Text('No image yet'); - } - return Image.file(image); - } - - Widget buildFromTask() { - if (task == null) { - return Text('No task yet'); - } - return StreamBuilder( - stream: task.events, - builder: (context, AsyncSnapshot snapshot) { - if (!snapshot.hasData) { - return Text('No task yet'); - } else if (task.isComplete) { - return Icon(Icons.check); - } - return CircularProgressIndicator(); - }, - ); - } }