at_chat_flutter 3.0.4 copy "at_chat_flutter: ^3.0.4" to clipboard
at_chat_flutter: ^3.0.4 copied to clipboard

outdated

A Flutter plugin project to provide a chat feature between @‎signs built on the @‎platform to any Flutter application.

Now for some internet optimism. #

pub package pub points build status gitHub license

at_chat_flutter #

Introduction #

A flutter plugin to provide chat feature between two atsigns. This plugin provides a chat screen - ChatScreen that can be accessed as a bottom sheet or as a navigated screen.

Get Started: #

Initially to get a basic overview of the SDK, you must read the atsign docs.

To use this package you must be having a basic setup, Follow here to get started.

Installation: #

To use this library in your app, add it to your pubspec.yaml

  dependencies:
    at_chat_flutter: ^3.0.3

Add to your project

flutter pub get 

Import in your application code

import 'package:at_chat_flutter/at_chat_flutter.dart';

Clone it from github #

Feel free to fork a copy of the source from the GitHub Repo

Initialising: #

The chat service needs to be initialised. It is expected that the app will first create an AtClientService instance using the preferences and then use it to initialise the chat service.

initializeChatService(
        clientSdkService.atClientServiceInstance!.atClientManager,
        activeAtSign!,
        rootDomain: MixedConstants.ROOT_DOMAIN);

Usage #

As a bottom sheet #

FlatButton(
    onPressed: () {
        scaffoldKey.currentState
        .showBottomSheet((context) => ChatScreen());
    },
    child: Container(
        height: 40,
        child: Text('Open chat in bottom sheet'),
    ),
),

As a screen #

class ThirdScreen extends StatefulWidget {
  @override
  _ThirdScreenState createState() => _ThirdScreenState();
}

class _ThirdScreenState extends State<ThirdScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Chat Screen')),
      body: ChatScreen(
        height: MediaQuery.of(context).size.height,
        incomingMessageColor: Colors.blue[100],
        outgoingMessageColor: Colors.green[100],
        isScreen: true,
      ),
    );
  }
}

Example #

We have a good example with explanation in the at_chat_flutter package.

Open source usage and contributions #

This is freely licensed open source code, so feel free to use it as is, suggest changes or enhancements or create your own version. See CONTRIBUTING.md for detailed guidance on how to setup tools, tests and make a pull request.

5
likes
0
pub points
37%
popularity

Publisher

verified publisheratsign.org

A Flutter plugin project to provide a chat feature between @‎signs built on the @‎platform to any Flutter application.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

at_client, at_client_mobile, at_common_flutter, at_commons, at_contact, at_lookup, file_picker, flutter

More

Packages that depend on at_chat_flutter