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(