Skip to content

BlobController.change() doesn't animate #10

Description

@timcreatedit

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();
...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions