Opinionated script to initialize a flutter project with the commonly used directories, in addition to some common files and utilities
- Clone this project
- Open the root of your flutter project in the terminal
- Run the following command:
path/to/script/flutter-init.sh
-
You need to add
dioto yourpubspec.yamlbecause it's used in the network folder. If you're using firebase instead of a custom backend, delete thenetwork/common.dartfile. -
You need to add the
lintpackage to yourdev_dependenciesbecause it's used for theanalysis_options.yaml. If you want to write your own custom rules, remove the lineinclude: package:lint/analysis_options.yamlfrom your project'sanalysis_options.yaml