You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once this pull request is merged, enhance the categories screen:
enhance the TextService by adding a Future<Map<ApiCategory, File>> getCategoryCacheFilesMap() async
NOTE: for performance purpose, we could have null as File value, so we know the file does not exists instead of leaving the consumer call file.existsSync on each file later...
could also be implemented Future<Map<ApiCategory, CacheModel>> getCategoryCacheFilesMap() async to avoid implementation leak!
see Directory('my-dir').listSync to list all files of a directory
add an File param to the CategoryWidget
add detail to the CategoryWidget:
timestamp of the last cached content (if the file exists)
Once this pull request is merged, enhance the categories screen:
TextService
by adding aFuture<Map<ApiCategory, File>> getCategoryCacheFilesMap() async
null
asFile
value, so we know the file does not exists instead of leaving the consumer callfile.existsSync
on each file later...Future<Map<ApiCategory, CacheModel>> getCategoryCacheFilesMap() async
to avoid implementation leak!Directory('my-dir').listSync
to list all files of a directoryFile
param to theCategoryWidget
CategoryWidget
:The text was updated successfully, but these errors were encountered: