Check out example codes for "flutter web run using vscode". It will help you in understanding the concepts better.

Code Example 1

flutter packages pub global run webdev serve
// or run F5 in VScode

Code Example 2

flutter packages pub global activate webdev

Code Example 3

flutter upgrade

Learn ReactJs, React Native from akashmittal.com