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';
88import '../../../data/constants/styles.dart' ;
99import '../../../utils/snackbar.dart' ;
1010import '../../../utils/user_util.dart' ;
11+ import '../../home/bloc/home_bloc.dart' ;
1112import '../bloc/profile_bloc.dart' ;
1213import '../components/follow_button.dart' ;
1314import '../components/following_button.dart' ;
@@ -65,6 +66,15 @@ class FollowingView extends StatelessWidget {
6566 final user = state.following! [index];
6667 final followNotifier = ValueNotifier (true );
6768 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+ },
6878 leading: SizedBox (
6979 width: 35. r,
7080 child: CachedNetworkImage (
You can’t perform that action at this time.
0 commit comments