flutter_star 0.0.6 flutter_star: ^0.0.6 copied to clipboard
You can create a star easily and decide how many angle or color of the star, even the fat and progress of the star.
import 'package:flutter/material.dart';
import 'package:flutter_star/flutter_star.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
appBar: AppBar(),
body: Center(
child: Column(
children: <Widget>[
StarWidget(
star: Star(
progress: 0.8, num: 5, fat: 0.6, fillColor: Colors.green),
),
StarScore(
score: 4.8,
star: Star(
fillColor: Colors.tealAccent,
emptyColor: Colors.grey.withAlpha(88)),
)
],
))),
);
}
}