Skip to content
pubscout

animated_weight_picker

1.0.3, released 4 years ago by gurutechnolabs.com

Animated weight picker widget for selecting weight values via swipe or drag.

WASM-ready
$ flutter pub add animated_weight_picker
Source repository

What it does

Provides a customizable widget that lets users pick a weight value with an animated scale. It supports metric and imperial units and allows fine‑grained increments.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a weight input in a fitness or health app
  • You want a visually engaging picker instead of a simple slider
  • You need support for both metric and imperial units
  • You want to customize the appearance of the picker

Skip it when

  • You only need a basic numeric input
  • You are building a non‑Flutter platform
  • You require persistence or state management beyond the widget

Strengths

  • Animated UI for better user experience
  • Highly customizable options (intervals, colors, text)
  • Supports both metric and imperial units
  • Simple API with onChange callback

Weaknesses

  • Only handles weight selection, not other numeric types
  • No built‑in state management or persistence
  • Limited documentation beyond README
  • No unit tests included

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final double min = 0;
final double max = 10;
String selectedValue = '';
@override
void initState() {
  selectedValue = min.toString();
  super.initState();
}
@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: const Text('Animated Weight Picker')),
    body: Center(
      child: AnimatedWeightPicker(
        min: min,
        max: max,
        onChange: (newValue) {
          setState(() {
            selectedValue = newValue;
          });
        },
      ),
    ),
  );
}

Alternatives

Packages that do the same job and could replace animated_weight_picker.