Tutorial
2 TopicsFlutter sample maybe shows code that's not existing in a new Flutter project using Android Studio
Hi team, in the DevBlogs article "https://devblogs.microsoft.com/surface-duo/get-started-with-flutter-on-surface-duo/"' step 2 containts the following task: This code should go right below the GeneratedPluginRegistrant.registerWith(flutterEngine); line Nevertheless if I copy and paste your example source MainActivity.kt including the method below, everything works but it was for me a little confusing to work with this step's task. The vanilla activity looked like: package io.github.tscholze.flutter_app3 import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }Solved892Views0likes4CommentsMainActivity.kt from the Flutter sample is all red - it works, but is it normal?
Hi team, I just played a little bit around with the Flutter https://devblogs.microsoft.com/surface-duo/get-started-with-flutter-on-surface-duo/. 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.4.5KViews0likes1Comment