Browse Source

neon: Remove app settings from appbar

pull/79/head
jld3103 2 years ago
parent
commit
77c1288ae1
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 45
      packages/neon/lib/src/pages/home/home.dart

45
packages/neon/lib/src/pages/home/home.dart

@ -678,38 +678,23 @@ class _HomePageState extends State<HomePage> with tray.TrayListener, WindowListe
], ],
), ),
actions: [ actions: [
if (appsData != null && activeAppIDSnapshot.hasData) ...[ IconButton(
IconButton( icon: IntrinsicWidth(
icon: const Icon(Icons.settings), child: AccountAvatar(
onPressed: () async { account: account,
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,
),
), ),
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( body: Row(

Loading…
Cancel
Save