Flutter Go Router

  Рет қаралды 3,730

1ManStartup

1ManStartup

Күн бұрын

Пікірлер: 15
@PankajNikam
@PankajNikam 9 ай бұрын
I Prefer using constants on the page itself to use for navigation. I personally use the PageName.Route and use it everywhere. Each page knows what the name of itself is. Thanks for the video :) It has been helpful. I loved the part where you keep the go_router inside its own file and keep things clean in the main screen.
@1ManStartup
@1ManStartup 9 ай бұрын
Are the constants then replacing the enum? so you'd have for example const game = "game" then use game for the name & "/$game" for the path? Seems like a good way to do it
@PankajNikam
@PankajNikam 9 ай бұрын
@@1ManStartup No, they are not enum. They are strings and I call it like Navigator.of(context).pushNamed(PageToNavigate.Route);
@1ManStartup
@1ManStartup 9 ай бұрын
@@PankajNikam oh got it so then you're not using go router at all?
@PankajNikam
@PankajNikam 9 ай бұрын
@@1ManStartup Whether you use it or not, I prefer this way because the page itself should know what its own name is. If I have to change the name, I know where to go instead of hunting a gigantic constants file (this can be solved though through simple refactoring)... It is just my way of coding. There may be other good ways though.
@huzeyfetas
@huzeyfetas 8 ай бұрын
the store path and the name in the screen file can conflict. for example you have 30 screens in your application. for example you have a forgot password screen and a password change screen. on the forgot password screen you can use name = "resetPassword" while on the password change screen someone else can use name = "resetPassoword". enum doesn't make you visit a page, but you can use advanced enum usage with parameters. not just a name. use enums in constructive ways... ( funny part in this message, I am also keep the path and name value in the page :) but I'm not happy with it. as I said you can accidentally use the same path or name value on another page. it can be overlooked... I recommend advanced enum usage )
@pravinprince3221
@pravinprince3221 3 ай бұрын
Thank you for the wonderful video sir
@hanibachi5228
@hanibachi5228 2 ай бұрын
I watched this by accident and et was so good and simple and comprehensive... Later i needed to revisit gorouter and all i kept finding was shitty indian tutorials with very lackluster explanations. Thank god i remember it was in your channel
@1ManStartup
@1ManStartup 2 ай бұрын
A good accident then, glad you found it helpful!
@leleemagnu6831
@leleemagnu6831 9 ай бұрын
Great video! Concise, and to the point!. Thank you!
@1ManStartup
@1ManStartup 9 ай бұрын
Glad you enjoyed it!
@mohammedarbazshaikh4883
@mohammedarbazshaikh4883 9 ай бұрын
What extensions do you use for suggestions (which show the expected)?
@1ManStartup
@1ManStartup 9 ай бұрын
Not sure exactly what you mean but this video shows my whole VSCode setup kzbin.info/www/bejne/qISsZGCwra-NjMU
Navigate Between Flame Game & Flutter App Using Callbacks
11:33
1ManStartup
Рет қаралды 1,2 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Build Game Levels In Flutter With Flame
12:25
1ManStartup
Рет қаралды 1,2 М.
Move Objects With Gestures & Keyboard - Flutter Flame Game
8:23
1ManStartup
Рет қаралды 2,2 М.
Flutter Review in One Hour
58:04
Moustafa Ibrahim
Рет қаралды 1,3 М.
Spinning Wheel Of Fortune In Flutter
14:13
1ManStartup
Рет қаралды 3,1 М.
Build 5 Apps in 5 Minutes with Flutter… But should you?
8:53
Deep dive into Flutter deep linking
13:22
Flutter
Рет қаралды 42 М.
Flutter GoRouter Tutorial - Easy Navigation Tutorial using GoRouter
17:37
Top 12 Flutter Tips & Tricks
9:32
Fireship
Рет қаралды 272 М.
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН