Closed TGVRock closed 3 months ago
Hello @TGVRock! This is indeed a very good point! I'll try to prepare a fix ASAP! Thanks!
To be clear, the bug here is that our calling for clearing our shared preferences it is clearing also your host app's shared preferences, which it shouldn't. (Our shared preferences must be still cleared upon disconnection)
Thank you for addressing the issue! Best regards.
Hello @TGVRock! This fix has been included in latest beta version. Please check! https://pub.dev/packages/web3modal_flutter/versions/3.1.1-beta02/changelog
Thanks for reporting it!
Describe the bug When I disconnect from the wallet, the data stored in SharedPreference is lost. Can you please consider making it so that the data is not lost even if the session with the wallet is disconnected?
To Reproduce Steps to reproduce the behavior:
Modify the _MyHomePageState class as follows:
@override void initState() { super.initState(); _initializeService();
}); }
void _initializeService() async { @@ -141,6 +159,7 @@ class _MyHomePageState extends State {
color: Web3ModalTheme.colorsOf(context).foreground100,
),
),
Expected behavior The data stored in SharedPreference should not disappear even after the wallet is disconnected.
Desktop (please complete the following information): Unconfirmed
Smartphone (please complete the following information):