weight_slider 1.0.0 weight_slider: ^1.0.0 copied to clipboard
Customisable slider widget for retrieving weight.
Weight Slider Widget for Flutter
✨ Demo #
🚀 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,
onChanged: (val) => setState(() => weight = val),
),
),
);
}
}
📝 License #
This project is MIT licensed.