schulcloud-flutter
schulcloud-flutter copied to clipboard
Offline files
Closes: #60
Makes files available offline. When clicking on a file, it's downloaded only if necessary. Files that have already been downloaded, have an offline pin next to them:
Clicking on a downloaded file opens it. For now, files don't open automatically after they are downloaded and the pin doesn't appear when the download completed but only when revisiting the screen. Both of these limitations stem from the difficulty of detecting the finishing of a download. This can be easily resolved once the flutter_downloader provides an API with Futures instead of callbacks on other isolates, which I'm working on: https://github.com/fluttercommunity/flutter_downloader/issues/256