feat: mini apps customizados com importacao por arquivo/URL, paleta de cores, avatar autenticado e documentacao
This commit is contained in:
28
lib/pages/apps/miniapp_shell_stub.dart
Normal file
28
lib/pages/apps/miniapp_shell_stub.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
// SPDX-FileCopyrightText: 2026 TatuChat
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
/// Fallback used when neither `dart.library.js_interop` nor `dart.library.ffi`
|
||||
/// is available. It should never be selected on a supported platform.
|
||||
class MiniAppShell extends StatelessWidget {
|
||||
final String html;
|
||||
final String appId;
|
||||
final String title;
|
||||
final Future<Map<String, Object?>> Function(Map<String, dynamic> request)
|
||||
onRequest;
|
||||
|
||||
const MiniAppShell({
|
||||
super.key,
|
||||
required this.html,
|
||||
required this.appId,
|
||||
required this.title,
|
||||
required this.onRequest,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => throw UnsupportedError(
|
||||
'MiniAppShell is not implemented for this platform',
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user