aplus_chat 0.0.5 aplus_chat: ^0.0.5 copied to clipboard
Auxano global services chat sdk.
import 'package:aplus_chat/aplus_chat_sdk.dart';
import 'package:flutter/material.dart';
void main() async {
await APlusChatMain.aPlusChatInit();
APlusChatMain.loginWithAPlusChat(
userId: "85",
secretKey:
"U2FsdGVkX1%2BdKnWn5ngCut4b2pG%2FM2H8%2FdDTxTKWzmz%2FFgcSYyKoeHp83UBOkxYL",
fcmToken: "das",
onSuccess: (success) {
print(success);
print("DAS");
},
onError: (err) {},
onConnectionFailed: (connection) {});
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'APlus Chat',
theme: ThemeData(
primarySwatch: Colors.blue,
),
debugShowCheckedModeBanner: false,
home: APlusChatMain.chatListView());
}
}