Error: No named parameter with the name 'nullOk' Scaffold.of(context, nullOk: true)

248

My guess is that you're using the getflutter plugin with a recent version of Flutter, probably a 2.0.X and/or in a project where the null-safety is activated.

Since the getflutter plugin has been discontinued, I strongly advise you to replace this plugin in your app with the new version, getwidget.

Otherwise, you'll have to downgrade the Flutter version you are using, and probably disable the null safety. I'd need more informations to confirm this hypothesis though.

Share:
248
Dev94
Author by

Dev94

Updated on December 28, 2022

Comments

  • Dev94
    Dev94 over 1 year

    working on flutter mobile application. I am having compilation issue in my code. Here is the screenshot of error it shows. Image

    Can anyone help me please. Thanks in advance.