We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3831f3e commit a6d44d8Copy full SHA for a6d44d8
README.md
@@ -232,6 +232,27 @@ final svg = SvgPicture.asset(Assets.images.icons.paint);
232
final json = await rootBundle.loadString(Assets.json.fruits);
233
```
234
235
+[FlutterGen] also support generating other style of `Assets` class:
236
+
237
+```yaml
238
+# pubspec.yaml
239
+flutter_gen:
240
241
+ assets:
242
+ # Assets.imagesChip
243
+ style: camel-case
244
245
+ # Assets.images_chip
246
+ # style: snake-case
247
248
+ # Assets.images.chip (default style)
249
+ # style: dot-delimiter
250
251
+flutter:
252
253
+ - assets/images/chip.png
254
+```
255
256
The root directory will be omitted if it is either **`assets`** or **`asset`**.
257
258
0 commit comments