flutter: msgbox selectable
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
75590af0d7
commit
244c07e50e
@ -656,7 +656,8 @@ void msgBox(
|
|||||||
}
|
}
|
||||||
dialogManager.show((setState, close) => CustomAlertDialog(
|
dialogManager.show((setState, close) => CustomAlertDialog(
|
||||||
title: _msgBoxTitle(title),
|
title: _msgBoxTitle(title),
|
||||||
content: Text(translate(text), style: const TextStyle(fontSize: 15)),
|
content: SelectableText(translate(text),
|
||||||
|
style: const TextStyle(fontSize: 15)),
|
||||||
actions: buttons,
|
actions: buttons,
|
||||||
onSubmit: hasOk ? submit : null,
|
onSubmit: hasOk ? submit : null,
|
||||||
onCancel: hasCancel == true ? cancel : null,
|
onCancel: hasCancel == true ? cancel : null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user