Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kherel/reviews_slider
- Owner: kherel
- License: mit
- Created: 2019-09-06T17:11:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-03T11:43:24.000Z (over 2 years ago)
- Last Synced: 2024-08-01T12:28:13.961Z (3 months ago)
- Topics: flutter, flutter-animation, flutter-package, flutter-widgets, review, slider
- Language: Dart
- Homepage: https://pub.dev/packages/reviews_slider
- Size: 2.97 MB
- Stars: 91
- Watchers: 4
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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