Skip to content

wangenyong/weight-slider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

📝 License

This project is MIT licensed.

About

A customisable weight slider for Flutter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%