Baseflow / Baseflow/flutter_cache_manager
[2.0.0] Rename Config to CacheManagerConfig
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
## 🏗 Enhancement Proposal
Since version 2.0.0 the flutter_cache_manager exports a class called `Config`. This name is very general and causes problems in all my projects because I have a general Config class.
I think the name `Config` is a very bad choice, as it is way to general. So I propose renaming it to `CacheManagerConfig` to prevent conflicts like these to occur.
I know that it is possible to work around this issue by using `import a as b`, but I think this should be avoided to make the development process more easy.
Also the name `CacheManagerConfig` would be much more intuitive to use, as you usually wouldn't expect to have a class called `Config`, but rather somthing like `CacheManager***` while writing your code with intellisense.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando la dichiarazione esportata Config e ogni riferimento a essa in flutter_cache_manager. Esamina i test esistenti del package e i punti di accesso della sua API pubblica prima di decidere l'ambito della ridenominazione; il lavoro è completato quando il nome richiesto CacheManagerConfig viene usato in modo coerente e i test interessati hanno esito positivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- dart, flutter
- Ambito
- mobile
- Tipo di issue
- Refactoring
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100