To solve this problem, please go to following link https://pub.dev/packages/flutter_cors and follow steps.
- Install the package in command line
- Add path in your environmental variables (This instruction will be provided after the installation in command prompt)
- Run commands, provided in the documentation
Thanks to Stackoverflow and Rexios to slove this problem quickly.