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

GitHub リポジトリanokabb/chat_composer

chat_composer

anokabb/chat_composer open-source repository details.

chat_composer のプロジェクト画像
スター
13
フォーク
10
最終プッシュ(UTC)
2022/07/24
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

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

Anouar Kabbouri GitHub avatar
GitHub 作者

Anouar Kabbouri ↗

Mobile Apps Developer & Team Lead

Rabat, Morocco公式サイト ↗
言語DartKotlin

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 10 件

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗