v2.0.0reviews_slider
帶有表情變化的動畫組件,用於收集使用者評分。
111喜歡 87近 30 天下載130Pub 分數
AndroidiOSWebmacOSWindowsLinux
一個 Flutter 動畫組件,旨在幫助使用者留下評論和反饋
{"sdk":"flutter"}^2.1.0{"sdk":"flutter"}以下為英文專案原文快照,最新內容請造訪 GitHub。
Animated widget with changing smile to collect user review score
mobile
tablet
Add reviews_slider: "^1.0.4" in your pubspec.yaml dependencies.
dependencies:
reviews_slider: "^1.0.4"
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 |