From 094b997f76ac73d12c12137ca984b75b66fbc5cc Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 16 Aug 2021 20:47:14 +1000 Subject: [PATCH] Refactor login page buttons --- lib/settings/login.dart | 16 ++++++++-------- lib/widget/refreshable_state.dart | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/settings/login.dart b/lib/settings/login.dart index 0e9bf5d7..3bacea7f 100644 --- a/lib/settings/login.dart +++ b/lib/settings/login.dart @@ -101,8 +101,6 @@ class _InvenTreeLoginSettingsState extends State { return; } - - _reload(); if (InvenTreeAPI().isConnected() && InvenTreeAPI().profile != null && profile.key == (InvenTreeAPI().profile?.key ?? '')) { @@ -231,6 +229,14 @@ class _InvenTreeLoginSettingsState extends State { key: _loginKey, appBar: AppBar( title: Text(L10().profileSelect), + actions: [ + IconButton( + icon: FaIcon(FontAwesomeIcons.plusCircle), + onPressed: () { + _editProfile(context, createNew: true); + }, + ) + ], ), body: Container( child: ListView( @@ -240,12 +246,6 @@ class _InvenTreeLoginSettingsState extends State { ).toList(), ) ), - floatingActionButton: FloatingActionButton( - child: Icon(FontAwesomeIcons.plus), - onPressed: () { - _editProfile(context, createNew: true); - }, - ) ); } } diff --git a/lib/widget/refreshable_state.dart b/lib/widget/refreshable_state.dart index 94134e00..aa288499 100644 --- a/lib/widget/refreshable_state.dart +++ b/lib/widget/refreshable_state.dart @@ -97,7 +97,7 @@ abstract class RefreshableState extends State { return Scaffold( key: refreshableKey, appBar: getAppBar(context), - drawer: null, // getDrawer(context), + drawer: null, floatingActionButton: getFab(context), body: Builder( builder: (BuildContext context) {