no message

This commit is contained in:
cpdl
2025-05-06 17:25:49 +08:00
parent 43515d8058
commit 67bf71c998
35 changed files with 4216 additions and 296 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
void main() {
try {
runApp(MyApp());
runApp(const MyApp());
} catch (e, stackTrace) {
print('Error during app startup: $e');
print('Stack trace: $stackTrace');
@@ -11,6 +11,8 @@ void main() {
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
_MyAppState createState() => _MyAppState();
}
@@ -21,7 +23,7 @@ class _MyAppState extends State<MyApp> {
super.initState();
OpenIM.iMManager
.initSDK(
platformID: 1,
platformID: 2,
apiAddr: 'http://192.168.77.135:10002',
wsAddr: 'ws://192.168.77.135:10001',
dataDir: './',
@@ -50,7 +52,7 @@ class _MyAppState extends State<MyApp> {
),
body: Column(
children: [
TextButton(onPressed: () {}, child: Text('login')),
TextButton(onPressed: () {}, child: const Text('login')),
],
),
),