higorlapa/chat-list-flutter-package
一個聊天列表小工具套件,可快速啟動您的聊天應用
- Stars
- 5
- Forks
- 5
- 最近推送(UTC)
- 2021年3月10日
- 專案狀態
- 未封存
語言DartKotlinSwiftHTMLObjective-C
使用的依賴
依賴清單 3 項
- flutter
{"sdk":"flutter"} - bubble
^1.2.1 - flutter_test開發依賴
{"sdk":"flutter"}
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
chat_list
A flutter package to incorporate a chat view in a simple way and jump start your chat application.
Example
See source
Usage
//Create a list with messages
final List<MessageWidget> _messageList = [
MessageWidget(
content: "Hi, Bill! This is the simplest example ever.",
ownerType: OwnerType.sender,
ownerName: "Higor Lapa"),
MessageWidget(
content:
"Let's make it better , Higor. Custom font size and text color",
textColor: Colors.black38,
fontSize: 18.0,
ownerType: OwnerType.receiver,
ownerName: "Bill Gates"),
];
final ScrollController _scrollController = ScrollController();
//Place the widget inside your build function
ChatList(
children: _messageList,
scrollController: _scrollController
),
https://github.com/lapadev/chat-list-flutter-package/blob/master/example/screenshots/example.png?raw=true