Recover accidentally deleted flutter code files
- Open your android studio.
- Right click on the the ( lib FOLDER ) .
- Click on the local history
- then show history.
- choose which date you want to recover your files.
- click on it and choose revert.
In this way to recover all files of the lib folder, if you want to recover only code of a specific file , then you start with that file not the lib folder
See Example:
