Has anyone come across this error when trying to trigger a widget animation within the action tree?
The widget animation is a 1 second fade in, but nothing shows up in the app when this is triggered.
I do have the duration for the animation set to 1000 ms.
I'd love anyone's help with this!! ๐
Here is the full error:
Uncaught (in promise) Error: AnimationController.forward() called with no default duration.
The "duration" property should be set, either in the constructor or later, before calling the forward() function.
at Object.throw_ [as throw] (dart_sdk.js:11914:11)
at animation_controller.dart:476:9
at animation_controller.AnimationController.new.forward (animation_controller.dart:482:14)
at home2_copy_widget._Home2CopyWidgetState.new.<anonymous> (home2_copy_widget.dart:74:31)
at Generator.next (<anonymous>)
at dart_sdk.js:49722:33
at RootZone.runUnary (dartsdk.js:49577:59)
at FutureListener.thenAwait.handleValue (dartsdk.js:44704:29)
at handleValueCallback (dart_sdk.js:45304:49)
at Future.propagateToListeners (dart_sdk.js:45342:17)
at [_complete] (dart_sdk.js:45175:25)
at dart_sdk.js:44138:30
at internalCallback (dart_sdk.js:37398:11)