error: The argument type 'Context' can't be assigned to the parameter type 'BuildContext'.

4,155 views
Skip to first unread message

Ma'athir AL-Saidi

unread,
Sep 21, 2021, 10:04:18 AM9/21/21
to Flutter Development (flutter-dev)
Hi 

How I can solve this error : 
showDialog(context: context, builder: (context){
return Dialog();

});

Enviro Apps

unread,
Sep 21, 2021, 10:27:08 AM9/21/21
to Flutter Development (flutter-dev)
There is some conflict with the import 'package:path/path.dart'. In my case, I put an alias in it import 'package:path/path.dart' as Path and it worked.
Reply all
Reply to author
Forward
0 new messages