Skip to content

Dart package for replacing Slider thumb with an image

License

Notifications You must be signed in to change notification settings

BujusKrachus/dart_image_slider

 
 

Repository files navigation

Features

  • image_slider facilitates adding any assets image as the thumb shape of a slider.
  • provided Slider is entirely configurable as needed with it's on custom theme.
  • only the assets image path and subjected slider are need to be provided.

Getting started

import image_slider as follows,

import 'package:image_slider/image_slider.dart';

Usage

  1. Create Slider

    Slider _getSlider() { return Slider( value: _currentValue, max: 100, divisions: 10, label: _currentValue.round().toString(), onChanged: (double value) { setState(() { }); }, ); }

  2. Place the image in the assets folder & define assets in pubspec.yaml file

  3. provide slider & image path to the image_slider as follows,

    ImageSlider( slider: _getSlider(), imagePath: 'assets/button.png', )

Additional information

This packages supports only for assets images for the moments.

About

Dart package for replacing Slider thumb with an image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 42.5%
  • CMake 38.0%
  • Dart 10.1%
  • HTML 3.7%
  • C 2.9%
  • Swift 2.4%
  • Other 0.4%