Skip to content

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

License

Notifications You must be signed in to change notification settings

vishwaprojects/reviews_slider

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 85.4%
  • HTML 7.2%
  • Swift 5.6%
  • Kotlin 1.6%
  • Objective-C 0.2%