ruut_flutter 0.0.12 copy "ruut_flutter: ^0.0.12" to clipboard
ruut_flutter: ^0.0.12 copied to clipboard

The official Flutter SDK for Ruut Chat,this SDK provides developers with a seamless way to integrate the Ruut chat widget into their Flutter applications.

example/lib/main.dart

import 'package:ruut_flutter/ruut_flutter.dart';
import 'package:ruut_flutter/ui/ruut_home.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        fontFamily: "TTHoves-Pro",
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(
        title: 'Flutter Demo Home Page',
      ),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({required this.title}) : super();

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return RuutChat( 
      inboxIdentifier: 'Add your inbox identifier here',
      blogUrl: "Your blog should be added here",
      logoUrl:
          "https://i.pinimg.com/1200x/1f/57/0c/1f570c641d917e19065d45567c23b28a.jpg",
      theme: RuutChatTheme(primaryColor: Colors.green),
      user: RuutUser(
        identifier: "femizzzy001",
        name: "Femi Law",
        email: "femi@test.com",
      ),
    );
  }
}
2
likes
140
points
96
downloads

Publisher

verified publisherruut.chat

Weekly Downloads

The official Flutter SDK for Ruut Chat,this SDK provides developers with a seamless way to integrate the Ruut chat widget into their Flutter applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, dio, equatable, file_picker, flutter, flutter_chat_types, flutter_chat_ui, flutter_inappwebview, flutter_secure_storage, flutter_svg, hive, hive_flutter, http_parser, image_picker, intl, json_annotation, path_provider, riverpod, stream_channel, synchronized, url_launcher, uuid, web_socket_channel

More

Packages that depend on ruut_flutter