Baseflow / Baseflow/flutter_cache_manager
I can't pass a File in FileInfo (overriding getFileStream() for testing)
- Dominant language
- Dart
- Stars
- 809
- Forks
- 510
- Avg merge
- 6m
- Merged PRs (30d)
- 1
Description
## 💬 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)
Contributor guide
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100