You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,24 @@ You can do that by executing `flutter pub run flutter_native_splash:create`.
85
85
Although you can setup a bunch of features in this library, it doesn't provide a way to display animations.
86
86
If you need a more personalized splash screen, you can edit the native code or just remove this library.
87
87
88
+
### Code generation
89
+
90
+
Code generation is created using `build_runner` package.\
91
+
To configure this package edit the `build.yaml`\
92
+
To add new files to watch for code generation add the following lines:
93
+
```
94
+
targets:
95
+
$default:
96
+
builders:
97
+
# Previous configured builders
98
+
...
99
+
builder_package_name:
100
+
generate_for:
101
+
# Example glob for only the Dart files under `lib/models`
102
+
- lib/models/*.dart
103
+
```
104
+
To create generated code run `clean_up.sh` under [scripts] folder or the following command: `flutter pub run build_runner build --delete-conflicting-outputs`
105
+
88
106
### Pre Push config
89
107
90
108
In order to setup pre-push hook you need to go to the root of the project and run `git config core.hooksPath .github/hooks`
@@ -102,3 +120,4 @@ In order to setup pre-push hook you need to go to the root of the project and ru
0 commit comments