I have a class like this :
class MyController {
static PageController globalController = PageController(initialPage: 0);
void diispose() {
globalController.dispose();
}
}
I'd like to use this PageController in two different locations to modify thePageView
however after use MyController.globalController.jumpToPage(1); I got this error :
ScrollController attached to multiple scroll views.
'package:flutter/src/widgets/scroll_controller.dart':
package:flutter/…/widgets/scroll_controller.dart:1
Failed assertion: line 108 pos 12: '_positions.length == 1'