Skip to content

Commit

Permalink
Fix listening outside of widget tree
Browse files Browse the repository at this point in the history
  • Loading branch information
qcasey committed Apr 21, 2021
1 parent 40ffdf7 commit 6c68206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/share.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class _SharePageState extends State<SharePage> {
}

void uploadFileToPaperless(String path) async {
final _auth = Provider.of<AuthModel>(context, listen: true);
final _auth = Provider.of<AuthModel>(context, listen: false);
print("Uploading " + path + " to " + _auth.user.server);

var formData = FormData.fromMap({
Expand Down

0 comments on commit 6c68206

Please sign in to comment.