패키지, 저장소 및 앱 카테고리 검색

chat_composer 표지
패키지 상세v1.0.3

chat_composer

텍스트, 오디오 및 기타 미디어로 채팅할 수 있도록 하는, 채팅 컴포저의 간편한 구현을 위한 플러터 패키지입니다.

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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.