weight_slider 1.2.0 copy "weight_slider: ^1.2.0" to clipboard
weight_slider: ^1.2.0 copied to clipboard

outdated

Customisable slider widget for retrieving a person's weight/mass.

Weight Slider Widget for Flutter

Pub Version License: MIT

✨ Demo #

weight slider

🚀 Usage #

class _MyHomePageState extends State<MyHomePage> {
  int weight = 70;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: WeightSlider(
            weight: weight,
            minWeight: 40,
            maxWeight: 120,
            onChange: (val) => setState(() => this.weight = val),
            unit: 'kg', // optional
          ),
        ),
    );
  }
}

📝 License #

This project is MIT licensed.

27
likes
0
pub points
44%
popularity

Publisher

verified publishercovalsolutions.com

Customisable slider widget for retrieving a person's weight/mass.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on weight_slider