Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kherel/reviews_slider

A Flutter animated widget made to help users leave reviews and feedbacks
https://github.com/kherel/reviews_slider

flutter flutter-animation flutter-package flutter-widgets review slider

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# reviews_slider
[![Pub](https://img.shields.io/pub/v/reviews_slider.svg)](https://pub.dartlang.org/packages/reviews_slider)

Animated widget with changing smile to collect user review score

![mobile](example_mobile.gif)

![tablet](example_tablet.gif)

## Getting started

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

```yaml
dependencies:
reviews_slider: "^1.0.4"
```

### How To Use

Import the following package in your dart file

```dart
import 'package:reviews_slider/reviews_slider.dart';
```

Basic Widget

```dart
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