web3mq_ui_components

Creator: coderz1093

Last updated:

0 purchases

web3mq_ui_components Image
web3mq_ui_components Images

Languages

Categories

Add to Cart

Description:

web3mq ui components

web3mq_ui_components #
Features #

Chats list
Followings list
Followers list

Usage #
import 'package:flutter/material.dart';
import 'package:web3mq/web3mq.dart';
import 'package:web3mq_ui_components/web3mq_ui_components.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();

/// Create a new instance of [StreamChatClient] passing the apikey obtained
/// from your project dashboard.
final client = Web3MQClient(
's2dxdhpxd94g',
);

final user = User('userId', DID('', ''), 'sessionKey');

await client.connectUser(user);
}

class MyApp extends StatelessWidget {
const MyApp({
super.key,
required this.client,
});

final Web3MQClient client;

@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData.light(),
darkTheme: ThemeData.dark(),
home: ChatsPage(
title: 'title',
client: client,
onTapChat: (p0) {
print('tapped chat : $p0');
},
));
}
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.