reviews_slider 1.0.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 76

reviews_slider #

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);
    }),
  ),
ParameterDefaultDescription
initialValue2the init value of the slider
onChangeTriggered 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
optionStyleTextStyle(color: Colors.black)Text style of review titles

1.0.4 #

  • description fix

1.0.3 #

  • fix
  • row support

1.0.2 #

  • update description

1.0.1 #

  • update example

1.0.0 #

  • initial release

example/README.md

example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  reviews_slider: ^1.0.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:reviews_slider/reviews_slider.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
52
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
76
Learn more about scoring.

We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.13.1+4
  • Flutter: 1.12.13+hotfix.2

Health suggestions

Format lib/reviews_slider.dart.

Run flutter format to format lib/reviews_slider.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
vector_math ^2.0.8 2.0.8
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
Dev dependencies
flutter_test