custom_slider 0.0.2 copy "custom_slider: ^0.0.2" to clipboard
custom_slider: ^0.0.2 copied to clipboard

outdated

Make a custom slider with Custom Slider Thumb Image and gradient Track.

Custom Slider #

Custom Slider package lets you add a beautiful slider Track gradient and Image on SliderThumb to your Flutter app.

Getting started #

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  custom_slider: ^0.0.2
  1. Import the package and use it in your Flutter App.
import 'package:custom_slider/custom_slider.dart';

Example #

There are a number of properties that you can modify:

  • assetImage
  • linearGradient
  • inActiveTrackColor

import 'package:custom_slider/custom_slider.dart';

void main() {
 runApp(const MyApp());
}

class MyApp extends StatelessWidget {
 const MyApp({Key? key}) : super(key: key);

 // This widget is the root of your application.
 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     title: 'Custom Slider',
     theme: ThemeData(
       primarySwatch: Colors.blue,
     ),
     home: const CustomSlider(
       assetImage: 'assets/slider_icon.png',
       inActiveTrackColor: Colors.pink,
       linearGradient: LinearGradient(colors: [Colors.pink, Colors.white]),
     ),
   );
 }
}

Subscribe my youtube Channel "Ridz Creations" #

https://www.youtube.com/channel/UCoXamjItgSKtu1j61EB04cg

5
likes
70
pub points
71%
popularity

Publisher

unverified uploader

Make a custom slider with Custom Slider Thumb Image and gradient Track.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on custom_slider