openim_sdk 1.7.5
openim_sdk: ^1.7.5 copied to clipboard
An instant messaging plug-in that supports Android and IOS. And the server is also all open source.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'routes/app_pages.dart';
import 'routes/app_routes.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'OpenIM',
debugShowCheckedModeBanner: false,
theme: ThemeData(
colorSchemeSeed: const Color(0xFF1B72E8),
useMaterial3: true,
brightness: Brightness.light,
appBarTheme: const AppBarTheme(centerTitle: true),
inputDecorationTheme: InputDecorationTheme(
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
isDense: true,
),
),
darkTheme: ThemeData(
colorSchemeSeed: const Color(0xFF1B72E8),
useMaterial3: true,
brightness: Brightness.dark,
appBarTheme: const AppBarTheme(centerTitle: true),
inputDecorationTheme: InputDecorationTheme(
border: OutlineInputBorder(borderRadius: BorderRadius.circular(12)),
contentPadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
isDense: true,
),
),
initialRoute: AppRoutes.splash,
getPages: AppPages.pages,
);
}
}