wechat.dart
429 Bytes
import 'package:fluwx/fluwx.dart';
import 'dart:io' show Platform;
final Fluwx fluwx = Fluwx();
Future<void> registerWechatApi() async {
if (Platform.isAndroid || Platform.isIOS) {
await fluwx.registerApi(appId: "wx8c32ea248f0c7765", universalLink: "https://dev.banxiaoer.net/path/to/wechat/");
} else {
print("✅ Fluwx is not supported on this platform (${Platform.operatingSystem}). Skip registerApi().");
}
}