'Hive - Fixed length list error in Flutter

I am having an issue where when I fetch a list from hive and when I try to add from the list it shows me a fixed list length error. Can somebody help me with it?

List<String> test;

@override
void initState(){
super.initState();
 test = box.get('test', defaultValue: <String>[]);
}

Edit: Turns out this is an active issue opened recently with all the details - https://github.com/hivedb/hive/issues/602 I guess its a dependency problem as of now.



Solution 1:[1]

This was due to an older version error in hive, this has been fixed on pub.dev

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Arnav