no message
This commit is contained in:
@@ -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')),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user