Skip to content

Commit 5d8817f

Browse files
committed
rating definations done
1 parent 8d982d2 commit 5d8817f

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

example/lib/main.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

lib/components/rating/gf_rating.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)