Closed mthinh closed 4 months ago
Please could you try web3modal_flutter: ^3.3.0-beta06
instead? Also why are you initializing w3mService
outside of runApp()?
// main.dart
void main() async {
await w3mService.init();
runApp(const MyApp());
}
@quetool not sure if it's a bad practice ? cause I have global bloc which use w3mservice, so I wanna make sure it's initialized before the app is rendered
It's not a bad practice but not ideal in our case, W3MService uses a BuildContext internally (and it will be required in the future) so that might have some troubles. I would init it inside MyApp().
Anyway, have the issue been fixed by updating to latest beta?
Is this fixed, @mthinh ?
@quetool yah i think it's fixed. May I know the reason behind ?
It's not a bad practice but not ideal in our case, W3MService uses a BuildContext internally (and it will be required in the future) so that might have some troubles. I would init it inside MyApp().
Anyway, have the issue been fixed by updating to latest beta?
Nice advice, let me take a look on this
@quetool yah i think it's fixed. May I know the reason behind ?
Probably due to an issue on a thirty party SDK that got fixed and updated recently.
When I started building the app, it works just fine. If I do the hard-reload, my app freezed