<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Felipe Sales</title>
    <description>The latest articles on DEV Community by Felipe Sales (@felipecastrosales).</description>
    <link>https://dev.to/felipecastrosales</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F678360%2F13587e28-6474-4a5a-999b-db6a353b9f82.jpeg</url>
      <title>DEV Community: Felipe Sales</title>
      <link>https://dev.to/felipecastrosales</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/felipecastrosales"/>
    <language>en</language>
    <item>
      <title>The 10 Best Lints to Use in Your Flutter Project</title>
      <dc:creator>Felipe Sales</dc:creator>
      <pubDate>Mon, 02 Jun 2025 14:26:45 +0000</pubDate>
      <link>https://dev.to/felipecastrosales/the-10-best-lints-to-use-in-your-flutter-project-4glc</link>
      <guid>https://dev.to/felipecastrosales/the-10-best-lints-to-use-in-your-flutter-project-4glc</guid>
      <description>&lt;p&gt;&lt;code&gt;prefer_const_declarations&lt;/code&gt;&lt;br&gt;
Forces the use of const whenever possible.&lt;br&gt;
 🔧 Example: const myValue = 10;&lt;br&gt;
 💡 Improves performance, especially during widget build.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;avoid_unnecessary_containers&lt;/code&gt;&lt;br&gt;
Avoids using Container when it's not doing anything.&lt;br&gt;
 🔧 Replace it with Padding, SizedBox, DecoratedBox, etc.&lt;br&gt;
 💡 Reduces widget tree complexity.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;avoid_print&lt;/code&gt;&lt;br&gt;
Avoid using print() in production code.&lt;br&gt;
 🔧 Use Logger, debugPrint, or proper logging tools.&lt;br&gt;
 💡 Makes log control and maintenance easier.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;prefer_single_quotes&lt;/code&gt;&lt;br&gt;
Prefers single quotes (') over double quotes (").&lt;br&gt;
 🔧 Promotes code consistency.&lt;br&gt;
 💡 Follows the standard of most Dart/Flutter packages.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;always_declare_return_types&lt;/code&gt;&lt;br&gt;
Enforces declaring return types for functions.&lt;br&gt;
 🔧 Example: String getTitle() { ... }&lt;br&gt;
 💡 Improves readability and prevents potential errors.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;unnecessary_const&lt;/code&gt;&lt;br&gt;
Avoids using const where it's redundant (like inside another const).&lt;br&gt;
 🔧 Dart infers it automatically in many cases.&lt;br&gt;
 💡 Keeps your code cleaner and more concise.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;no_literal_bool_comparisons&lt;/code&gt;&lt;br&gt;
Avoids comparisons like if (isValid == true) or == false.&lt;br&gt;
 🔧 Instead, use if (isValid) or if (!isValid).&lt;br&gt;
 💡 Makes your code more direct and idiomatic.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;use_key_in_widget_constructors&lt;/code&gt;&lt;br&gt;
Ensures you add a Key to your custom widgets.&lt;br&gt;
 🔧 Helps control widget rebuilds in the widget tree.&lt;br&gt;
 💡 Prevents subtle bugs and improves performance.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;unnecessary_lambdas&lt;/code&gt;&lt;br&gt;
Avoids using lambdas when you can pass the function directly.&lt;br&gt;
 🔧 Instead of onPressed: () =&amp;gt; doSomething(), use onPressed: doSomething.&lt;br&gt;
 💡 Results in cleaner and more readable code.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;unnecessary_getters_setters&lt;/code&gt;&lt;br&gt;
Avoids get and set methods that do nothing but return or assign a variable.&lt;br&gt;
 🔧 Access the field directly when there's no added logic.&lt;br&gt;
 💡 Simplifies code and avoids unnecessary abstractions.&lt;/p&gt;




&lt;p&gt;By enabling these lints, you're not just following best practices - you're also making your Flutter codebase more robust, scalable, and professional. Happy coding! 🚀&lt;/p&gt;

&lt;p&gt;If this helped you, consider giving it a star or a clap to support the content. It really helps and motivates me to bring more tips like this! 🌟👏&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>dart</category>
      <category>programming</category>
      <category>cleancode</category>
    </item>
  </channel>
</rss>
