我想要一个使用 Deep Link 导航到特定 Flutter 页面的示例
I want a sample that uses Deep Link to navigate to a specific Flutter page
我想从网页转到 Flutter 应用程序中的特定页面。
我不知道怎么做,所以我想要完整的源代码。
重写AndroidManifest.xml。
我从 Chrome 访问了 myapp:// mypage,但我无法打开该应用程序。
<meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="mypage" android:host="myapp" />
</intent-filter>
我想从网页link转到Flutter的PageA。
- -流动 - -
点击网页上的link
打开应用程序
显示使用 Flutter 制作的应用的 ListPage
我想从网页转到 Flutter 应用程序中的特定页面。 我不知道怎么做,所以我想要完整的源代码。
重写AndroidManifest.xml。 我从 Chrome 访问了 myapp:// mypage,但我无法打开该应用程序。
<meta-data android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="mypage" android:host="myapp" />
</intent-filter>
我想从网页link转到Flutter的PageA。 - -流动 - - 点击网页上的link 打开应用程序 显示使用 Flutter 制作的应用的 ListPage