1import 'package:connect/core/localization/app_localizations.dart';
2import 'package:connect/features/account/screens/cubit/profile_cubit/load_profile_cubit_cubit.dart';
3import 'package:flutter_bloc/flutter_bloc.dart';
5import '../../../../../core/ui/theme/color_palette.dart';
6import '../../../../../core/ui/widgets/custom_snackbar.dart';
7import '/core/ui/widgets/custom_card.dart';
8import '/core/ui/widgets/custom_text_form_field.dart';
9import 'package:flutter/material.dart';
10import 'package:flutter_screenutil/flutter_screenutil.dart';
11import 'package:hugeicons/hugeicons.dart';
17 State<ProfileInformationForm>
createState() => _ProfileInformationFormState();
20class _ProfileInformationFormState
extends State<ProfileInformationForm> {
30 Widget
build(BuildContext context) {
31 return BlocConsumer<LoadProfileCubitCubit, LoadProfileCubitState>(
32 listener: (context, state) {
38 .
translate(
'Faild to load profile informations'),
41 if (state is ProfileLoadedState) {
46 state.profileInformations.phoneNumber ??
'';
50 builder: (context, state) {
51 if (state is LoadingProfileState) {
53 child: CircularProgressIndicator(),
62 crossAxisAlignment: CrossAxisAlignment.start,
67 style: Theme.of(context).textTheme.bodySmall,
69 SizedBox(height: 15.sp),
76 HugeIcons.strokeRoundedText,
81 SizedBox(height: 15.sp),
88 HugeIcons.strokeRoundedSmartPhone01,
93 SizedBox(height: 15.sp),
94 SizedBox(height: 15.sp),
101 HugeIcons.strokeRoundedMail01,
109 SizedBox(height: 20.sp),
111 width: MediaQuery.of(context).size.width,
112 child: ElevatedButton(
String translate(String key)
static AppLocalizations of(BuildContext context)
static display(final BuildContext context, final Color color, final String message,)
const CustomCard({ super.key, required this.child, this.padding, this.bgColor, })
const ProfileLoadingFailureState({required this.failure})
override Widget build(BuildContext context)