A real world useful widget for selecting values in natural ways.
To use this package :
- Add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: flutter
gradual_stepper:
- Usage example.
import 'package:gradual_stepper/gradual_stepper.dart';
// ...
Container(
padding: const EdgeInsets.all(8.0),
child: GradualStepper(
initialValue: 0,
minimumValue: -100,
maximumValue: 100,
stepValue: 2,
onChanged: (int value) => print('new value $value'),
),
),
// ...
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.