mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 00:43:20 +03:00
update dir ; move settings from main page to settings_page
This commit is contained in:
49
lib/pages/chat_page.dart
Normal file
49
lib/pages/chat_page.dart
Normal file
@@ -0,0 +1,49 @@
|
||||
import 'package:dash_chat/dash_chat.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hbb/common.dart';
|
||||
import 'home_page.dart';
|
||||
|
||||
|
||||
class ChatPage extends StatelessWidget implements PageShape {
|
||||
|
||||
final FocusNode _focusNode = FocusNode();
|
||||
|
||||
@override
|
||||
final title = "Chat";
|
||||
|
||||
@override
|
||||
final icon = Icon(Icons.chat);
|
||||
|
||||
@override
|
||||
final appBarActions = [];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
color: MyTheme.darkGray,
|
||||
child: DashChat(
|
||||
focusNode: _focusNode,
|
||||
onSend: (ChatMessage) {},
|
||||
user: ChatUser(uid: "111", name: "Bob"),
|
||||
messages: [
|
||||
ChatMessage(
|
||||
text: "hello", user: ChatUser(uid: "111", name: "Bob")),
|
||||
ChatMessage(
|
||||
text: "hi", user: ChatUser(uid: "222", name: "Alice")),
|
||||
ChatMessage(
|
||||
text: "hello", user: ChatUser(uid: "111", name: "Bob")),
|
||||
ChatMessage(
|
||||
text: "hi", user: ChatUser(uid: "222", name: "Alice")),
|
||||
ChatMessage(
|
||||
text: "hello", user: ChatUser(uid: "111", name: "Bob")),
|
||||
ChatMessage(
|
||||
text: "hi", user: ChatUser(uid: "222", name: "Alice")),
|
||||
ChatMessage(
|
||||
text: "hello", user: ChatUser(uid: "111", name: "Bob")),
|
||||
ChatMessage(
|
||||
text: "hi", user: ChatUser(uid: "222", name: "Alice")),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user