skip to Main Content

I am beginner starting to learn flutter, my pc doesn’t have enough resources top run a android emulator (low drive space I guess). So I am using chrome and windows application option in visual code. But it doesn’t show any change. what am I missing?

windows app is supposed to show green background and red header

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I got to work, I had two files- main.dart and my_app.dart. Main was blank.I was running the other file which contained the actual code. I deleted main.dart and renamed my_app file as main.dart. That solved the problem. I am now getting output as expected


  2. the changes aren’t made because your application crashed.
    you should run flutter clean to solve the issue.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search