osom_rating 0.0.3 icon indicating copy to clipboard operation
osom_rating: ^0.0.3 copied to clipboard

the most fun way to get a rating component for your flutter apps

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:osom_rating/osom_rating.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  double ratingValue = 3.3;

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Osom Rating Demo'),
          ),
          body: Container(
            child: Center(
              child: OsomRating(
                rating: ratingValue,
                sizeStar: 50,
                minimunHalfValue: 2,
                totalStars: 7,
                onTapped: (currentRating) {
                  setState(() {
                    this.ratingValue = currentRating;
                  });
                },
                onDoubleTapped: () {
                  setState(() {
                    this.ratingValue = 0;
                  });
                },
              ),
            ),
          )),
    );
  }
}
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

the most fun way to get a rating component for your flutter apps

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on osom_rating