feat: Add error message field to ProfileSetupState and update ProfileSetupLocation widget imports
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user