JRY1009 / number_slider

A flutter widget provides a digital slide display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

number_slider

number_slider provides a digital slide display

Installation

Add number_slider: ^0.0.2 to pubspec.yaml dependencies. And import it:

import 'package:number_slider/number_slider.dart';

How to use

Simply create a NumberSlider widget, and pass the required params:

NumberSliderController controller = NumberSliderController();

NumberSlider(
    controller: controller,
    initialNumber: '66,666.66',
    textStyle: TextStyle(
        color: Color(0xFFEC3944),
        fontSize: 22,
    )
)

When you want to change the number:

controller.number = '88,888.88';

Any symbol insertion is supported

simple

License

MIT

About

A flutter widget provides a digital slide display

License:MIT License


Languages

Language:Dart 93.6%Language:Objective-C 5.4%Language:Java 1.1%