match_magic/lib/widgets/icon_widgets/star_icon.dart

26 lines
516 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:match_magic/utilities/assets.dart';
class StarIcon extends StatelessWidget {
const StarIcon({
Key? key,
this.width = 18,
this.height = 18,
this.color,
}) : super(key: key);
final double width;
final double height;
final Color? color;
@override
Widget build(BuildContext context) {
return SvgPicture.asset(
Assets.svg.star,
width: width,
height: height,
);
}
}