animated_star_rating 1.0.1 copy "animated_star_rating: ^1.0.1" to clipboard
animated_star_rating: ^1.0.1 copied to clipboard

A Flutter package for animated star ratings with customizable animations.

Animated Star Rating #

A Flutter package to add interactive animated star ratings with various animation types like scale, rotate, bounce, fade and etc.

🚀 Getting Started #

1. Add Dependency #

Add the following to your pubspec.yaml:

dependencies:
  animated_star_rating: ^1.0.0
  1. Install Package Run the following command:

flutter pub get

  1. Import the Package
import 'package:animated_star_rating/animated_star_rating.dart';

📖 Usage 🖼️ Give rating number and animation

Widget _buildRatingRow(String label, StarAnimationType animationType) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        Text(label, style: const TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
        const SizedBox(height: 6),
        AnimatedStarRating(
          initialRating: 3.0,
          animationType: animationType,
          onRatingChanged: (rating) {
            // print('$label Rating changed: $rating');
          },
        ),
        const SizedBox(height: 24),
      ],
    );
  }

    _buildRatingRow("Bounce Animation", StarAnimationType.bounce),

📸 Developed by #

✅ VENU RENANGI
✅ SONAM GUPTA ✅ KAMNA JOSHI

1
likes
150
points
126
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for animated star ratings with customizable animations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_animate, flutter_svg

More

Packages that depend on animated_star_rating