Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Add Scale-up Animation and Glow Color Restriction for Selected Star #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YuneshShrestha
Copy link

@YuneshShrestha YuneshShrestha commented Oct 18, 2023

This pull request introduces an enhancement to the codebase, addressing the following improvements:

  1. Scale-up Animation: I've incorporated a smooth scale-up animation to provide a more engaging visual feedback when users interact with the rating stars.
  2. Glow Color Restriction: I've limited the glowing effect to the star that is currently selected, offering a more intuitive and visually appealing rating experience.

Flexibility:
This feature is flexible.

code:


RatingBar(
          initialRating: 3,
          direction: Axis.horizontal,
          allowHalfRating: true,
          addScaleAnimation: true,
          itemCount: 5,
          ratingWidget: RatingWidget(
            full: Icon(Icons.star),
            half: Icon(Icons.star_half),
            empty: Icon(Icons.star_border),
          ),
          itemPadding: EdgeInsets.symmetric(horizontal: 4.0),
          glowColor: Colors.amberAccent,
          onRatingUpdate: (rating) {
            print(rating);
          },
        ),

Preview:

rating

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.

None yet

1 participant