flutter_blobs icon indicating copy to clipboard operation
flutter_blobs copied to clipboard

BlobController.change() doesn't animate

Open timcreatedit opened this issue 3 years ago • 0 comments

I was of the assumption that if I trigger a change from the BlobController on an animated Blob, the change would be animated. Unfortunately, that doesn't happen and the Blob just jumps to its new shape instantly.

Code sample:

Container(
          child: Blob.animatedRandom(
            size: 600,
            edgesCount: 5,
            minGrowth: 4,
            duration: 1.seconds,
            controller: viewModel.blobController,
            styles: BlobStyles(
              color: color,
            ),
          ),
        ),

And in my ViewModel (ChangeNotifier)

 Future<void> login() async {
    _valid = formKey.currentState?.validate() ?? false;
    notifyListeners();
    blobController.change();
...
}

timcreatedit avatar Jun 25 '21 07:06 timcreatedit