adding images
Open
question
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Question**
I am tring to add images into my Hive database, but I am getting an error
'unhandled Exception: type 'String is not a subtype of type uint8list in type cast
**Code sample**
@HiveField(10)
late Uint8List imageFile;
////////
it complains about the generated code in the adapter
..imageFile = fields[10] as Uint8List
Provide a few simple lines of code to show your problem.
```
**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: 3
- Hive version: 2.2.3
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.