Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 18, 2023
2 parents 65171f0 + f615807 commit adc96d3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
10 changes: 9 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ void _registerErrorHandlers() {
*/

ErrorWidget.builder = (FlutterErrorDetails details) {
return Material(child: Center(child: Text(details.toString())));
return Material(
color: Colors.grey.shade100,
child: Center(
child: Text(
details.toString(),
style: TextStyle(color: Colors.black),
),
),
);
};
}
2 changes: 2 additions & 0 deletions lib/redux/app/app_middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,8 @@ Middleware<AppState> _createClearData(
return (Store<AppState> store, dynamic action, NextDispatcher next) async {
companyRepositories.forEach((repo) => repo.delete());

store.dispatch(PersistData());

next(action);
};
}
5 changes: 4 additions & 1 deletion lib/ui/app/dialogs/health_check_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
),
_HealthListTile(
title: 'PHP Info',
isValid: _response.phpVersion.isOkay,
// TODO move this logic to the backend
isValid: _response.phpVersion.isOkay &&
webPhpVersion.startsWith('8') &&
cliPhpVersion.startsWith('8'),
subtitle: 'Web: v$webPhpVersion\nCLI: v$cliPhpVersion' +
(phpMemoryLimit.isNotEmpty
? '\nMemory Limit: $phpMemoryLimit'
Expand Down
5 changes: 5 additions & 0 deletions lib/ui/invoice/invoice_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ class InvoiceScreen extends StatelessWidget {
..id = kInvoiceStatusPastDue
..name = localization.pastDue,
),
InvoiceStatusEntity().rebuild(
(b) => b
..id = kInvoiceStatusCancelled
..name = localization.cancelled,
),
];

return ListScaffold(
Expand Down

0 comments on commit adc96d3

Please sign in to comment.