パッケージ、リポジトリ、アプリカテゴリを検索

chat_composer のカバー
パッケージ詳細v1.0.3

chat_composer

テキスト、オーディオ、その他のメディアを使用してチャットできる、チャットコンポーザーの簡単な実装を可能にするFlutterパッケージです。

AndroidiOS
30日間ダウンロード
69
いいね数
47
Pub ポイント
130

パッケージをインストール

flutter pub add chat_composer

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

ChatComposer は、アプリケーションにチャット入力機能を簡単に統合できるように設計されたFlutterパッケージです。テキスト、音声録音、その他のメディアタイプを使用して、統合的でカスタマイズ可能なインターフェース内でメッセージを送信できます。使いやすさを重視して開発されており、AndroidおよびiOSの両方のプラットフォームをサポートし、開発者が通信体験を強化するためのスムーズな方法を提供します。リアルタイムメッセージングアプリ向けの応答性があり拡張可能な基盤を提供しており、ソーシャルプラットフォームやカスタマーサポートツール、共同作業環境に最適です。

用途

  • リアルタイムメッセージングアプリ
  • カスタマーサポートチャットインターフェース
  • ソーシャルメディアメッセージ
  • 共同作業スペース
  • 音声対応チャット機能

主な機能

  • テキストメッセージ入力
  • オーディオ録音サポート
  • メディア添付機能
  • クロスプラットフォーム互換性(AndroidおよびiOS)
  • カスタマイズ可能な UI コンポーネント

適している対象

  • チャットアプリを開発する開発者
  • リッチメディアメッセージが必要なチーム
  • 音声からテキストへの通信を必要とするアプリ
  • モバイルファースト通信プラットフォーム
  • 開発期間がタイトなプロジェクト

注意事項

  • 音声録音にはプラットフォーム固有の権限が必要です
  • ブランドの整合性を図るために追加のスタイリングが必要になる可能性があります
  • メディア処理のための外部依存関係に依存しています
  • 限られたオールインワンの分析またはメッセージ履歴
  • シンプルから中程度の複雑さのチャットフローに最適

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

chat_composer

pub package

A Flutter package for easy implementation of chat composer allows users to chat with Text, Audio, and Other Media.

Gif

Setup

Android

Permissions

    ...
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    ...
   <application

AndroidX

  1. Add the following to your "gradle.properties" file:
android.useAndroidX=true
android.enableJetifier=true
  1. Make sure you set the compileSdkVersion in your "android/app/build.gradle" file to 33 or higher:
android {
  compileSdkVersion 33
  ...
}
  1. Make sure you set the minSdkVersion in your "android/app/build.gradle" file to 18 or higher:
defaultConfig {
  minSdkVersion 18
  ...
}
  1. Make sure you replace all the android. dependencies to their AndroidX counterparts (a full list can be found here: https://developer.android.com/jetpack/androidx/migrate ).

IOS

I'm working on the iOS version until then you can support me by buying me a cup of coffee 🙂

Add dependency

dependencies:
  chat_composer: ^1.0.2 #latest version
Import
import 'package:chat_composer/chat_composer.dart';
Easy to use
ChatComposer(
    onReceiveText: (str) {
    print('TEXT : ' + str!);
    },
    onRecordEnd: (path) {
    print('AUDIO PATH : ' + path!);
    },
)
Attributes

leading: A widget to display before the [TextField].
actions: A list of Widgets to display in a row after the [TextField] widget.
onReceiveText: A callback when submit Text Message.
onRecordStart: A callback when start recording.
onRecordEnd: A callback when end recording, return the recorder audio path.
onRecordCancel: A callback when cancel recording.
onPanCancel: A callback when the user does not lock the recording or does not hold.
maxRecordLength: Audio max duration should record then return recorder audio path.

Buy Me A Coffee

カテゴリー

依存関係

依存関係一覧 7 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。