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.
|
/// The current status of the profile setup process.
|
||||||
final ProfileSetupStatus status;
|
final ProfileSetupStatus status;
|
||||||
|
|
||||||
|
/// Error message if the profile setup fails.
|
||||||
|
final String? errorMessage;
|
||||||
|
|
||||||
/// List of location suggestions from the API.
|
/// List of location suggestions from the API.
|
||||||
final List<String> locationSuggestions;
|
final List<String> locationSuggestions;
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import 'dart:async';
|
|||||||
import 'package:design_system/design_system.dart';
|
import 'package:design_system/design_system.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_bloc/flutter_bloc.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/src/presentation/widgets/common/section_title_subtitle.dart';
|
||||||
import 'package:staff_authentication/staff_authentication.dart';
|
import 'package:staff_authentication/staff_authentication.dart';
|
||||||
|
|
||||||
@@ -99,7 +100,7 @@ class _ProfileSetupLocationState extends State<ProfileSetupLocation> {
|
|||||||
margin: const EdgeInsets.only(top: UiConstants.space2),
|
margin: const EdgeInsets.only(top: UiConstants.space2),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Theme.of(context).cardColor,
|
color: Theme.of(context).cardColor,
|
||||||
borderRadius: BorderRadius.circular(UiConstants.radiusMd),
|
borderRadius: UiConstants.radiusMd,
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
BoxShadow(
|
BoxShadow(
|
||||||
color: Colors.black.withOpacity(0.1),
|
color: Colors.black.withOpacity(0.1),
|
||||||
|
|||||||
Reference in New Issue
Block a user