|
@@ -41,6 +41,7 @@ class _HomePageState extends State<HomePage> {
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
children: [
|
|
children: [
|
|
const SizedBox(height: 10),
|
|
const SizedBox(height: 10),
|
|
|
|
+ const Text("login appKey: ${Config.appKey}"),
|
|
const Text("login userId: ${Config.userId}"),
|
|
const Text("login userId: ${Config.userId}"),
|
|
const Text("agoraToken: ${Config.agoraToken}"),
|
|
const Text("agoraToken: ${Config.agoraToken}"),
|
|
const SizedBox(height: 10),
|
|
const SizedBox(height: 10),
|
|
@@ -125,6 +126,7 @@ class _HomePageState extends State<HomePage> {
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /// login
|
|
void _signIn() async {
|
|
void _signIn() async {
|
|
try {
|
|
try {
|
|
await ChatClient.getInstance.loginWithAgoraToken(
|
|
await ChatClient.getInstance.loginWithAgoraToken(
|