i am trying to make a costum star-based rating widget with different style of star on each usage
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/foundation/key.dart';
import 'package:flutter/src/widgets/framework.dart';
class Stars extends StatelessWidget {
const Stars({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Row(
children:
[
Icon(Icons.star, color: Colors.yellow, size: 20,),
Icon(Icons.star, color: Colors.yellow, size: 20,),
Icon(Icons.star, color: Colors.yellow, size: 20,),
Icon(Icons.star_outlined, color: Color.fromARGB(255, 0xE1, 0xE1, 0xEA), size: 20,),
Icon(Icons.star_outlined, color: Color.fromARGB(255, 0xE1, 0xE1, 0xEA), size: 20,),
]
);
}
}
the output UI will be like this

Is there any way I can implement it?