scroll_controller property
scroll_controller
Implementation
late final ScrollController scroll_controller = ScrollController(
keepScrollOffset: true,
onAttach: (position) {
if (_is_call_activate == false) {
_is_call_activate = true;
on_initialized();
}
on_attach_or_detach(true, position.pixels);
is_activate = true;
update();
},
onDetach: (position) {
is_activate = false;
on_attach_or_detach(is_activate, position.pixels);
last_offset = position.pixels;
update();
},
);