install
- first you need to await v chat init in main.dart before
runApp()
method
WidgetsFlutterBinding.ensureInitialized();
await VChatController.instance.init(
baseUrl: Uri.parse("https://test.vchatsdk.com"),
appName: "test_v_chat",
vChatNotificationType: VChatNotificationType.none,
//widgetsBuilder: VChatCustomWidgets(),
enableLogger: true,
maxMediaUploadSize: 50 * 1000 * 1000,
passwordHashKey: "passwordHashKey",
maxGroupChatUsers: 512,
);
baseUrl
=> your node js server ipappName
=> to save files in internal storage with this folder name internalStorage/documents/{appName}widgetsBuilder
=> set your custom widget by make class extendsVChatWidgetBuilder
and override the widgets you want to changevChatNotificationType
=> set to firebase if firebase supported in your country, and your project connected to firebase project set to none if you want to testonesignal
not supported yetenableLogger
=> if true vchat will print the warning in console in release mode it will disable automaticallymaxMediaUploadSize
=>(optional) to set max files in chat don't forget to update .env in server code alsopasswordHashKey
=> password hash Key it must be same in flutter and .env in backend codemaxGroupChatUsers
=> set max group users count bigger number will need high server- Example