From 77c1288ae16f8ba8a8abc273435e38dfcf452773 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 5 Oct 2022 11:21:30 +0200 Subject: [PATCH] neon: Remove app settings from appbar --- packages/neon/lib/src/pages/home/home.dart | 45 ++++++++-------------- 1 file changed, 15 insertions(+), 30 deletions(-) diff --git a/packages/neon/lib/src/pages/home/home.dart b/packages/neon/lib/src/pages/home/home.dart index 5da102cd..b88aabb6 100644 --- a/packages/neon/lib/src/pages/home/home.dart +++ b/packages/neon/lib/src/pages/home/home.dart @@ -678,38 +678,23 @@ class _HomePageState extends State with tray.TrayListener, WindowListe ], ), actions: [ - if (appsData != null && activeAppIDSnapshot.hasData) ...[ - IconButton( - icon: const Icon(Icons.settings), - onPressed: () async { - await Navigator.of(context).push( - MaterialPageRoute( - builder: (final context) => NextcloudAppSpecificSettingsPage( - appImplementation: appsData - .singleWhere((final a) => a.id == activeAppIDSnapshot.data!), - ), - ), - ); - }, - ), - IconButton( - icon: IntrinsicWidth( - child: AccountAvatar( - account: account, - ), + IconButton( + icon: IntrinsicWidth( + child: AccountAvatar( + account: account, ), - onPressed: () async { - await Navigator.of(context).push( - MaterialPageRoute( - builder: (final context) => AccountSpecificSettingsPage( - bloc: accountsBloc, - account: account, - ), - ), - ); - }, ), - ], + onPressed: () async { + await Navigator.of(context).push( + MaterialPageRoute( + builder: (final context) => AccountSpecificSettingsPage( + bloc: accountsBloc, + account: account, + ), + ), + ); + }, + ), ], ), body: Row(