File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,27 +250,27 @@ class _MyHomePageState extends State<MyHomePage>
250250
251251 GFRating (
252252 value: _userRating,
253- // filledIcon: Image.asset(
254- // 'lib/assets/heart.png',
255- // height: 50,
256- // width: 50,
257- // color: Colors.amber,
258- // ),
259- // halfFilledIcon: Image.asset(
260- // 'lib/assets/heart_half.png',
261- // height: 50,
262- // width: 50,
263- // color: Colors.amber,
264- // ),
265- // defaultIcon: Image.asset(
266- // 'lib/assets/heart_border.png',
267- // height: 50,
268- // width: 50,
269- // color: Colors.amber,
270- // ),
271- // spacing: 8,
272- // color: Colors.teal,
273- // borderColor: Colors.tealAccent,
253+ filledIcon: Image .asset (
254+ 'lib/assets/heart.png' ,
255+ height: 50 ,
256+ width: 50 ,
257+ color: Colors .amber,
258+ ),
259+ halfFilledIcon: Image .asset (
260+ 'lib/assets/heart_half.png' ,
261+ height: 50 ,
262+ width: 50 ,
263+ color: Colors .amber,
264+ ),
265+ defaultIcon: Image .asset (
266+ 'lib/assets/heart_border.png' ,
267+ height: 50 ,
268+ width: 50 ,
269+ color: Colors .amber,
270+ ),
271+ spacing: 8 ,
272+ color: Colors .teal,
273+ borderColor: Colors .tealAccent,
274274 controller: _ratingController,
275275 textForm: true ,
276276 suffixIcon: GFButton (
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class GFRating extends StatefulWidget {
3333 /// defines the border color of [halfFilledIcon]
3434 final Color borderColor;
3535
36- /// defines the size of items
36+ /// defines the size of items. GFSize can be used for size variations like small. medium. large
3737 final dynamic size;
3838
3939 /// if true, allow half rating of items. Default it will be in true state
You can’t perform that action at this time.
0 commit comments