Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the categories screen #79

Open
amwebexpert opened this issue Jul 17, 2022 · 0 comments
Open

Enhance the categories screen #79

amwebexpert opened this issue Jul 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@amwebexpert
Copy link
Owner

amwebexpert commented Jul 17, 2022

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)
    • category language label
  • bonus: leading icon for the language
  • trailing icon to show if any cached content exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant