Closed s15-coder closed 3 years ago
It's was strange. I solve it separating and passing just the reference of every function, I mean:
BAD WAY
initCallback: (params){
//code to execute
}
GOOD WAY
-------
initCallback: myInitCallback,
------
void myInitCallback(){
//code to execute
}
Hi @s15-coder could You test if adding
WidgetsFlutterBinding.ensureInitialized();
https://stackoverflow.com/a/68534628/16323705
just here:
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
WidgetsFlutterBinding.ensureInitialized();
return MaterialApp(
title: 'Material App',
home: FutureBuilder(
future: init(),
or changing
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
// init your dependency injection here
runApp(MyApp());}
would do the click?
callback must be static
I am doing a basic app to see how the packages works following documentation. However, i'm getting this error:
This is all my code (I'm using just one for test):
The manifest.xml file:
Know anyone how can i fix it? I really need it plugin