diff --git a/lib/example_page.dart b/lib/example_page.dart index b799b72..c6783f9 100644 --- a/lib/example_page.dart +++ b/lib/example_page.dart @@ -309,6 +309,10 @@ class _WebToolsExamplePageState extends State { bridge.sendToFlutter( ToFlutterAppEnum.lovingDayChooseFriend.code, {}); }), + _buildMethodTile("恩爱节我的邀请页面", "恩爱节我的邀请页面", () { + bridge + .sendToFlutter(ToFlutterAppEnum.lovingDayMyInvite.code, {}); + }), ListTile( title: const Text('跳转到网页', style: TextStyle(fontWeight: FontWeight.bold)), @@ -539,7 +543,7 @@ class _WebToolsExamplePageState extends State { _buildMethodTile( '发红包', '触发前往语音房任务 && 发红包', - () => bridge.commonInteraction({ + () => bridge.commonInteraction({ "interactionType": "TaskKeySendRedPack", }), ), @@ -588,7 +592,7 @@ class _WebToolsExamplePageState extends State { _buildMethodTile( '其他页面', '进入其他h5页面', - () => bridge.commonInteraction({ + () => bridge.commonInteraction({ "interactionType": WebInteractionType .taskKeyOtherPage.code, // taskKeyReplayTimeline @@ -598,7 +602,7 @@ class _WebToolsExamplePageState extends State { _buildMethodTile( '我的钱包页面', '我的钱包页面', - () => bridge.commonInteraction({ + () => bridge.commonInteraction({ "interactionType": WebInteractionType .taskKeyMineWallet.code, // taskKeyReplayTimeline @@ -608,7 +612,7 @@ class _WebToolsExamplePageState extends State { _buildMethodTile( '我的背包', '我的装扮背包页面(或者是称号)', - () => bridge.commonInteraction({ + () => bridge.commonInteraction({ "interactionType": WebInteractionType .taskKeyMineBackpack.code, // taskKeyReplayTimeline @@ -645,6 +649,11 @@ class _WebToolsExamplePageState extends State { "updateType": "1" // 1 刷新整个挂件数据,2刷新观时礼的宝箱列表数据 }), ), + _buildMethodTile( + '刷新当前网页', + '刷新当前网页', + () => bridge.sendToFlutter(ToFlutterAppEnum.reload.code, {}), + ), _buildMethodTile( '翻译', '多语言翻译', diff --git a/pubspec.yaml b/pubspec.yaml index 965d35f..0c29d5c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: web_tools description: "A new Flutter package project." -version: 0.0.5 +version: 0.0.6 publish_to: 'none' # 不发布到pub.dev homepage: https://gitea.sdws.shop/xim/web_tools.git