From eebd0faf1ea7b294d4e4f782897846f987494653 Mon Sep 17 00:00:00 2001 From: mohammad Date: Sun, 28 Jul 2024 15:40:47 +0300 Subject: [PATCH] profile page fix bugs --- lib/features/menu/view/widgets/profile/profile_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/features/menu/view/widgets/profile/profile_view.dart b/lib/features/menu/view/widgets/profile/profile_view.dart index bac4502..7139ec1 100644 --- a/lib/features/menu/view/widgets/profile/profile_view.dart +++ b/lib/features/menu/view/widgets/profile/profile_view.dart @@ -17,7 +17,6 @@ class ProfileView extends StatelessWidget { @override Widget build(BuildContext context) { - return BlocProvider( create: (BuildContext context) => ProfileBloc()..add(InitialProfileEvent()), child: BlocConsumer( @@ -137,9 +136,9 @@ class ProfileView extends StatelessWidget { height: 1, color: ColorsManager.greyColor, ), - InkWell( onTap: () { + profileBloc.add(const ChangeNameEvent(value: false)); Navigator.push( context, MaterialPageRoute( @@ -166,6 +165,7 @@ class ProfileView extends StatelessWidget { ), InkWell( onTap: () { + profileBloc.add(const ChangeNameEvent(value: false)); Navigator.push( context, MaterialPageRoute(