1.假设你已经熟悉flutter 开发熟悉dart 语言 android 原生开发技能
一、在安卓原生项目添加代码
1.创建示例布局
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="match_parent">
<Button
android:layout_width="wrap_content"
android:id="@+id/btn_openPage"
android:text="点开flutter页面"
android:onClick="openPage"
android:layout_height="wrap_content">
</Button>
<LinearLayout
android:layout_width="match_parent"
android:id="@+id/ll"
android:layout_height="match_parent"
android:orientation="vertical"
>
</LinearLayout>
<