File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
lib/presentation/profile/widgets Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import '../../../data/constants/strings.dart';
8
8
import '../../../data/constants/styles.dart' ;
9
9
import '../../../utils/snackbar.dart' ;
10
10
import '../../../utils/user_util.dart' ;
11
+ import '../../home/bloc/home_bloc.dart' ;
11
12
import '../bloc/profile_bloc.dart' ;
12
13
import '../components/follow_button.dart' ;
13
14
import '../components/following_button.dart' ;
@@ -65,6 +66,15 @@ class FollowingView extends StatelessWidget {
65
66
final user = state.following! [index];
66
67
final followNotifier = ValueNotifier (true );
67
68
return ListTile (
69
+ onTap: () {
70
+ context
71
+ .read <ProfileBloc >()
72
+ .add (FetchDetails (userId: user.id));
73
+
74
+ context
75
+ .read <HomeBloc >()
76
+ .add (const BottomNavItemPressed (index: 3 ));
77
+ },
68
78
leading: SizedBox (
69
79
width: 35. r,
70
80
child: CachedNetworkImage (
You can’t perform that action at this time.
0 commit comments