2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Slightly improved login info on main screen

This commit is contained in:
Oliver Walters
2021-02-09 09:34:04 +11:00
parent d918079440
commit 18b4783c11
4 changed files with 82 additions and 36 deletions

View File

@ -10,12 +10,8 @@ import '../user_profile.dart';
class InvenTreeLoginSettingsWidget extends StatefulWidget {
final List<UserProfile> _profiles;
InvenTreeLoginSettingsWidget(this._profiles) : super();
@override
_InvenTreeLoginSettingsState createState() => _InvenTreeLoginSettingsState(_profiles);
_InvenTreeLoginSettingsState createState() => _InvenTreeLoginSettingsState();
}
@ -27,7 +23,9 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
List<UserProfile> profiles;
_InvenTreeLoginSettingsState(this.profiles);
_InvenTreeLoginSettingsState() {
_reload();
}
void _reload() async {

View File

@ -72,7 +72,7 @@ class _InvenTreeSettingsState extends State<InvenTreeSettingsWidget> {
List<UserProfile> profiles = await UserProfileDBManager().getAllProfiles();
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget(profiles)));
Navigator.push(context, MaterialPageRoute(builder: (context) => InvenTreeLoginSettingsWidget()));
}
void _about() async {