Skip to content

Commit be63820

Browse files
Merge pull request #4 from JsDaddy/feature/flutter-standarts
feat: add good practices
2 parents 01f30c8 + 507c399 commit be63820

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

flutter/good-practices.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- structure your project by components
2+
- use secure configuration with environment variables - flavors [flutter_flavorizr](https://pub.dev/packages/flutter_flavorizr)
3+
- properly separate dependencies between 'dependencies' and 'dev_dependencies' in pubspec.yaml
4+
- stick to the principles of DRY and KISS
5+
- use unit tests for critical logic
6+
- use [dio](https://pub.dev/packages/dio) for https calls
7+
- use [get](https://pub.dev/packages/get). It combines high-performance state management, intelligent dependency injection, and route management quickly and practically.
8+
- use [bot_toast](https://pub.dev/packages/bot_toast) flutter toast!
9+
- use [shared_preferences](https://pub.dev/packages/shared_preferences) for localstorage
10+
- use [lint](https://pub.dev/packages/lint) for liniting your code
11+
- use [import_sorter](https://pub.dev/packages/import_sorter) for sort your imports in project
12+
- if you need local db in your project use [hive](https://pub.dev/packages/hive)
13+
- use [mockito](https://pub.dev/packages/mockito) for mocking data for your unit tests
14+
- use [json_serializable](https://pub.dev/packages/json_serializable) for generating to/from JSON code for a class

0 commit comments

Comments
 (0)