Closed GIfatahTH closed 2 years ago
Cool, finally this package comes with Nav 2.0, however, this thing is complex and stuck when working with flutter web (deep linking, nested route)
Hi @amoslai5128
Could you help me by giving me the code of the example where deep linking and nested routes are not working?
@amoslai5128 Please take a look at the navigation example gallery and feed me back.
https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation
Hi @amoslai5128
Could you help me by giving me the code of the example where deep linking and nested routes are not working?
From my case, I think it's easy to be described by drawing you a screen or picture if you don't mind.
@amoslai5128 Please take a look at the navigation example gallery and feed me back.
https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation
OH MY GOD, this is the smartest way to do that!
I think it must have a promotion at medium.
@amoslai5128
From my case, I think it's easy to be described by drawing you a screen or picture if you don't mind.
Please go ahead.
@amoslai5128
From my case, I think it's easy to be described by drawing you a screen or picture if you don't mind.
Please go ahead.
@GIfatahTH, here I am, the hardest part for me are:
I don't mind writing this UI in flutter code so that it can be an example to help others.
EDIT: Fixed the wrong screen name on the menu bar.
@amoslai5128 Please take a look at the navigation example gallery and feed me back.
https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation
I found a bug on ex14_return_data when I got into the options page(yep or nope), then I pressed F5 from the browser, the return data lost, after page popped, nothing shows up.
@amoslai5128
I found a bug on ex14_return_data when I got into the options page(yep or nope), then I pressed F5 from the browser, the return data lost, after page popped, nothing shows up.
I think that the expected behavior. I tried it with Flutter api and got the same behavior. This is because the (yep or nope) page when F5 is pressed is no longer create from the onPressed
callback where we wait for the result.
Hi @amoslai5128 This is my first attempt to reproduce your use case:
https://github.com/GIfatahTH/ex_navigation_amosali
I concentrated on navigation logic rather than the UI.
@amoslai5128 Do you have any issue?
Please see the https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation I updated it.
@amoslai5128 Do you have any issue?
Please see the https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation I updated it.
Oh my god, that's another level of development experience with Navigation 2.0
@amoslai5128 Can you do me a favor? If you could modify the read me file of the navigation example by adding the list of the examples link with short description of each one.
@amoslai5128 Can you do me a favor? If you could modify the read me file of the navigation example by adding the list of the examples link with short description of each one.
Ok, I try to work on that asap
@amoslai5128 Can you do me a favor? If you could modify the read me file of the navigation example by adding the list of the examples link with short description of each one.
@GIfatahTH I've posted a new readme (unfinished), please check it out, let me know if there's any problem.
https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex_006_5_navigation
@amoslai5128
@GIfatahTH I've posted a new readme (unfinished), please check it out, let me know if there's any problem.
Very good work. I really appreciate your contribution. Please go ahead.
Inspired for what I did with nav2 examples. I started creating a set of example catalog going from basic to advanced for all states_rebuilder features.
I let you know asap.
@amoslai5128 Here is the first set of examples https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex001_00_sync_global_and_local_state
@amoslai5128 Here is the first set of examples https://github.com/GIfatahTH/states_rebuilder/tree/dev/examples/ex001_00_sync_global_and_local_state
The content looks clean and organized, great work.
@GIfatahTH I've finished the first stage of Nav2 README, feel free to take a look.
Please be noticed that some indexes can be more consistent (two ex02 & ex15), and is it a good idea for naming the file title to be intention-driven?
such as ex09_on_navigate_signin.dart
to be 09: authentication_navigation_guard.dart
, therefore, new-starters in VSCode or Finder can understand the use case of that file.
Also, I think some examples below can be reordered, for less confusing I use the names from README as the representative:
13: 404 Unknown_Routes -- in front of --> 09: Authentication & Navigation Guards The unknown route is a part of guards, doesn't it?
14: Data Return from a Screen (Basic) -- follow after --> 08: Redirection & Return Information Both are return data?
It's all my opinions, though I might not get the corresponding meaning by that file, any gride or advice is wonderful.
And also, is it necessary to move the assets to another GitHub project and use the links, in order to reduce the package size?
Hi @amoslai5128. Good work :clap:
I am almost ready to push the next update.
Similar to what we did with navigation, I added to example sets; one for sync state mutation and the other for async state mutation. They cover the concept of states_rebuilder from basic to advanced.
I account on you to revise them and update their read me, as you did with navigation examples. I really care to see what you understand of them as a permanent user of states_rebuilder.
Also notice that I add an example to navigation examples. It examples 15 for providing InheritedWidget to pushed routes.
@amoslai5128 Thank you very much. You are doing a good job.
I worked hard in coding and when it comes to the documentation I was very exhausted so I did it lazily.
You are helping me a lot.
Codecov Report
95.65% <ø> (ø)
0.00% <0.00%> (ø)
100.00% <ø> (ø)
100.00% <ø> (ø)
92.45% <ø> (-0.77%)
100.00% <ø> (ø)
95.65% <ø> (+0.04%)
94.50% <ø> (-2.09%)
100.00% <ø> (ø)
100.00% <ø> (ø)
Continue to review full report at Codecov.