Load archive from flutter app
In this session, I finished the basic button UI to trigger loading the archive. The first thing I did was to setup a MVVM structure for the app. I chose this as the flutter tutorial uses it for http requests, and I figured that file io posed a similar problem. I first tried to use async/await to prevent the UI from freezing while it loads the quite large zip file; I spent quite a while messing with Future, async, and await trying to get it to work. After my attempts failed, I turned to research, and learned that I actually needed to use compute to run the file processing in a background thread. this works quite well, as is demonstrated in the attached video. I also uploaded the Google Sans and Robot fonts to the project, selecting Google Sans as the default font. I want the project to look a bit like Google Chat in the end, so Google fonts are necessary
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.