the flutter sdk is not upto date code example Example 1: update flutter flutter upgrade Example 2: how to check flutter version flutter --version