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
dio
to yourpubspec.yaml
because it's used in the network folder. If you're using firebase instead of a custom backend, delete thenetwork/common.dart
file. -
You need to add the
lint
package to yourdev_dependencies
because it's used for theanalysis_options.yaml
. If you want to write your own custom rules, remove the lineinclude: package:lint/analysis_options.yaml
from your project'sanalysis_options.yaml