mirror of
https://github.com/inventree/inventree-app.git
synced 2026-07-21 19:55:55 +00:00
UI updates (#849)
* Updated dashboard - Display "outstanding" badges - Display "overdue" badges - Pull-to-refresh * Remove dead code * Refactor app colors * Add "pending shipments" icon * Remove custom spinner * Refactor error dialog * Updated redirect after login * Refactor login/account pages - Better UX and confirmation messages * Refactor API error messages * Improve token management - Secure storage - Handle session expiry - Per-profile HTTPS certificate checks * Improved error messages
This commit is contained in:
@@ -4,6 +4,7 @@ import "package:flutter/material.dart";
|
||||
import "package:flutter_tabler_icons/flutter_tabler_icons.dart";
|
||||
import "package:one_context/one_context.dart";
|
||||
|
||||
import "package:inventree/app_colors.dart";
|
||||
import "package:inventree/helpers.dart";
|
||||
import "package:inventree/l10.dart";
|
||||
|
||||
@@ -33,16 +34,16 @@ void showSnackIcon(
|
||||
_currentSnackOverlay?.remove();
|
||||
_currentSnackOverlay = null;
|
||||
|
||||
Color backgroundColor = Colors.deepOrange;
|
||||
Color backgroundColor = COLOR_DANGER;
|
||||
|
||||
if (success != null && success == true) {
|
||||
backgroundColor = Colors.lightGreen;
|
||||
backgroundColor = COLOR_SUCCESS;
|
||||
|
||||
if (icon == null && onAction == null) {
|
||||
icon = TablerIcons.circle_check;
|
||||
}
|
||||
} else if (success != null && success == false) {
|
||||
backgroundColor = Colors.deepOrange;
|
||||
backgroundColor = COLOR_DANGER;
|
||||
|
||||
if (icon == null && onAction == null) {
|
||||
icon = TablerIcons.exclamation_circle;
|
||||
|
||||
Reference in New Issue
Block a user