Back button
This commit is contained in:
parent
31348c1d04
commit
0d5dc09ce9
|
|
@ -208,11 +208,7 @@ class MenuDrawer extends StatelessWidget {
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
// Hide options while refreshing data
|
// Hide options while refreshing data
|
||||||
state.credentials.token.isEmpty
|
state.credentials.token.isEmpty
|
||||||
? Expanded(
|
? Expanded(child: SizedBox())
|
||||||
child: LoadingIndicator(
|
|
||||||
height: 30,
|
|
||||||
),
|
|
||||||
)
|
|
||||||
: Container(
|
: Container(
|
||||||
padding:
|
padding:
|
||||||
EdgeInsets.symmetric(horizontal: 14, vertical: 3),
|
EdgeInsets.symmetric(horizontal: 14, vertical: 3),
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ class SettingsList extends StatelessWidget {
|
||||||
final settingsUIState = state.uiState.settingsUIState;
|
final settingsUIState = state.uiState.settingsUIState;
|
||||||
final showAll = settingsUIState.entityType == EntityType.company;
|
final showAll = settingsUIState.entityType == EntityType.company;
|
||||||
|
|
||||||
|
if (state.credentials.token.isEmpty) {
|
||||||
|
return SizedBox();
|
||||||
|
}
|
||||||
|
|
||||||
if (!state.userCompany.isAdmin)
|
if (!state.userCompany.isAdmin)
|
||||||
return ListView(
|
return ListView(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
|
@ -108,16 +112,16 @@ class SettingsList extends StatelessWidget {
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
),
|
),
|
||||||
*/
|
*/
|
||||||
if (showAll)
|
|
||||||
SettingsListTile(
|
|
||||||
section: kSettingsDeviceSettings,
|
|
||||||
viewModel: viewModel,
|
|
||||||
),
|
|
||||||
if (showAll && state.userCompany.isOwner)
|
if (showAll && state.userCompany.isOwner)
|
||||||
SettingsListTile(
|
SettingsListTile(
|
||||||
section: kSettingsAccountManagement,
|
section: kSettingsAccountManagement,
|
||||||
viewModel: viewModel,
|
viewModel: viewModel,
|
||||||
),
|
),
|
||||||
|
if (showAll)
|
||||||
|
SettingsListTile(
|
||||||
|
section: kSettingsDeviceSettings,
|
||||||
|
viewModel: viewModel,
|
||||||
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).bottomAppBarColor,
|
color: Theme.of(context).bottomAppBarColor,
|
||||||
padding: const EdgeInsets.only(left: 19, top: 16, bottom: 16),
|
padding: const EdgeInsets.only(left: 19, top: 16, bottom: 16),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue