chore: Simplify bootstrap

This commit is contained in:
Christian Pauly 2021-01-23 11:57:47 +01:00
commit c6d9fcd91a
4 changed files with 36 additions and 120 deletions

View file

@ -139,13 +139,18 @@ class MatrixState extends State<Matrix> {
final stage = uiaRequest.nextStages.first;
switch (stage) {
case AuthenticationTypes.password:
final input = await showTextInputDialog(context: context, textFields: [
DialogTextField(
minLines: 1,
maxLines: 1,
obscureText: true,
)
]);
final input = await showTextInputDialog(
context: context,
title: L10n.of(context).pleaseEnterYourPassword,
textFields: [
DialogTextField(
minLines: 1,
maxLines: 1,
obscureText: true,
hintText: '******',
)
],
);
if (input?.isEmpty ?? true) return;
return uiaRequest.completeStage(
AuthenticationPassword(