I find two option to save data as local data in phone in flutter. First one by use hive and second one by use path_provider. But I want to know what is different between those two type in save data local and what is best one to save data from api to make my app fast load data. Also which one more fast?
CodePudding user response:
Hive is a local database while path_provider is only accessing your units memory.
The local database need a place to be stored and thats where path_provider is needed to access a place to save the database.
Parh_provider is more like explorer on a computer while hive is the file that you want to store on your phone/tablet.
Hope it helps!