Skip to content

Conversation

@ShridharAggrwal
Copy link

Description

This PR fixes issues with the follow button state persistence and real-time updates:

Changes made:

  • Added state maintenance in FollowBloc using _currentFollowStatus
  • Converted FollowButton to StatefulWidget for better state management
  • Added loading indicator during follow/unfollow actions
  • Fixed real-time updates of follower counts
  • Improved error handling and state transitions

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Testing:

screen-recording-20250403-193538_ugr49ejm.mp4

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

@ShridharAggrwal ShridharAggrwal requested a review from jddeep as a code owner April 3, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

follow button does not work properly

1 participant