AOSSIE-Org / AOSSIE-Org/OpenPeerChat-flutter

Implement File Upload Progress Indicator

未關閉
#24 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Dart
星號
31
分支
53
PR 合併指標
30 天內沒有已合併 PR

描述

Currently, large file transfers occur without clear progress feedback. A progress indicator would greatly improve user experience by showing the percentage or status of an ongoing upload or download event.

Goals:
• Track file transfer progress in real time.
• Display a clear progress bar (circular or linear) to both the sender and receiver.
• Provide a user-friendly representation of how long a file transfer will take.

Possible Approach:
• During file upload, track the number of bytes transferred vs. total bytes.
• Utilize flutter_nearby_connections and Streams and Global cache.
• Update the UI with the calculated percentage (bytes transferred / total bytes).
• Create a callback or event handler that notifies the UI for each chunk of data transferred.
• Handle edge cases like transfer failures or cancellations and gracefully stop the progress bar.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。