refactor: Dialog BuildContext
This commit is contained in:
parent
40003628b9
commit
315a43c1a4
24 changed files with 30 additions and 68 deletions
|
|
@ -127,7 +127,6 @@ class LoginController extends State<Login> {
|
|||
);
|
||||
final dialogResult = await showOkCancelAlertDialog(
|
||||
context: context,
|
||||
useRootNavigator: false,
|
||||
message:
|
||||
L10n.of(context)!.noMatrixServer(newDomain, oldHomeserver!),
|
||||
okLabel: L10n.of(context)!.ok,
|
||||
|
|
@ -157,7 +156,6 @@ class LoginController extends State<Login> {
|
|||
|
||||
void passwordForgotten() async {
|
||||
final input = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.passwordForgotten,
|
||||
message: L10n.of(context)!.enterAnEmailAddress,
|
||||
|
|
@ -186,7 +184,6 @@ class LoginController extends State<Login> {
|
|||
);
|
||||
if (response.error != null) return;
|
||||
final password = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.passwordForgotten,
|
||||
message: L10n.of(context)!.chooseAStrongPassword,
|
||||
|
|
@ -204,7 +201,6 @@ class LoginController extends State<Login> {
|
|||
);
|
||||
if (password == null) return;
|
||||
final ok = await showOkAlertDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.weSentYouAnEmail,
|
||||
message: L10n.of(context)!.pleaseClickOnLink,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue