Skip to content

Commit 5108a91

Browse files
committed
update KotlinApp
1 parent 0d1eb4a commit 5108a91

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

KotlinApp/.idea/gradle.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KotlinApp/app/src/main/java/com/example/kotlinapp/MainActivity.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class MainActivity : AppCompatActivity() {
1010
super.onCreate(savedInstanceState)
1111
setContentView(R.layout.activity_main)
1212

13-
val flutterModuleButton = findViewById<Button>(R.id.flutter_module_button)
14-
flutterModuleButton.setOnClickListener {
13+
val myButton = findViewById<Button>(R.id.myButton)
14+
myButton.setOnClickListener {
1515
startActivity(
1616
FlutterActivity
1717
.withNewEngine()

KotlinApp/app/src/main/res/layout/activity_main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
tools:context=".MainActivity">
88

99
<Button
10-
android:id="@+id/flutter_module_button"
10+
android:id="@+id/myButton"
1111
android:layout_width="wrap_content"
1212
android:layout_height="wrap_content"
1313
android:text="OPEN FLUTTER MODULE"

0 commit comments

Comments
 (0)