i think i need redesign currently I have mixed alot mixing sharedprefs, drift db, onboarding and vault management.
Now, I am going to fix and rewrite my logic now is to remove shared prefs and have a app database that will be private if app deletes it will be deleted. The flow will be when user opens app it will load data from this main appdatabase all vaults and its data this database will store only app data like logs, config, vault data and default vault
if no vault opened user can open existing or create new that will register it into appdatabase than when the vault opens will create a separate vault database that will have all data related to vault only that can be synced.
as i am following MVVM clean architecture:
We will have features as follows
for now simple comman - AppDatabase
- Vault, - this is a separate feature
- Notes, - it is separate thing