flutter - 参数类型“AnimationController?” 不能分配给参数类型“Listenable”
问题描述
尝试使用复杂的 ui 树(堆栈、变换和动画)创建动画自定义抽屉。在AnimatedBuilder的动画中使用animatedcontroller时..我得到的错误比animatedcontroller不能分配给可听
Widget build(BuildContext context) {
return GestureDetector(
onHorizontalDragStart: _onDragStart,
onHorizontalDragUpdate: _onDragUpdate,
onHorizontalDragEnd: _onDragEnd,
behavior: HitTestBehavior.translucent,
onTap: toggle,
child: AnimatedBuilder(
animation: animationController, //I am getting error here
builder: (context, _) {
return
Here is the code i am using....please help me
解决方案
推荐阅读
- amazon-web-services - mosquitto_pub 第一次尝试失败,然后成功
- c# - 覆盖 Unity 内置组件的自定义检查器
- javascript - 从 Socket.IO 获取响应后无法立即使用新的 redux 状态
- javascript - 使用 JavaScript 调整图像宽度
- java - 查找兼容元素的所有可能组合
- sql - 从具有子表条件的父表中选择
- .net - 如何在没有参数的情况下运行“dotnet lambda deploy-serverless”命令?
- node.js - Express.js API 无法从前端接收 cookie
- arrays - main() 中的数组在函数中发生变化
- rust - 如何仅映射迭代器中的 Some() 值?