diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/pages/emergency_contact_screen.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/pages/emergency_contact_screen.dart index ca97ecb4..ab377812 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/pages/emergency_contact_screen.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/pages/emergency_contact_screen.dart @@ -3,7 +3,7 @@ import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_modular/flutter_modular.dart'; -import 'package:krow_core/core.dart'; + import '../blocs/emergency_contact_bloc.dart'; import '../widgets/emergency_contact_add_button.dart'; import '../widgets/emergency_contact_form_item.dart'; @@ -22,22 +22,11 @@ class EmergencyContactScreen extends StatelessWidget { Widget build(BuildContext context) { Translations.of(context); // Force rebuild on locale change return Scaffold( - appBar: AppBar( - elevation: 0, - leading: IconButton( - icon: const Icon(UiIcons.chevronLeft, color: UiColors.textSecondary), - onPressed: () => Modular.to.popSafe(), - ), - title: Text( - 'Emergency Contact', - style: UiTypography.title1m.textPrimary, - ), - bottom: PreferredSize( - preferredSize: const Size.fromHeight(1.0), - child: Container(color: UiColors.border, height: 1.0), - ), + appBar: UiAppBar( + title: 'Emergency Contact', + showBackButton: true, ), - body: BlocProvider( + body: BlocProvider( create: (context) => Modular.get(), child: BlocConsumer( listener: (context, state) { diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/widgets/emergency_contact_info_banner.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/widgets/emergency_contact_info_banner.dart index e8d26179..00ed24a7 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/widgets/emergency_contact_info_banner.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/emergency_contact/lib/src/presentation/widgets/emergency_contact_info_banner.dart @@ -6,16 +6,9 @@ class EmergencyContactInfoBanner extends StatelessWidget { @override Widget build(BuildContext context) { - return Container( - padding: const EdgeInsets.all(UiConstants.space4), - decoration: BoxDecoration( - color: UiColors.accent.withValues(alpha: 0.2), - borderRadius: UiConstants.radiusLg, - ), - child: Text( - 'Please provide at least one emergency contact. This information will only be used in case of an emergency during your shifts.', - style: UiTypography.body2r.textPrimary, - ), + return UiNoticeBanner( + title: + 'Please provide at least one emergency contact. This information will only be used in case of an emergency during your shifts.', ); } } diff --git a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart index 67776f05..239f5bce 100644 --- a/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart +++ b/apps/mobile/packages/features/staff/profile_sections/onboarding/profile_info/lib/src/presentation/pages/personal_info_page.dart @@ -47,23 +47,9 @@ class PersonalInfoPage extends StatelessWidget { } }, child: Scaffold( - backgroundColor: UiColors.background, - appBar: AppBar( - backgroundColor: UiColors.bgPopup, - elevation: 0, - leading: IconButton( - icon: const Icon( - UiIcons.chevronLeft, - color: UiColors.textSecondary, - ), - onPressed: () => Modular.to.popSafe(), - tooltip: MaterialLocalizations.of(context).backButtonTooltip, - ), - title: Text(i18n.title, style: UiTypography.title1m.textPrimary), - bottom: PreferredSize( - preferredSize: const Size.fromHeight(1.0), - child: Container(color: UiColors.border, height: 1.0), - ), + appBar: UiAppBar( + title: i18n.title, + showBackButton: true, ), body: SafeArea( child: BlocBuilder( diff --git a/apps/mobile/packages/features/staff/shifts/lib/src/presentation/blocs/shifts/shifts_bloc.dart b/apps/mobile/packages/features/staff/shifts/lib/src/presentation/blocs/shifts/shifts_bloc.dart index 2d2a9f8c..fa398224 100644 --- a/apps/mobile/packages/features/staff/shifts/lib/src/presentation/blocs/shifts/shifts_bloc.dart +++ b/apps/mobile/packages/features/staff/shifts/lib/src/presentation/blocs/shifts/shifts_bloc.dart @@ -294,7 +294,7 @@ class ShiftsBloc extends Bloc return shifts.where((shift) { if (shift.date.isEmpty) return false; try { - final shiftDate = DateTime.parse(shift.date); + final shiftDate = DateTime.parse(shift.date).toLocal(); final dateOnly = DateTime( shiftDate.year, shiftDate.month,