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

[Task] Lihat Materi - Make preview page with pdf #13

Closed
1 task
atnanahidiw opened this issue Sep 24, 2023 · 3 comments · Fixed by #37
Closed
1 task

[Task] Lihat Materi - Make preview page with pdf #13

atnanahidiw opened this issue Sep 24, 2023 · 3 comments · Fixed by #37
Assignees
Labels

Comments

@atnanahidiw
Copy link
Collaborator

atnanahidiw commented Sep 24, 2023

Description

Make display pdf page
image

code in flutterflow as a reference
https://github.com/ia-toki/bebras-pandai/blob/flutterflow/lib/pages/preview/view_pembahasan_soal/view_pembahasan_soal_widget.dart

Additional info

if you check the firestore DB (https://console.firebase.google.com/u/0/project/toki-bebras-proto/firestore/data/~2Flearning_material), you will see the data is structured like this

{
    "title": "Buku Bebras 2016 - Penegak",
    "description": "Buku Bebras 2016 untuk kategori Penegak",
    "challenge_group": "penegak",
    "url": null,
    "staging_url": "https://firebasestorage.googleapis.com/v0/b/toki-bebras-proto.appspot.com/o/buku_bebras%2FBebras-Challenge-2016_Penegak.pdf",
    "source_urls": [],
    "file_format": "pdf",
    "is_printable": true
}

the explanation is:

  • title: title to be displayed
  • description: description as more info, can be displayed as subheader or tooltip
  • challenge_group: group for tab filter
  • url: firebase storage URL in production
  • staging_url: firebase storage URL in staging
  • source_urls: public URLs where we can get the file for metadata (not for app)
  • file_format: file format
  • is_printable: flag whether the item is printable (not important for now)

some key points are:

  • url & staging_url must be inside firebase storage, so we can have a URL that within our system
  • we use different fields, url & staging_url, so we can edit easily & not make breaks after the app is released in the future

Delivery:

  • Fully functional page to view PDF materials offline
@atnanahidiw
Copy link
Collaborator Author

atnanahidiw commented Sep 24, 2023

@azophy please let me know if you have any questions 🙇

@azophy
Copy link
Collaborator

azophy commented Sep 27, 2023

suggestion for deliveries of this task. cc @atnanahidiw

  • repository connection to firebase/firestore
  • listing for materi
  • download materi
  • preview materi

@atnanahidiw atnanahidiw moved this from Todo to In Progress in Bebras Pandai Project Management Sep 27, 2023
@atnanahidiw atnanahidiw changed the title [Task] Full functionality pdfviewer in Lihat Materi page [Task] Lihat Materi - Make preview page with pdf bundled in apk Oct 6, 2023
@atnanahidiw
Copy link
Collaborator Author

latest discussion:
since now we only have 9 pdf files, create the presentation page with pdf file included in the application is enough

@atnanahidiw atnanahidiw moved this from In Progress to Todo in Bebras Pandai Project Management Oct 15, 2023
@atnanahidiw atnanahidiw changed the title [Task] Lihat Materi - Make preview page with pdf bundled in apk [Task] Lihat Materi - Make preview page with pdf Oct 17, 2023
@atnanahidiw atnanahidiw moved this from Todo to In Progress in Bebras Pandai Project Management Oct 18, 2023
@gmochid gmochid added this to the Milestone Oktober 2023 milestone Oct 19, 2023
@atnanahidiw atnanahidiw added the P0 label Oct 19, 2023
@atnanahidiw atnanahidiw linked a pull request Oct 23, 2023 that will close this issue
2 tasks
@atnanahidiw atnanahidiw moved this from In Progress to Code Review in Bebras Pandai Project Management Oct 23, 2023
@github-project-automation github-project-automation bot moved this from Code Review to Done in Bebras Pandai Project Management Oct 24, 2023
@DandiIndraWijaya DandiIndraWijaya mentioned this issue Nov 6, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging a pull request may close this issue.

5 participants