LF will be replaced by CRLF in pubspec.lock. The file will have its original line endings in your working directory code example
Example: LF will be replaced by CRLF in assets
git config core.autocrlf true
git config core.autocrlf true