2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +00:00

Handle condition where camera controller fails to initialize

This commit is contained in:
Oliver Walters
2024-12-11 22:53:03 +11:00
parent d25c47ccc3
commit 6690f10118
3 changed files with 30 additions and 1 deletions

View File

@ -72,7 +72,7 @@ void showSnackIcon(String text, {IconData? icon, Function()? onAction, bool? suc
onAction();
}
),
duration: Duration(seconds: onAction == null ? 1 : 2),
duration: Duration(seconds: onAction == null ? 5 : 10),
)
);