fix: key verification dialog button order
This commit is contained in:
parent
dc83065adb
commit
d2f11d264f
1 changed files with 4 additions and 4 deletions
|
|
@ -205,15 +205,15 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
||||||
],
|
],
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
);
|
);
|
||||||
buttons.add(AdaptiveFlatButton(
|
|
||||||
child: Text(widget.l10n.theyMatch),
|
|
||||||
onPressed: () => widget.request.acceptSas(),
|
|
||||||
));
|
|
||||||
buttons.add(AdaptiveFlatButton(
|
buttons.add(AdaptiveFlatButton(
|
||||||
textColor: Colors.red,
|
textColor: Colors.red,
|
||||||
child: Text(widget.l10n.theyDontMatch),
|
child: Text(widget.l10n.theyDontMatch),
|
||||||
onPressed: () => widget.request.rejectSas(),
|
onPressed: () => widget.request.rejectSas(),
|
||||||
));
|
));
|
||||||
|
buttons.add(AdaptiveFlatButton(
|
||||||
|
child: Text(widget.l10n.theyMatch),
|
||||||
|
onPressed: () => widget.request.acceptSas(),
|
||||||
|
));
|
||||||
break;
|
break;
|
||||||
case KeyVerificationState.waitingSas:
|
case KeyVerificationState.waitingSas:
|
||||||
var acceptText = widget.request.sasTypes.contains('emoji')
|
var acceptText = widget.request.sasTypes.contains('emoji')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue