FLUTTER ECOSYSTEM

kherel/reviews_slider

Um widget animado do Flutter feito para ajudar os usuários a deixar avaliações e feedbacks

Capa do projeto reviews_slider
Stars
92
Forks
16
Último push (UTC)
3 de jul. de 2022
Status do projeto
Ativo
Kherel GitHub avatar
GITHUB User

Kherel ↗

Alicante, Spain
LinguagensDartHTMLSwiftKotlinObjective-C

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • vector_math^2.1.0
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

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