flutter-styleguide
flutter-styleguide copied to clipboard
Flutter Style Guide. Suggested styles and best practices for teams using Flutter.
When you scaffold a project with 'flutter create', you get a lib folder where your widgets are created. - Should there be a recommended structure under lib? - If so,...
When you don't want to show a "nothing", render a SizedBox(). For instance, if (snapshot.connectionState == ConnectionState.none) { return const SizedBox(); } else if (snapshot.hasData) { return someOtherWidgets; }
Files with custom widgets should contain no more than one public class. The file name should be the same as the public class it contains. What about libraries that contain...
When providing a closure that accepts parameters for which you don't need to provide a value, it is recommended that you use the underscore/underbar character (_). For example, when creating...
When I try to use the Gilroy Font Family, it doesn't appear the same as it does on the Figma screens. However, fonts from Google Fonts display correctly. My question...