From 6c68206d1ba0689236b443f4c28b7c13bacc0098 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 21 Apr 2021 10:24:38 -0700 Subject: [PATCH] Fix listening outside of widget tree --- lib/share.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/share.dart b/lib/share.dart index c8b3f22..be9e30f 100644 --- a/lib/share.dart +++ b/lib/share.dart @@ -54,7 +54,7 @@ class _SharePageState extends State { } void uploadFileToPaperless(String path) async { - final _auth = Provider.of(context, listen: true); + final _auth = Provider.of(context, listen: false); print("Uploading " + path + " to " + _auth.user.server); var formData = FormData.fromMap({