Use SizedBox instead of Container as Placeholder widgets. Define Theme of the app as well as a first priority to avoid the headache of changing the theme in future updates. Using ‘if’ instead of Ternary Operator is better to make it better on every build.

3m read timeFrom itnext.io
Post cover image
Table of contents
Flutter — Best Practices — Part 11. Placeholder Widgets2. Define Theme3. Using ‘if’ instead of Ternary Operator4. Use const widgets whenever possible5. Naming Conventions
1 Comment

Sort: