profile page fix bugs

This commit is contained in:
mohammad
2024-07-28 15:40:47 +03:00
parent f27a9b0d8a
commit eebd0faf1e

View File

@ -17,7 +17,6 @@ class ProfileView extends StatelessWidget {
@override
Widget build(BuildContext context) {
return BlocProvider(
create: (BuildContext context) => ProfileBloc()..add(InitialProfileEvent()),
child: BlocConsumer<ProfileBloc, ProfileState>(
@ -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(