|
|
@ -113,7 +113,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
} catch (e, s) { |
|
|
|
} catch (e, s) { |
|
|
|
debugPrint(e.toString()); |
|
|
|
debugPrint(e.toString()); |
|
|
|
debugPrint(s.toString()); |
|
|
|
debugPrint(s.toString()); |
|
|
|
ExceptionWidget.showSnackbar(context, e); |
|
|
|
NeonException.showSnackbar(context, e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -250,7 +250,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
_accountsBloc.setActiveAccount(account); |
|
|
|
_accountsBloc.setActiveAccount(account); |
|
|
|
}, |
|
|
|
}, |
|
|
|
icon: IntrinsicHeight( |
|
|
|
icon: IntrinsicHeight( |
|
|
|
child: AccountAvatar( |
|
|
|
child: NeonAccountAvatar( |
|
|
|
account: account, |
|
|
|
account: account, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -290,17 +290,17 @@ class _HomePageState extends State<HomePage> { |
|
|
|
], |
|
|
|
], |
|
|
|
if (capabilities.data!.capabilities.theming?.logo != null) ...[ |
|
|
|
if (capabilities.data!.capabilities.theming?.logo != null) ...[ |
|
|
|
Flexible( |
|
|
|
Flexible( |
|
|
|
child: CachedURLImage( |
|
|
|
child: NeonCachedUrlImage( |
|
|
|
url: capabilities.data!.capabilities.theming!.logo!, |
|
|
|
url: capabilities.data!.capabilities.theming!.logo!, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
] else ...[ |
|
|
|
] else ...[ |
|
|
|
ExceptionWidget( |
|
|
|
NeonException( |
|
|
|
capabilities.error, |
|
|
|
capabilities.error, |
|
|
|
onRetry: _capabilitiesBloc.refresh, |
|
|
|
onRetry: _capabilitiesBloc.refresh, |
|
|
|
), |
|
|
|
), |
|
|
|
CustomLinearProgressIndicator( |
|
|
|
NeonLinearProgressIndicator( |
|
|
|
visible: capabilities.loading, |
|
|
|
visible: capabilities.loading, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
@ -316,7 +316,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
.map<DropdownMenuItem<String>>( |
|
|
|
.map<DropdownMenuItem<String>>( |
|
|
|
(final account) => DropdownMenuItem<String>( |
|
|
|
(final account) => DropdownMenuItem<String>( |
|
|
|
value: account.id, |
|
|
|
value: account.id, |
|
|
|
child: AccountTile( |
|
|
|
child: NeonAccountTile( |
|
|
|
account: account, |
|
|
|
account: account, |
|
|
|
dense: true, |
|
|
|
dense: true, |
|
|
|
textColor: |
|
|
|
textColor: |
|
|
@ -343,12 +343,12 @@ class _HomePageState extends State<HomePage> { |
|
|
|
return Container(); |
|
|
|
return Container(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
ExceptionWidget( |
|
|
|
NeonException( |
|
|
|
appImplementations.error, |
|
|
|
appImplementations.error, |
|
|
|
onlyIcon: isQuickBar, |
|
|
|
onlyIcon: isQuickBar, |
|
|
|
onRetry: _appsBloc.refresh, |
|
|
|
onRetry: _appsBloc.refresh, |
|
|
|
), |
|
|
|
), |
|
|
|
CustomLinearProgressIndicator( |
|
|
|
NeonLinearProgressIndicator( |
|
|
|
visible: appImplementations.loading, |
|
|
|
visible: appImplementations.loading, |
|
|
|
), |
|
|
|
), |
|
|
|
if (appImplementations.data != null) ...[ |
|
|
|
if (appImplementations.data != null) ...[ |
|
|
@ -365,7 +365,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
onPressed: () async { |
|
|
|
onPressed: () async { |
|
|
|
await _appsBloc.setActiveApp(appImplementation.id); |
|
|
|
await _appsBloc.setActiveApp(appImplementation.id); |
|
|
|
}, |
|
|
|
}, |
|
|
|
icon: AppImplementationIcon( |
|
|
|
icon: NeonAppImplementationIcon( |
|
|
|
appImplementation: appImplementation, |
|
|
|
appImplementation: appImplementation, |
|
|
|
unreadCount: unreadCount, |
|
|
|
unreadCount: unreadCount, |
|
|
|
color: Theme.of(context).colorScheme.primary, |
|
|
|
color: Theme.of(context).colorScheme.primary, |
|
|
@ -459,7 +459,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
? Container( |
|
|
|
? Container( |
|
|
|
padding: const EdgeInsets.all(5), |
|
|
|
padding: const EdgeInsets.all(5), |
|
|
|
child: capabilities.data?.capabilities.theming?.logo != null |
|
|
|
child: capabilities.data?.capabilities.theming?.logo != null |
|
|
|
? CachedURLImage( |
|
|
|
? NeonCachedUrlImage( |
|
|
|
url: capabilities.data!.capabilities.theming!.logo!, |
|
|
|
url: capabilities.data!.capabilities.theming!.logo!, |
|
|
|
) |
|
|
|
) |
|
|
|
: null, |
|
|
|
: null, |
|
|
@ -494,7 +494,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
width: 8, |
|
|
|
width: 8, |
|
|
|
), |
|
|
|
), |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child: CustomLinearProgressIndicator( |
|
|
|
child: NeonLinearProgressIndicator( |
|
|
|
color: Theme.of(context).appBarTheme.foregroundColor, |
|
|
|
color: Theme.of(context).appBarTheme.foregroundColor, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -517,7 +517,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
final unreadCount = unreadCounterSnapshot.data ?? 0; |
|
|
|
final unreadCount = unreadCounterSnapshot.data ?? 0; |
|
|
|
return IconButton( |
|
|
|
return IconButton( |
|
|
|
key: Key('app-${notificationsAppImplementation.data!.id}'), |
|
|
|
key: Key('app-${notificationsAppImplementation.data!.id}'), |
|
|
|
icon: AppImplementationIcon( |
|
|
|
icon: NeonAppImplementationIcon( |
|
|
|
appImplementation: notificationsAppImplementation.data!, |
|
|
|
appImplementation: notificationsAppImplementation.data!, |
|
|
|
unreadCount: unreadCount, |
|
|
|
unreadCount: unreadCount, |
|
|
|
color: unreadCount > 0 |
|
|
|
color: unreadCount > 0 |
|
|
@ -539,7 +539,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
], |
|
|
|
], |
|
|
|
IconButton( |
|
|
|
IconButton( |
|
|
|
icon: IntrinsicWidth( |
|
|
|
icon: IntrinsicWidth( |
|
|
|
child: AccountAvatar( |
|
|
|
child: NeonAccountAvatar( |
|
|
|
account: account, |
|
|
|
account: account, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -564,7 +564,7 @@ class _HomePageState extends State<HomePage> { |
|
|
|
Expanded( |
|
|
|
Expanded( |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
ExceptionWidget( |
|
|
|
NeonException( |
|
|
|
appImplementations.error, |
|
|
|
appImplementations.error, |
|
|
|
onRetry: _appsBloc.refresh, |
|
|
|
onRetry: _appsBloc.refresh, |
|
|
|
), |
|
|
|
), |
|
|
|