Browse Source

Merge pull request #79 from jld3103/cleanup/remove-app-settings-from-appbar

neon: Remove app settings from appbar
pull/81/head
jld3103 2 years ago committed by GitHub
parent
commit
75e0dcc776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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