DEV Community

Building Twitter layout with Flutter

Leonardo Teteo on January 13, 2019

Flutter is the new shiny framework for mobile development by Google, it was first released last year and this month it reached the 1.0 version. I'v...
Collapse
 
gildaswise profile image
Gildásio Filho

Hey, this was an amazing write up and it's nice to see Flutter getting used more in Brazil, but you should take note to the fact that splitting widgets to methods is a performance antipattern. I will also update mine fixing this problem (and also adding BLoCs!) but yeah, we shouldn't really use manual widgets outside of the build method.

Collapse
 
leoat12 profile image
Leonardo Teteo • Edited

Great to know, but I was just following the documentation on this:

To minimize the visual confusion of deeply nested layout code, place some of the implementation in variables and functions.
Source

It is probably because it is a starter level tutorial and they didn't want to complicate things, maybe it is written somewhere in the more advanced documentation, but I will keep that in mind.

Collapse
 
gildaswise profile image
Gildásio Filho

Sadly the documentation is very basic (for now, I hope) and doesn't cover most of the best practices, so most things are still being discovered by the community.

Thread Thread
 
leoat12 profile image
Leonardo Teteo

Well, we can say that it is the very best way to learn something, when it is still new and there are many details to discover. :)

Collapse
 
kris profile image
kris

Thanks for this tutorial. Building a clone app layout helps a lot in learning about the programming ecosystem. Learned a lot about flutter UI layouts and design while going through this article. Stepwise guidance with code and screenshots are easy to follow. These type of social app templates help a lot to develop own. There are a lot of flutter templates that support every functionality available in social apps. These templates help to learn as well as develop their own app with powerful features.

Collapse
 
alicesos profile image
Alice-sos

Hi,

I hope to get your consent to translate and shared with Chinese developers, I will indicate the source and author.

Collapse
 
leoat12 profile image
Leonardo Teteo

Sure, you can translate it. Share the link once you are finished although I will not understand anything. hahaha

Collapse
 
alicesos profile image
Alice-sos

hahaha, ok,Thanks !