animation_model 1.0.0 copy "animation_model: ^1.0.0" to clipboard
animation_model: ^1.0.0 copied to clipboard

AnimationModel is a pure dart package to animate multiple values at the same time using the Breakpoint objects which is a linked list object

example/animation_model_example.dart

import 'package:animation_model/animation_model.dart';

void main() {
  final model = AnimationModel();

  model.setPropertyJson('a', {0.5: 10, 1: 0});
  model.setPropertyJson('b', {0: 10, 1: 0});
  model.setPropertyJson('c', {0: 10, 1: 5});

  for (double i = 0; i < 1; i += 0.1) {
    print('$i: ${model.calculate(i)}');
  }
}
1
likes
160
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

AnimationModel is a pure dart package to animate multiple values at the same time using the Breakpoint objects which is a linked list object

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on animation_model