partially fix issue #2747: text selectable, more top margin of buttons

on dialog
This commit is contained in:
rustdesk 2023-02-01 21:28:26 +08:00
parent fdfda2a982
commit 68cc667f47
3 changed files with 13 additions and 8 deletions

View File

@ -707,7 +707,8 @@ void msgBox(String id, String type, String title, String text, String link,
dialogManager.show(
(setState, close) => CustomAlertDialog(
title: null,
content: msgboxContent(type, title, text),
content: SelectionArea(
child: msgboxContent(type, title, text).paddingOnly(bottom: 10)),
actions: buttons,
onSubmit: hasOk ? submit : null,
onCancel: hasCancel == true ? cancel : null,

View File

@ -51,7 +51,7 @@ class ChatPage extends StatelessWidget implements PageShape {
return Stack(
children: [
LayoutBuilder(builder: (context, constraints) {
return DashChat(
final chat = DashChat(
onSend: (chatMsg) {
chatModel.send(chatMsg);
chatModel.inputNode.requestFocus();
@ -108,6 +108,7 @@ class ChatPage extends StatelessWidget implements PageShape {
borderBottomLeft: 8,
)),
);
return SelectionArea(child: chat);
}),
desktopType == DesktopType.cm ||
chatModel.currentID == ChatModel.clientModeID

View File

@ -1113,10 +1113,12 @@ class _AboutState extends State<_About> {
const SizedBox(
height: 8.0,
),
Text('${translate('Version')}: $version')
.marginSymmetric(vertical: 4.0),
Text('${translate('Build Date')}: $buildDate')
.marginSymmetric(vertical: 4.0),
SelectionArea(
child: Text('${translate('Version')}: $version')
.marginSymmetric(vertical: 4.0)),
SelectionArea(
child: Text('${translate('Build Date')}: $buildDate')
.marginSymmetric(vertical: 4.0)),
InkWell(
onTap: () {
launchUrlString('https://rustdesk.com/privacy');
@ -1137,7 +1139,8 @@ class _AboutState extends State<_About> {
decoration: const BoxDecoration(color: Color(0xFF2c8cff)),
padding:
const EdgeInsets.symmetric(vertical: 24, horizontal: 8),
child: Row(
child: SelectionArea(
child: Row(
children: [
Expanded(
child: Column(
@ -1157,7 +1160,7 @@ class _AboutState extends State<_About> {
),
),
],
),
)),
).marginSymmetric(vertical: 4.0)
],
).marginOnly(left: _kContentHMargin)