feat: Add error message field to ProfileSetupState and update ProfileSetupLocation widget imports

This commit is contained in:
Achintha Isuru
2026-02-04 09:11:21 -05:00
parent c63ea40ce9
commit e5e0b6e7bb
2 changed files with 5 additions and 1 deletions

View File

@@ -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<String> locationSuggestions;

View File

@@ -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<ProfileSetupLocation> {
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),