FLUTTER ECOSYSTEM

IvanSupervan/filling_slider

IvanSupervan/filling_slider open-source repository details.

填充滑块 项目封面
Stars
11
Forks
2
最近推送(UTC)
2021年5月13日
项目状态
未归档
Ivan Mogilevsky GitHub avatar
GITHUB User

Ivan Mogilevsky ↗

语言DartHTMLSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Filling Slider

pub.dev points pub.dev likes pub.dev popularity
This is IOS-like slider widget

Demo

Example gif

How to use

Simple vertical slider
FillingSlider()
Simple horizontal slider
FillingSlider(
  direction: FillingSliderDirection.horizontal
)

Props

You can set initial value of slider in range [0.0, 1.0]

double initialValue
Visual Props

You can change size, direction and color of slider

double width
double height
Color color
Color fillColor
SliderDirection direction
Callbacks Props

There are 2 methods to respond to a change in the value of the slider

Function onChange - Notifies about all slider changes
Function onFinish - Notifies about the end of changes
Child Props
Widget child
Function childBuilder