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,
|
||||
),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:core_localization/core_localization.dart';
|
||||
import 'package:design_system/design_system.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
@@ -18,7 +19,7 @@ class EmergencyContactSaveButton extends StatelessWidget {
|
||||
if (state.status == EmergencyContactStatus.saved) {
|
||||
UiSnackbar.show(
|
||||
context,
|
||||
message: 'Emergency contacts saved successfully',
|
||||
message: t.staff.profile.menu_items.emergency_contact_page.save_success,
|
||||
type: UiSnackbarType.success,
|
||||
margin: const EdgeInsets.only(bottom: 150, left: 16, right: 16),
|
||||
);
|
||||
@@ -48,7 +49,7 @@ class EmergencyContactSaveButton extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
)
|
||||
: const Text('Save & Continue'),
|
||||
: Text(t.staff.profile.menu_items.emergency_contact_page.save_continue),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user