counter_slider 0.1.0 copy "counter_slider: ^0.1.0" to clipboard
counter_slider: ^0.1.0 copied to clipboard

Flutter Number counter widget with sliding animations and Material theme colors.

example/lib/main.dart

import 'package:counter_slider/counter_slider.dart';
import 'package:flutter/widgets.dart';

class Example extends StatefulWidget {
  const Example({super.key});

  @override
  State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
  int value = 0;

  void setValue(int newValue) {
    setState(() {
      value = newValue;
    });
  }

  @override
  Widget build(BuildContext context) {
    return CounterSlider(
      value: value,
      setValue: setValue,
      minValue: 0,
      maxValue: 4,
      width: 240,
      height: 80,
      slideFactor: 1.4,
    );
  }
}
6
likes
150
pub points
54%
popularity

Publisher

unverified uploader

Flutter Number counter widget with sliding animations and Material theme colors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on counter_slider