mirrorfly_chat 0.0.1  mirrorfly_chat: ^0.0.1 copied to clipboard
mirrorfly_chat: ^0.0.1 copied to clipboard
A MirrorFly Chat to Experience an outstanding real time messaging solution. The powerful communication that adds an extra mileage to build your chat app.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:mirrorfly_chat/mirrorfly.dart';
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  Mirrorfly.init(
      baseUrl: 'https://api-uikit-qa.contus.us/api/v1/',
      licenseKey: 'your license key',
      iOSContainerID: 'your container id');//Must be same as AppGroups given in Xcode Capability
  runApp(const MyApp());
}
class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Name App',
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange),
      ),
      home: const MyHomePage(),
    );
  }
}
class MyAppState extends ChangeNotifier {}
class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});
  @override
  Widget build(BuildContext context) {
    // var appState = context.watch<MyAppState>();
    return Scaffold(
      body: Column(
        children: const [
          Text('Welcome to Mirrorfly'),
        ],
      ),
    );
  }
}