Height Slider Widget for Flutter

You are currently viewing Height Slider Widget for Flutter
Height Slider

Height Slider Widget for Flutter

Demo

Height Slider
Height Slider

Usage

class _MyHomePageState extends State<MyHomePage> {
  int height = 170;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: HeightSlider(
          height: height,
          onChange: (val) => setState(() => height = val),
          unit: 'cm', // optional
        ),
      ),
    );
  }
}

You can also use your own person SVG, by passing the path through the parameter personImagePath.

Credit

This is developed by coval-solutions
Download this project from the below link.
https://github.com/coval-solutions/height-slider/archive/refs/heads/master.zip
You can visit original source page from the below link:
https://github.com/coval-solutions/height-slider

See also  Flutter AppBar | How to Implement and Use It

Spread the love

Leave a Reply