No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Thomas Lamprecht ef4a32730f migrate from flutter/material.dart to package:material_ui
Flutter 3.50 deprecates package:flutter/material.dart in favor of the
standalone material_ui package, which defines separate runtime widget
and localization types. Mixing the two across packages breaks widget
lookup at runtime when host apps migrate to material_ui.

Add material_ui (^1.1.0), raise the SDK constraints to Dart 3.13 and
Flutter 3.47, and switch Material imports to package:material_ui.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2026-12-01 05:58:22 +01:00
assets fix: ui: update proxmox logo shown inside the login screen 2025-12-17 14:51:21 +01:00
lib migrate from flutter/material.dart to package:material_ui 2026-12-01 05:58:22 +01:00
test tree wide: check if build context is still valid after async call 2024-04-09 08:15:26 +02:00
.gitignore initial commit 2020-07-23 14:43:51 +02:00
.metadata initial commit 2020-07-23 14:43:51 +02:00
analysis_options.yaml migrate from flutter/material.dart to package:material_ui 2026-12-01 05:58:22 +01:00
LICENSE initial commit 2020-07-23 14:43:51 +02:00
pubspec.lock migrate from flutter/material.dart to package:material_ui 2026-12-01 05:58:22 +01:00
pubspec.yaml migrate from flutter/material.dart to package:material_ui 2026-12-01 05:58:22 +01:00
README.md update readme 2020-07-28 12:43:30 +02:00

proxmox_login_manager

A basic login management library which handles authentication in combination with the proxmox_dart_api_client library.

You need to build the model classes before using it, to do this use:

flutter packages pub run build_runner build

Basic usage:

ProxmoxLoginSelector(
    onLogin: (ProxmoxApiClient client) => whatever you want to do with the client,
),

This will give you an authenticated ProxmoxApiClient for usage in your project.

The latest session will be saved and can be recovered.

loginStorage = await ProxmoxLoginStorage.fromLocalStorage();
final apiClient = await loginStorage.recoverLatestSession();

This will either return an authenticated ProxmoxApiClient or will result in an Exception (ProxmoxApiException).

To clear all session on logout you can use:

ProxmoxLoginStorage.fromLocalStorage()
                .then((storage) => storage?.invalidateAllSessions());