简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM