mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 19:47:17 +00:00
@@ -47,7 +47,6 @@ class ChatPage extends StatelessWidget implements PageShape {
|
||||
value: chatModel,
|
||||
child: Container(
|
||||
color: Theme.of(context).scaffoldBackgroundColor,
|
||||
padding: EdgeInsets.all(14.0),
|
||||
child: Consumer<ChatModel>(
|
||||
builder: (context, chatModel, child) {
|
||||
final currentUser = chatModel.currentUser;
|
||||
@@ -76,13 +75,11 @@ class ChatPage extends StatelessWidget implements PageShape {
|
||||
fontSize: 14,
|
||||
color:
|
||||
Theme.of(context).textTheme.titleLarge?.color),
|
||||
inputDecoration: isDesktop
|
||||
? InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
isDense: true,
|
||||
hintText: translate('Write a message'),
|
||||
filled: true,
|
||||
fillColor:
|
||||
Theme.of(context).colorScheme.background,
|
||||
fillColor: Theme.of(context).colorScheme.background,
|
||||
contentPadding: EdgeInsets.all(10),
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(10.0),
|
||||
@@ -91,11 +88,6 @@ class ChatPage extends StatelessWidget implements PageShape {
|
||||
style: BorderStyle.solid,
|
||||
),
|
||||
),
|
||||
)
|
||||
: defaultInputDecoration(
|
||||
hintText: translate('Write a message'),
|
||||
fillColor:
|
||||
Theme.of(context).colorScheme.background,
|
||||
),
|
||||
sendButtonBuilder: defaultSendButton(
|
||||
padding:
|
||||
|
||||
@@ -71,13 +71,19 @@ class DraggableChatWindow extends StatelessWidget {
|
||||
onPressed: () {
|
||||
chatModel.hideChatWindowOverlay();
|
||||
},
|
||||
icon: const Icon(Icons.keyboard_arrow_down)),
|
||||
icon: const Icon(
|
||||
Icons.keyboard_arrow_down,
|
||||
color: Colors.white,
|
||||
)),
|
||||
IconButton(
|
||||
onPressed: () {
|
||||
chatModel.hideChatWindowOverlay();
|
||||
chatModel.hideChatIconOverlay();
|
||||
},
|
||||
icon: const Icon(Icons.close))
|
||||
icon: const Icon(
|
||||
Icons.close,
|
||||
color: Colors.white,
|
||||
))
|
||||
],
|
||||
)
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user