When both interfaces have display logic, frequent interface switching reports an error, and the animation is stuck
The following assertion was thrown during a scheduler callback: 'package:flutter/src/animation/animation_controller.dart': Failed assertion: line 789 pos 12: 'elapsedInSeconds >= 0.0': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2 AnimationController._tick (package:flutter/src/animation/animation_controller.dart:789:12)
#3 Ticker._tick (package:flutter/src/scheduler/ticker.dart:238:12)
#4 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1148:15)
#5 SchedulerBinding.handleBeginFrame.
This exception was thrown in the context of a scheduler callback. When the scheduler callback was registered (as opposed to when the exception was thrown), this was the stack: #2 SchedulerBinding.scheduleFrameCallback (package:flutter/src/scheduler/binding.dart:532:49) #3 Ticker.scheduleTick (package:flutter/src/scheduler/ticker.dart:253:47) #4 Ticker.start (package:flutter/src/scheduler/ticker.dart:162:7) #5 AnimationController._startSimulation (package:flutter/src/animation/animation_controller.dart:714:42) #6 AnimationController.repeat (package:flutter/src/animation/animation_controller.dart:638:12) ...
Thanks for taking the time to open an issue. I will have a look and answer as soon as possible.