-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typedef Function generated as null #35
Comments
@skybur I'll look into it. Are you sure it's a good idea to pass a callback func to a route though? |
Well, one of my use case is like this
I can't think any other way besides providing callback. |
@skybur You could have a shared model/bloc between your master/details screens or if you're going for a simpler approach you could have your DetailsScreenRoute return the edited ITEM then update your list from there var editedItem = await Router.navigator.push(Router.detailsScreen);
// inside of your details screen pop with Results
Router.navigator.pop([editedItem]); |
I tried using However I'm gonna try your suggestion since I'm totally gonna use this package for routing, thanks! |
@skybur, You can easily type your returned results @MaterialRoute(returnType: ITEMTYPE)
DetailsScreen detialsScreen;
....
Router.navigator.pushNamed<ITEMTYPE>()
Router.navigator.pop<ITEMTYPE>(item) I hope this helps. and thanks for reporting the bug, I'll let you know when it's fixed. |
I'm wondering what that |
@skybur You're welcome. |
@skybur finally fixed in auto_route_generator 0.4.10 Thanks @nateshmbhat |
I have this widget and I'm using
ValueChanged
from flutterand this is the generated argument
I'm using
auto_router
version 0.3.0The text was updated successfully, but these errors were encountered: