slider_controller
Um pacote que nos dá um controlador de deslizador e um widget personalizado. Este widget é usado para personalização fácil do widget deslizador.
Um pacote que nos dá um controlador de deslizador e um widget personalizado. Este widget é usado para personalização fácil do widget deslizador.
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.1Texto original em inglês. Visite o GitHub para a versão atual.
Flutter Website Dart Website https://img.shields.io/badge/platform-Android-deepskyblue https://img.shields.io/badge/platform-iOS-deepskyblue https://img.shields.io/badge/platform-Web-deepskyblue https://img.shields.io/badge/platform-Mac-deepskyblue https://img.shields.io/badge/platform-Linux-deepskyblue https://img.shields.io/badge/platform-Windows-deepskyblue https://app.codacy.com/project/badge/Grade/dc683c9cc61b499fa7cdbf54e4d9ff35 https://img.shields.io/github/license/Mindinventory/slider_controller https://img.shields.io/pub/v/slider_controller?color=as&label=slider_controller&logo=as1&logoColor=blue&style=social MIT License
A package that gives us a slider controller a custom widget. This widget is used for easy customization for the slider widget.
slider_controller
Import it to your project file
import 'package:slider_controller/slider_controller.dart';
And add it in its most basic form like it:
SliderController(
value: 50.0,
onChanged: (value) {
print('slider value : $value');
},
);
| Parameter | Description |
|---|---|
| double value | Indicates the default slider thumb value between the 0.0 to 100.0 |
| ValueChanged onChanged | Called during a drag when the user is selecting a new value for the slider by dragging |
| Parameter | Default | Description |
|---|---|---|
| ValueChanged? onChangeEnd | - | Called when the user is done selecting a new value for the slider |
| ValueChanged? onChangeStart | - | Called when the user starts selecting a new value for the slider |
| double min | 0.0 | Indicates the Minimum value for the slider |
| double max | 100.0 | Indicates the Maximum value for the slider |
| SliderDecoration sliderDecoration | -- | Used to Decorate the Slider Widget |
| bool isDraggable | true | Used to Enable or Disable Drag Gesture of Slider |
| Parameter | Default | Description |
|---|---|---|
| Color inactiveColor | Colors.blueGrey | Defines the background color of the inactive part of the slider |
| Color activeColor | Colors.blue | Defines the background color of the active part of the slider |
| Color thumbColor | Colors.white | Defines the thumb color of the slider |
| double borderRadius | 20.0 | Indicates the rounded border radius for the slider |
| double height | 50.0 | Indicates the height of the slider |
| bool isThumbVisible | true | Indicates that slider thumb is visible or not |
| double thumbHeight | 25.0 | Indicates the height of the slider thumb |
| double thumbWidth | 5.0 | Indicates the width of the slider thumb |
It would be great for us if the reporter can share the below things to understand the root cause of the issue.
slider_controller is MIT-licensed.
We’d be really happy if you send us links to your projects where you use our component. Just send an email to sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.