MainActivity.kt from the Flutter sample is all red - it works, but is it normal?

%3CLINGO-SUB%20id%3D%22lingo-sub-2262088%22%20slang%3D%22en-US%22%3EMainActivity.kt%20from%20the%20Flutter%20sample%20is%20all%20red%20-%20it%20works%2C%20but%20is%20it%20normal%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262088%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20team%2C%3C%2FP%3E%3CP%3EI%20just%20played%20a%20little%20bit%20around%20with%20the%20Flutter%20%3CA%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fsurface-duo%2Fget-started-with-flutter-on-surface-duo%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%22Getting%20started%22%20from%20the%20Flutter%20Dev%20Blog%20article%3C%2FA%3E.%3C%2FP%3E%3CP%3EDuring%20the%20tutorial%20I%20noticed%20that%20after%20I%20copy%20pasted%20the%20Kotlin%20source%2C%20mostly%20everything%20went%20red%20aka%20in%20an%20error%20state.%20Please%20see%20attached%20screenshot.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20source%20was%20still%20buildable%20and%20worked%20as%20expected%20but%20it's%20a%20little%20bit%20of%20a%20shock%20for%20a%20beginner%20if%20everything%20is%20red.%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22vs.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271233i0442A60BDC441658%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22vs.PNG%22%20alt%3D%22vs.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2262088%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAndroid%20Studio%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFlutter%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETutorial%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent Contributor

Hi team,

I just played a little bit around with the Flutter "Getting started" from the Flutter Dev Blog article.

During the tutorial I noticed that after I copy pasted the Kotlin source, mostly everything went red aka in an error state. Please see attached screenshot.

 

The source was still buildable and worked as expected but it's a little bit of a shock for a beginner if everything is red.

vs.PNG

 

0 Replies