You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
944 B
48 lines
944 B
import 'package:flutter/material.dart';
|
|
import 'dart:async';
|
|
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
|
|
|
void main() {
|
|
runApp(MyApp());
|
|
}
|
|
|
|
class MyApp extends StatefulWidget {
|
|
@override
|
|
_MyAppState createState() => _MyAppState();
|
|
}
|
|
|
|
class _MyAppState extends State<MyApp> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
home: Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text('Plugin example app'),
|
|
),
|
|
body: Column(
|
|
children: [
|
|
TextButton(onPressed: _testApi, child: Text('api')),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
void _testApi() {
|
|
// FlutterOpenimSdk.iMManager.initSDK(
|
|
// platform: platform,
|
|
// ipApi: ipApi,
|
|
// ipWs: ipWs,
|
|
// dbPath: dbPath,
|
|
// listener: listener,
|
|
// );
|
|
|
|
}
|
|
}
|
|
|