Skip to content

BlobController.change() doesn't animate #10

Open
@timcreatedit

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

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