Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide generated dart files in Android Studio

Is it possible to hide generated dart files in Android Studio especially *.g.dart files?

like image 386
Mutlu Simsek Avatar asked Mar 21 '20 12:03

Mutlu Simsek


2 Answers

In Settings panel, open Editor section, and select File Types. Now look for Ignore files and folders field at the bottom. Just include *.g.dart there and you're good to go!

like image 124
IsraelSS Avatar answered Nov 13 '22 00:11

IsraelSS


In Project panel, under Options there is a File Nesting Option. I added .chopper.dart; .freezed.dart; .g.dart to .dart parent. This will group related files under the main file.

like image 17
ogantopkaya Avatar answered Nov 12 '22 23:11

ogantopkaya