Coder Social home page Coder Social logo

tovidd / reviews_slider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kherel/reviews_slider

0.0 1.0 0.0 2.96 MB

A Flutter animated widget made to help users leave reviews and feedbacks

Home Page: https://pub.dev/packages/reviews_slider

License: MIT License

Dart 95.43% Kotlin 1.97% Swift 2.38% Objective-C 0.22%

reviews_slider's Introduction

reviews_slider

Pub

Animated widget with changing smile to collect user review score

mobile

tablet

Getting started

Add reviews_slider: "^1.0.4" in your pubspec.yaml dependencies.

dependencies:
 reviews_slider: "^1.0.4"

How To Use

Import the following package in your dart file

import 'package:reviews_slider/reviews_slider.dart';

Basic Widget

  ReviewSlider(
    onChange: (int value){
      // active value is an int number from 0 to 4, where:
      // 0 is the worst review value
      // and 4 is the best review value
      print(value);
    }),
  ),
Parameter Default Description
initialValue 2 the init value of the slider
onChange Triggered every time when a pointer have changed the value of the slider and is no longer in contact with the screen.
options ['Terrible', 'Bad', 'Okay', 'Good', 'Great'] Review titles
optionStyle TextStyle(color: Colors.black) Text style of review titles

reviews_slider's People

Contributors

kherel avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.