/ Slider

Height Slider Widget for Flutter

Height Slider Widget for Flutter

height-slider

A customisable height slider for Flutter.

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),
        ),
      ),
    );
  }
}

GitHub

Comments