2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Refactor login page buttons

This commit is contained in:
Oliver 2021-08-16 20:47:14 +10:00
parent 64653b0642
commit 094b997f76
2 changed files with 9 additions and 9 deletions

View File

@ -101,8 +101,6 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
return; return;
} }
_reload(); _reload();
if (InvenTreeAPI().isConnected() && InvenTreeAPI().profile != null && profile.key == (InvenTreeAPI().profile?.key ?? '')) { if (InvenTreeAPI().isConnected() && InvenTreeAPI().profile != null && profile.key == (InvenTreeAPI().profile?.key ?? '')) {
@ -231,6 +229,14 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
key: _loginKey, key: _loginKey,
appBar: AppBar( appBar: AppBar(
title: Text(L10().profileSelect), title: Text(L10().profileSelect),
actions: [
IconButton(
icon: FaIcon(FontAwesomeIcons.plusCircle),
onPressed: () {
_editProfile(context, createNew: true);
},
)
],
), ),
body: Container( body: Container(
child: ListView( child: ListView(
@ -240,12 +246,6 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
).toList(), ).toList(),
) )
), ),
floatingActionButton: FloatingActionButton(
child: Icon(FontAwesomeIcons.plus),
onPressed: () {
_editProfile(context, createNew: true);
},
)
); );
} }
} }

View File

@ -97,7 +97,7 @@ abstract class RefreshableState<T extends StatefulWidget> extends State<T> {
return Scaffold( return Scaffold(
key: refreshableKey, key: refreshableKey,
appBar: getAppBar(context), appBar: getAppBar(context),
drawer: null, // getDrawer(context), drawer: null,
floatingActionButton: getFab(context), floatingActionButton: getFab(context),
body: Builder( body: Builder(
builder: (BuildContext context) { builder: (BuildContext context) {