flutter_star 0.1.0 copy "flutter_star: ^0.1.0" to clipboard
flutter_star: ^0.1.0 copied to clipboard

outdated

You can create a star easily and decide how many angle or color of the star, even the fat and progress of the star.

example/main.dart

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)),
              )
            ],
          ))),
    );
  }
}
14
likes
0
pub points
87%
popularity

Publisher

verified publishertoly1994.com

You can create a star easily and decide how many angle or color of the star, even the fat and progress of the star.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_star