interpolate_animated 0.0.1
interpolate_animated: ^0.0.1 copied to clipboard
Sometimes you need to map value from one range to another. This is where you should use interpolate functions which approximates values between points in the output range and lets you map value inside [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add interpolate_animated
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
interpolate_animated: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:interpolate_animated/interpolate_animated.dart';