ruut 0.0.2 ruut: ^0.0.2 copied to clipboard
Ruut Chat SDK for flutter, elevate your customer experienc with Ruut
Ruut Flutter SDK #
Ruut Flutter SDK provides developers with a seamless way to integrate the Ruut chat widget into their Flutter applications.
Installation #
To use the Ruut Flutter SDK in your Flutter project, add ruut
as a dependency in your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
ruut: ^1.0.0
Usage #
import 'package:flutter/material.dart';
import 'package:ruut/ruut.dart';
class MyRuutScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Ruut(
ruutToken: 'YOUR_RUUT_TOKEN',
user: RuutUser(
id: 'USER_ID',
email: 'user@example.com',
fullName: 'John Doe',
// Add other user details here
),
onReady: () {
print('Ruut is ready');
},
);
}
}
Methods #
Sets the user details to be passed to the Ruut chat widget. #
Ruut.setUser(RuutUser? user);