appmsgr_flutter 2.1.2 copy "appmsgr_flutter: ^2.1.2" to clipboard
appmsgr_flutter: ^2.1.2 copied to clipboard

Official Flutter SDK for AppMsgr chat infrastructure. Provides REST API client and GraphQL subscriptions for real-time messaging.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'screens/home_screen.dart';
import 'screens/chat_screen.dart';
import 'screens/mail_screen.dart';

void main() {
  runApp(
    const ProviderScope(
      child: AppMsgrExampleApp(),
    ),
  );
}

class AppMsgrExampleApp extends ConsumerWidget {
  const AppMsgrExampleApp({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final router = GoRouter(
      routes: [
        GoRoute(
          path: '/',
          builder: (context, state) => const HomeScreen(),
        ),
        GoRoute(
          path: '/mail',
          builder: (context, state) => const MailScreen(),
        ),
        GoRoute(
          path: '/chat/:channelId',
          builder: (context, state) {
            final channelId = state.pathParameters['channelId']!;
            return ChatScreen(channelId: channelId);
          },
        ),
      ],
    );

    return MaterialApp.router(
      title: 'AppMsgr SDK Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(
          seedColor: Colors.deepPurple,
          brightness: Brightness.dark,
        ),
        useMaterial3: true,
      ),
      routerConfig: router,
      debugShowCheckedModeBanner: false,
    );
  }
}
0
likes
130
points
127
downloads

Documentation

Documentation
API reference

Publisher

verified publisherappmsgr.com

Weekly Downloads

Official Flutter SDK for AppMsgr chat infrastructure. Provides REST API client and GraphQL subscriptions for real-time messaging.

Homepage
Repository (GitHub)
View/report issues

Topics

#chat #messaging #gaming #real-time #graphql

License

MIT (license)

Dependencies

connectivity_plus, flutter, graphql_flutter, hive, hive_flutter, http, json_annotation, logger, retry

More

Packages that depend on appmsgr_flutter