feat: js бриджы для вебапов
This commit is contained in:
@@ -11,6 +11,7 @@ import '../../main.dart';
|
||||
import '../screens/chats/chat_list_screen.dart';
|
||||
import '../screens/chats/chat_screen.dart';
|
||||
import '../screens/contacts/open_contact_profile.dart';
|
||||
import '../screens/webapp/web_app_bridge.dart';
|
||||
import '../screens/webapp/web_app_screen.dart';
|
||||
import 'custom_notification.dart';
|
||||
import 'sticker_pack_sheet.dart';
|
||||
@@ -137,6 +138,7 @@ Future<bool> openWebAppForBot(
|
||||
context,
|
||||
(_) => WebAppScreen(
|
||||
title: title,
|
||||
entryPoint: WebAppEntryPoint.url,
|
||||
loader: () => webAppModule.fetchLaunch(
|
||||
botId,
|
||||
startParam: startParam,
|
||||
|
||||
@@ -8,6 +8,7 @@ import 'package:flutter/rendering.dart';
|
||||
import 'package:komet/main.dart';
|
||||
import 'package:material_symbols_icons/symbols.dart';
|
||||
import '../../backend/modules/messages.dart';
|
||||
import '../screens/webapp/web_app_bridge.dart';
|
||||
import '../screens/webapp/web_app_screen.dart';
|
||||
import '../../core/config/app_bubble_behavior.dart';
|
||||
import '../../core/config/app_bubble_shape.dart';
|
||||
@@ -1444,6 +1445,7 @@ class MessageBubble extends StatelessWidget {
|
||||
MaterialPageRoute(
|
||||
builder: (_) => WebAppScreen(
|
||||
title: button.text,
|
||||
entryPoint: WebAppEntryPoint.inlineButton,
|
||||
loader: () => webAppModule.fetchLaunch(
|
||||
botId,
|
||||
startParam: startParam,
|
||||
|
||||
Reference in New Issue
Block a user