isar / isar/hive

Can't save List<int>type data

Open
#477 4 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

**Question**
I'd like to save list type data about timestamp
first I create a instance of hive object and add in my box
after I tried to read my box
but is empty data

**Code sample**
## Open box
```
_timeBox = await Hive.openBox('time');
```

## Model
```dart
@HiveType(typeId: 4)
class TimeData extends HiveObject{
@HiveField(0)
List timestamp;
}
```

## Insert

```
TimeData timeData = TimeData ()
..timestamp = _timestamp; // List
```

## Read
```
print(tLog.traindata.timestamp);
```

## Log
```
I/flutter (11234): []
```

**Version**
- Platform: Android
- Flutter version: 1.23.0-18.1.pre
- Hive version: master channel

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.