Fix build errors: localization syntax, key paths, and ViewOrderCard widget
This commit is contained in:
@@ -35,14 +35,14 @@ class CertificatesPage extends StatelessWidget {
|
||||
|
||||
if (state.status == CertificatesStatus.failure) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(title: const Text('Certificates')),
|
||||
appBar: AppBar(title: Text(t.staff_certificates.title)),
|
||||
body: Center(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Text(
|
||||
state.errorMessage != null
|
||||
? translateErrorKey(state.errorMessage!)
|
||||
: 'Error loading certificates',
|
||||
child: Text(
|
||||
state.errorMessage != null
|
||||
? translateErrorKey(state.errorMessage!)
|
||||
: t.staff_certificates.error_loading,
|
||||
textAlign: TextAlign.center,
|
||||
style: UiTypography.body2r.textSecondary,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user