GFRating constructor
const
GFRating({
- Key? key,
- required RatingChangeCallback onChanged,
- required double value,
- int itemCount = 5,
- double spacing = 0.0,
- Widget? defaultIcon,
- Color? color,
- Color? borderColor,
- double size = GFSize.MEDIUM,
- Widget? filledIcon,
- Widget? halfFilledIcon,
- bool allowHalfRating = true,
- bool showTextForm = false,
- Widget? suffixIcon,
- TextEditingController? controller,
- InputDecoration? inputDecorations,
- EdgeInsets margin = const EdgeInsets.symmetric(vertical: 16),
- 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);