Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d71234da78 |
@@ -59,6 +59,12 @@ enum ToFlutterAppEnum {
|
|||||||
|
|
||||||
// 定向充值
|
// 定向充值
|
||||||
rechargeItem('rechargeItem'),
|
rechargeItem('rechargeItem'),
|
||||||
|
//专属见面礼
|
||||||
|
shouldInviteCodeGift('InviteCodeGiftPackageDialogPage'),
|
||||||
|
//解析 URL 并跳转
|
||||||
|
showCommandJump('commandJump'),
|
||||||
|
//跳转至网页
|
||||||
|
showToWebViewPage('toWebViewPage'),
|
||||||
|
|
||||||
///通用交互 别往这下面加,👆🏻加
|
///通用交互 别往这下面加,👆🏻加
|
||||||
commonInteraction('commonInteraction'),
|
commonInteraction('commonInteraction'),
|
||||||
@@ -256,6 +262,21 @@ class FlutterBridge {
|
|||||||
...shareCardModel?.toJson() ?? {},
|
...shareCardModel?.toJson() ?? {},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//专属见面礼
|
||||||
|
void taskInviteCodeGift() =>
|
||||||
|
sendToFlutter(ToFlutterAppEnum.shouldInviteCodeGift.code, {});
|
||||||
|
|
||||||
|
//解析 URL 并跳转
|
||||||
|
void taskCommandJump({required String scheme, required String activityId}) =>
|
||||||
|
sendToFlutter(ToFlutterAppEnum.showCommandJump.code,
|
||||||
|
{"scheme": scheme, "activityId": activityId});
|
||||||
|
|
||||||
|
//跳转至网页
|
||||||
|
void taskToWebViewPage(
|
||||||
|
{required String linkUrl, required String activityId}) =>
|
||||||
|
sendToFlutter(ToFlutterAppEnum.showToWebViewPage.code,
|
||||||
|
{"linkUrl": linkUrl, "activityId": activityId});
|
||||||
|
|
||||||
void checkStartBroadcaster() =>
|
void checkStartBroadcaster() =>
|
||||||
sendToFlutter(ToFlutterAppEnum.checkStartBroadcaster.code, {});
|
sendToFlutter(ToFlutterAppEnum.checkStartBroadcaster.code, {});
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: web_tools
|
name: web_tools
|
||||||
description: "A new Flutter package project."
|
description: "A new Flutter package project."
|
||||||
version: 0.0.4
|
version: 0.0.5
|
||||||
publish_to: 'none' # 不发布到pub.dev
|
publish_to: 'none' # 不发布到pub.dev
|
||||||
homepage: https://gitea.sdws.shop/xim/web_tools.git
|
homepage: https://gitea.sdws.shop/xim/web_tools.git
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user