Skip to content

Commit 2543cec

Browse files
committed
rating bar testing done
1 parent 6118962 commit 2543cec

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

example/lib/main.dart

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

lib/components/rating/gf_rating.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)