Dialogs Mobile. Options for password length horizontal

This commit is contained in:
grummbeer 2023-03-30 04:11:48 +02:00
parent 331d2d0fc5
commit 18ebd2e727

View File

@ -128,10 +128,19 @@ void setTemporaryPasswordLengthDialog(
return CustomAlertDialog(
title: Text(translate("Set one-time password length")),
content: Column(
mainAxisSize: MainAxisSize.min,
children:
lengths.map((e) => getRadio(e, e, length, setLength)).toList()),
content: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: lengths
.map(
(value) => Row(
children: [
Text(value),
Radio(
value: value, groupValue: length, onChanged: setLength),
],
),
)
.toList()),
);
}, backDismiss: true, clickMaskDismiss: true);
}