So I tried to clone a repo on github then i ran into a problem, first of the code was all underlined with red squiggly lines, then i tried updating flutter to the latest version but still to no avail, then i tried runing flutter pub get in the terminal but it was bringing out this error
"PS C:\Users\user\Desktop\JxCodie\User> flutter pub get Resolving dependencies... (15.0s) The current Dart SDK version is 3.1.0.
Because tag_along depends on dependencies any which doesn't support null safety, version solving failed.
The lower bound of "sdk: '>=2.0.0 <3.0.0'" must be 2.12.0 or higher to enable null safety. For details, see https://dart.dev/null-safety"