So I've made PageViewer
and I wasn't able to use Navigator
inside of it, instead what I'm trying to do is to pass diferrent widget inside using StatefulWidget
that return functions,
I want to access said StatefulWidget
and change variable inside of it, couldn't find a way to do it
This is the PageView
:
Expanded(
child: PageView(
children: [
SetPage(), // Look at the bottom need to be changeable
],
),
),
and this is the StatefulWidget
I use to pass in the page:
class SetPage extends StatefulWidget {
@override
_SetPageState createState() => _SetPageState();
}
class _SetPageState extends State<SetPage> {
@override
Widget build(BuildContext context) {
var _page = ChooseAccount();
return _page;
}
}