mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Add timeout funtionality to GET and LIST requests
This commit is contained in:
parent
cd864abfbe
commit
5ed13e69aa
2 changed files with 41 additions and 5 deletions
|
|
@ -30,8 +30,7 @@ Future<void> scanQrCode(BuildContext context) async {
|
|||
*/
|
||||
InvenTreeAPI().post("barcode/", body: {"barcode": barcode}).then((var response) {
|
||||
|
||||
// Close the progress dialog
|
||||
Navigator.pop(context);
|
||||
hideProgressDialog(context);
|
||||
|
||||
if (response.statusCode != 200) {
|
||||
showDialog(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue