From e5e0b6e7bb729506614931caa4d200930949d2d9 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Wed, 4 Feb 2026 09:11:21 -0500 Subject: [PATCH] feat: Add error message field to ProfileSetupState and update ProfileSetupLocation widget imports --- .../presentation/blocs/profile_setup/profile_setup_state.dart | 3 +++ .../widgets/profile_setup_page/profile_setup_location.dart | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/blocs/profile_setup/profile_setup_state.dart b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/blocs/profile_setup/profile_setup_state.dart index 952c9153..b007757b 100644 --- a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/blocs/profile_setup/profile_setup_state.dart +++ b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/blocs/profile_setup/profile_setup_state.dart @@ -26,6 +26,9 @@ class ProfileSetupState extends Equatable { /// The current status of the profile setup process. final ProfileSetupStatus status; + /// Error message if the profile setup fails. + final String? errorMessage; + /// List of location suggestions from the API. final List locationSuggestions; diff --git a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/widgets/profile_setup_page/profile_setup_location.dart b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/widgets/profile_setup_page/profile_setup_location.dart index 34d8819a..5ee01419 100644 --- a/apps/mobile/packages/features/staff/authentication/lib/src/presentation/widgets/profile_setup_page/profile_setup_location.dart +++ b/apps/mobile/packages/features/staff/authentication/lib/src/presentation/widgets/profile_setup_page/profile_setup_location.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'package:design_system/design_system.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; +import 'package:staff_authentication/src/presentation/blocs/profile_setup/profile_setup_bloc.dart'; import 'package:staff_authentication/src/presentation/widgets/common/section_title_subtitle.dart'; import 'package:staff_authentication/staff_authentication.dart'; @@ -99,7 +100,7 @@ class _ProfileSetupLocationState extends State { margin: const EdgeInsets.only(top: UiConstants.space2), decoration: BoxDecoration( color: Theme.of(context).cardColor, - borderRadius: BorderRadius.circular(UiConstants.radiusMd), + borderRadius: UiConstants.radiusMd, boxShadow: [ BoxShadow( color: Colors.black.withOpacity(0.1),