File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,6 +248,10 @@ class _MyHomePageState extends State<MyHomePage>
248248 },
249249 ),
250250
251+ SizedBox (
252+ height: 20.0 ,
253+ child: Text ('selected rating ${_rating .toStringAsFixed (1 )}' ),
254+ ),
251255
252256 GFRating (
253257 rating: _userRating,
Original file line number Diff line number Diff line change @@ -56,16 +56,22 @@ class GFRating extends StatefulWidget {
5656 /// return current rating whenever rating is updated
5757 final RatingChangeCallback onRatingChanged;
5858
59+ /// if true, shows rating [TextFormField] with the rating bar, that allows the user input to show rating
5960 final bool textFormRating;
6061
62+ /// defines the design and funtion of rating [TextFormField] 's suffix icon
6163 final Widget suffixIcon;
6264
65+ /// controls the [TextField] Controller of rating [TextFormField]
6366 final TextEditingController ratingController;
6467
68+ /// defines the [InputDecoration] of rating [TextFormField]
6569 final InputDecoration inputDecorations;
6670
71+ /// defines the margin of rating [TextFormField]
6772 final EdgeInsets margin;
6873
74+ /// defines the padding of rating [TextFormField]
6975 final EdgeInsets padding;
7076
7177 @override
You can’t perform that action at this time.
0 commit comments