DEV Community

Discussion on: Show me your main.dart - Flutter research

Collapse
 
iizmotabar profile image
Motabar Javaid • Edited

Here's mine: main.dart screenshot

Collapse
 
manumrigank profile image
MANUMRIGANK

Which editor is this?
*note newbie here

Collapse
 
iizmotabar profile image
Motabar Javaid

Hey, Sorry for the late reply. @nombrekeff is right. Its a code beautifier ray.so . But the one Keff mentioned also does the same job :)

Thread Thread
 
manumrigank profile image
MANUMRIGANK • Edited

Thanks
Can I somehow get this color and/or Background in VS Code?

Thread Thread
 
iizmotabar profile image
Motabar Javaid

You'll have to find some theme that implement those colors. Lemme know If you find it ;)

Thread Thread
 
nombrekeff profile image
Keff

I think there's a theme called "nord" that is quite similar, you could check it out and see if you like it!

Collapse
 
nombrekeff profile image
Keff

I think it's not an editor, most likely something like carbon, it converts code into imagesx like the one shown above! A rather neat site

Thread Thread
 
manumrigank profile image
MANUMRIGANK

Oh!
Thanks

Collapse
 
nombrekeff profile image
Keff

Thanks for the addition!

I found a really usefull package from this, did not know of the existance of device_preview, really usefull package!

Collapse
 
iizmotabar profile image
Motabar Javaid

Happy to help! :)

Collapse
 
nombrekeff profile image
Keff • Edited

I will also add riverpod to my list of reactive options. Never heard of it, looks good!
Do you have experience with it?

Collapse
 
iizmotabar profile image
Motabar Javaid

Yes, I have been using Riverpod for quite some time now. Riverpod makes my life so much easier. Previously I used Provider for most of my projects but certain limitations made me switch and Riverpod was the No Brainer for me since its very similar to Provider and is superior . I would highly recommend you to give it a try if you're looking for a state management solution.

Thread Thread
 
nombrekeff profile image
Keff

Cool I will check it out for sure! I'm sticking with provider for now for most projects and have not found many limitations yet. Can I ask you which were the limitations you encountered? And what were the reasons you chose Riverpod over other solutions, like let's say, redux or mobx?

I'm also doing research on these topics, so it would be really interesting to hear about that too!

Thread Thread
 
iizmotabar profile image
Motabar Javaid

The first and far most important thing about Riverpod is that it helps in keeping the business logic and the Widgets separate making the Widget Tree clean and easier to read.
The second thing is that Provider is not compile-time safe.For instance, Provider will only prompt you with an error at runtime If you try to use a Provider that does not even exist.
Another one is the if there are multiple providers of same type within the widget tree, Using Provider, you can only listen to the one which is closer to the Consumer Widget. With Riverpod, you can consume any provider anytime and even anywhere since the Providers are globally defined.

And the list goes on.I hope it helped! If you need more help with it, let me know!

Thread Thread
 
nombrekeff profile image
Keff

Makes sense, thanks for the info. I might get in touch once I start researching more about it!

Thread Thread
 
iizmotabar profile image
Motabar Javaid

I'm here if you need help. Just let me know