mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-07 11:15:49 -06:00
Refactored DI, serialization, added feedback to document download
This commit is contained in:
@@ -22,15 +22,17 @@ void showSnackBar(
|
||||
String? details,
|
||||
SnackBarAction? action,
|
||||
}) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
message + (details != null ? ' ($details)' : ''),
|
||||
ScaffoldMessenger.of(context)
|
||||
..hideCurrentSnackBar()
|
||||
..showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
message + (details != null ? ' ($details)' : ''),
|
||||
),
|
||||
action: action,
|
||||
duration: const Duration(seconds: 5),
|
||||
),
|
||||
action: action,
|
||||
duration: const Duration(seconds: 5),
|
||||
),
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
void showGenericError(
|
||||
|
||||
Reference in New Issue
Block a user