refactor: Dialog BuildContext
This commit is contained in:
parent
40003628b9
commit
315a43c1a4
24 changed files with 30 additions and 68 deletions
|
|
@ -20,7 +20,6 @@ class Settings3Pid extends StatefulWidget {
|
|||
class Settings3PidController extends State<Settings3Pid> {
|
||||
void add3PidAction() async {
|
||||
final input = await showTextInputDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.enterAnEmailAddress,
|
||||
okLabel: L10n.of(context)!.ok,
|
||||
|
|
@ -44,7 +43,6 @@ class Settings3PidController extends State<Settings3Pid> {
|
|||
);
|
||||
if (response.error != null) return;
|
||||
final ok = await showOkAlertDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.weSentYouAnEmail,
|
||||
message: L10n.of(context)!.pleaseClickOnLink,
|
||||
|
|
@ -69,7 +67,6 @@ class Settings3PidController extends State<Settings3Pid> {
|
|||
|
||||
void delete3Pid(ThirdPartyIdentifier identifier) async {
|
||||
if (await showOkCancelAlertDialog(
|
||||
useRootNavigator: false,
|
||||
context: context,
|
||||
title: L10n.of(context)!.areYouSure,
|
||||
okLabel: L10n.of(context)!.yes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue