Clone the repo
git clone https://github.com/Abhimanyu-dev/MailClient.gitChange into the directory
cd MailClientInstall dependencies
flutter pub getIf you are using vscode open the directory in vscode and select the device in the bottom right corner and press F5 the app should run in the chosen device(Preferably in an android emulator or actual android device using USB tethering).
The app uses flutter hive package to store the last logged in user and the mails from that user. Hive storage only stores the user's username and password along with mails that have been loaded. The stored mails only include the mail addresss of the sender, the subject of the mail and the sequence id of the mail to fetch the mail from the imap server when needed. In order to prevent making a large number of network calls the app loads mails as the user scrolls and then stores them in local storage.
The user can view mails present in their inbox, send mails and keep their credentials stored in the phone's storage.





