Learn how to add fixed spacing with the Gap widget in Flutter. Gap can be used as a substitute for SizedBox to easily add gaps inside Flex widgets. It provides a shorter syntax and works along the main axis of the parent widget. However, using Gap adds an extra dependency to your project, so it is optional. If you prefer, you

2m read timeFrom codewithandrea.com
Post cover image
Table of contents
When to Choose Gap vs SizedBoxConstant Gap Widgets with SizedBox

Sort: