Комментарии:
This was a very good video, learned a lot about MobX. Regarding the BuildContext issue, would using a callback work? I'm thinking if you created a property on the store i.e.
class AuthStore {
Function navigateToMenuCallback;
}
Then on the page you would have a local function which gets assigned to navigateToMenuCallback.
Widget build(BuildContext context) {
store.navigateToMenuCallback = () {
//navigation logic using build context goes here; context gets captured as part of closure
}
return Column(
//rest of page code
);
}
Then later on in an action or reaction you just call navigateToMenuCallback() when appropriate. Just off the top of my head but worth a shot.
Very nice video.
It was lil bit inconvenient since the phone screen was overlapped by the faces of you guys.
What is the name of that font & theme Majid???
ОтветитьWhat about getX?
Ответить