I just upgraded my flutter and the warning is gone. I just did "flutter upgrade" in my vscode terminal.