GFRating constructor

const GFRating({
  1. Key? key,
  2. required RatingChangeCallback onChanged,
  3. required double value,
  4. int itemCount = 5,
  5. double spacing = 0.0,
  6. Widget? defaultIcon,
  7. Color? color,
  8. Color? borderColor,
  9. double size = GFSize.MEDIUM,
  10. Widget? filledIcon,
  11. Widget? halfFilledIcon,
  12. bool allowHalfRating = true,
  13. bool showTextForm = false,
  14. Widget? suffixIcon,
  15. TextEditingController? controller,
  16. InputDecoration? inputDecorations,
  17. EdgeInsets margin = const EdgeInsets.symmetric(vertical: 16),
  18. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16),
})

GFRating to show ratings with many custimazation options.

Implementation

const GFRating({
  Key? key,
  required this.onChanged,
  required this.value,
  this.itemCount = 5,
  this.spacing = 0.0,
  this.defaultIcon,
  this.color,
  this.borderColor,
  this.size = GFSize.MEDIUM,
  this.filledIcon,
  this.halfFilledIcon,
  this.allowHalfRating = true,
  this.showTextForm = false,
  this.suffixIcon,
  this.controller,
  this.inputDecorations,
  this.margin = const EdgeInsets.symmetric(vertical: 16),
  this.padding = const EdgeInsets.symmetric(horizontal: 16),
}) : super(key: key);