mirror of
https://github.com/inventree/inventree-app.git
synced 2026-09-09 03:10:14 +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:
@@ -16,6 +16,7 @@ import "package:inventree/inventree/sentry.dart";
|
||||
import "package:inventree/l10n/supported_locales.dart";
|
||||
import "package:inventree/l10n/collected/app_localizations.dart";
|
||||
import "package:inventree/settings/release.dart";
|
||||
import "package:inventree/user_profile.dart";
|
||||
import "package:inventree/widget/home.dart";
|
||||
|
||||
Future<void> main() async {
|
||||
@@ -123,6 +124,9 @@ class InvenTreeAppState extends State<StatefulWidget> {
|
||||
Locale? locale = await InvenTreeSettingsManager().getSelectedLocale();
|
||||
setLocale(locale);
|
||||
|
||||
// First-run only: seed a demo server profile if none are configured
|
||||
await UserProfileDBManager().seedDemoProfileIfNeeded();
|
||||
|
||||
// Display release notes if this is a new version
|
||||
final String version =
|
||||
await InvenTreeSettingsManager().getValue("recentVersion", "")
|
||||
|
||||
Reference in New Issue
Block a user