Baseflow / Baseflow/flutter_cache_manager

I can't pass a File in FileInfo (overriding getFileStream() for testing)

Offen
#364 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
809
Forks
510
Ø Merge
6 Min.
Gemergte PRs (30 T.)
1

Beschreibung

## 💬 Questions and Help

I want to do widget testing on a CircleAvatar, but to mock the image I need to pass an asset file. But, as I pass File('path/to/mock/img'), it shows me the error:

`Abstract classes can't be instantiated.
Try creating an instance of a concrete subtype.`

And, `file 6.1.2` classifies file as abstract. Then, how can I pass file in getFileStream()?

Is there any work around for this? If so, do suggest.

@renefloor

For questions or help we recommend checking:

- The [Flutter tag in Stack Overflow](https://stackoverflow.com/questions/tagged/flutter)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue does not name any source file, test, or entry point to inspect. First clarify whether the expected outcome is a code change, documentation update, or usage guidance; no acceptance criterion for what would count as done is provided.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
dart, flutter
Bereich
mobile-dev, testing
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
15/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.