Explore tweets tagged as #SizedBox
๐ Flutter Tip of the Day Did you know? Instead of using Container for spacing, you can use SizedBox itโs lighter, faster, and more efficient! โก โ Not optimal Container(height: 20); โ
Better SizedBox(height: 20); This small change improves widget performance and makes
5
3
52
Some packages on https://t.co/vhnks1PIZs just amazes me, just like Gap. It is literally just a SizedBox, yet, almost 100k weekly downloads. Cโmon devs, are we that lazy? https://t.co/wpZlz0qVEx
12
1
79
๐Core Flutter Widgets StatelessWidget & StatefulWidget Know when to use each. Scaffold, AppBar, Column, Row, Stack โ The building blocks of UI. Container vs SizedBox vs Padding โ For layout and spacing. ListView & GridView โ Handling lists efficiently. Custom Widgets โ
3
3
35
๐Flutter tips Prefer SizedBox over Container for spacing ๐ When you only need empty space, SizedBox(height: 20) is more efficient than Container. Stay focused.
5
7
102
๐ฏ Flutter Quick Wins ๐น Use const everywhere you can โ Flutter loves it. ๐น Replace empty Containers with SizedBox.shrink() โ Zero size, zero fuss. ๐น Leverage Theme.of(context) โ Keep styles consistent app-wide. ๐น Break long build() methods โ Smaller widgets = happier dev
7
10
85
๐ Flutter Tip of the Day Stop wrapping everything in Container Instead, use lighter widgets like Padding, SizedBox, or DecoratedBox. Why? โ
Better performance โ
Cleaner widget tree โ
Easier to maintain โ Overkill Container( padding: EdgeInsets.all(16), child:
8
9
97
#flutter tip of the day: don't space your widgets using SizedBox, use flutter gutter instead! https://t.co/bAIBhkx9Tz
#buildinpublic
14
22
165
Did you know? Since Flutter 3.27, you can pass a spacing argument to your Row and Column widgets. โ
This means you no longer need a SizedBox to add fixed spacing between each child. ๐
5
26
210
#FlutterTip ๐ก Facing invalid values in your widget's factory constructor? You can choose to throw an error (suggested) or return SizedBox.shrink() (not recommended to silence the error). Here's how you can test in case you decide to silence the error and eturn a shrinked box:
1
1
8
Flutter Todayyy [Quiz App] ๐ฅน๐ฅณ๐ I am excited our Quiz app is DONE! ๐Built the results screen (designers, donโt come for me ๐ญ). Made use of Rows, Columns, Expanded, SizedBox & added a restart button so users-me ๐ can start the quiz over. Section 2 of my Flutter courseโ
๐
28
13
221
I have recently doing Swift Ui and liked how we can give design properties. In Flutter i thought of making extension on Column instead of using SizedBox for spacing as we can do same for Row. No need to write sized box a lot of times. What are your thoughts? #flutter
1
0
2
Flutterใงใฒใผใ ใไฝใฃใฆใฟใใใฎ็ถใใ ใใผใฟใฎSQLiteๅใ็ตใใฃใใฎใงUIใซๆใๅ
ฅใๅงใใใ ใชใซใใ้้ใฃใฆใใใใชๆฐใใใคใคใSizedBoxใงๅ้
็ฎใฎในใใผในใ่ชฟ็ฏ_(:3ใโ )_
0
0
3
๐ง Flutter Quick Win Use const for SizedBox and spacing too. โ Unoptimized SizedBox(height: 20); โ
Optimized const SizedBox(height: 20); Why: Less work for Flutterโs rebuild engine = smoother animations. Consistency beats talent. Keep coding ๐ช
2
9
63
Guess the output @FlutterDev ๐ It's FALSE. I don't get it. Replace the SizedBox with any Widget, you get the same result. But changing it to a Foo class, the result is TRUE. Can any explain, please?
14
4
30