A collection of useful tips, tricks, and best practices for Flutter and Dart development. This repository serves as a knowledge base for developers looking to improve their Flutter development skills. All tips & tricks are shared on my LinkedIn!
# | Title | Description | GitHub | |
---|---|---|---|---|
010 | ... | ... | ... | ... |
009 | Avoid using shrinkWrap |
Learn why using shrinkWrap in ListViews is bad for performance |
GitHub | |
008 | AppLifecycleListener |
Learn how to use AppLifecycleListener to listen to lifecycle changes |
GitHub Overview | |
007 | Use DateUtils from Material |
Learn how to efficiently work with DateTime using DateUtils class from Material package in Flutter. |
GitHub Overview | |
006 | Use if statements with spread operator |
Learn how to use spread operator in Flutter with if statements |
GitHub Overview | |
005 | Compare Lists with listEquals |
Instead of comparing lists with == , compare them with listEquals method. |
GitHub Overview | |
004 | SegmentedButton |
Learn how to efficiently use SegmentedButton for single and multiple selections in Flutter. |
GitHub Overview | |
003 | Using whereType<T>() Method |
Learn how to efficiently filter lists by object type using the whereType<T>() method in Dart. |
GitHub Overview | |
002 | Using FutureBuilder Properly |
Learn how to properly implement FutureBuilder to avoid unnecessary Future calls and improve performance. |
GitHub Overview | |
001 | PageView scroll on Desktop and Web |
Learn how to fix the scroll on PageView with the mouse and trackpad. |
GitHub Overview |
Browse through the different sections to find tips and tricks relevant to your needs. Each tip includes:
- A clear explanation
- Code example
- Best practices
Feel free to contribute to this repository by:
- Adding new tips and tricks
- Improving existing content
- Fixing errors or outdated information
- Adding more examples
Follow me on LinkedIn for more Flutter and Dart tips, tricks, and best practices:
Feel free to reach out if you have any questions or suggestions!
If you find these tips helpful, please consider starring this repository. It helps others discover these resources and motivates me to share more tips!