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( return CustomAlertDialog(
title: Text(translate("Set one-time password length")), title: Text(translate("Set one-time password length")),
content: Column( content: Row(
mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: children: lengths
lengths.map((e) => getRadio(e, e, length, setLength)).toList()), .map(
(value) => Row(
children: [
Text(value),
Radio(
value: value, groupValue: length, onChanged: setLength),
],
),
)
.toList()),
); );
}, backDismiss: true, clickMaskDismiss: true); }, backDismiss: true, clickMaskDismiss: true);
} }