Baseflow / Baseflow/flutter_cache_manager

[Feature request] override extension file

オープン
#430 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
809
フォーク
510
平均マージ
6分
マージ済み PR(30日)
1

説明

I need to enforce a specific extension to the cached file whatever the MIME type of the file is.

It would be nice to have an option for that, for example:

`var file = await DefaultCacheManager().getSingleFile(url, {extension: 'my'});`

The end result with be a path with `file:///somewhere/in/the/phone/myfile.my`.

Thank you!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start at the DefaultCacheManager().getSingleFile entry point described in the issue and trace how the cache filename and extension are selected from the MIME type. Add an optional extension setting that controls the returned cached file path, then verify that the resulting path uses the requested extension regardless of MIME type.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter
領域
mobile
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。