flutter_blobs
flutter_blobs copied to clipboard
BlobController.change() doesn't animate
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();
...
}