Flutter 颤振中的控制器位置是什么?
在ScrollController类中,它具有position属性 ScrollController位置属性文档:Flutter 颤振中的控制器位置是什么?,flutter,scroll,position,scrollcontroller,Flutter,Scroll,Position,Scrollcontroller,在ScrollController类中,它具有position属性 ScrollController位置属性文档: ScrollPosition get position { assert(_positions.isNotEmpty, 'ScrollController not attached to any scroll views.'); assert(_positions.length == 1, 'ScrollController attached to multiple scr
ScrollPosition get position {
assert(_positions.isNotEmpty, 'ScrollController not attached to any scroll views.');
assert(_positions.length == 1, 'ScrollController attached to multiple scroll views.');
return _positions.single;
}
Position属性是可增长列表,但我从未见过长度>=2。
它的长度始终为1
什么是职位属性?如何添加新职位