refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -16,7 +16,7 @@ extension UiaRequestManager on MatrixState {
|
|||
final l10n = L10n.of(context);
|
||||
final navigatorContext =
|
||||
FluffyChatApp.router.routerDelegate.navigatorKey.currentContext ??
|
||||
context;
|
||||
context;
|
||||
try {
|
||||
if (uiaRequest.state != UiaRequestState.waitForUser ||
|
||||
uiaRequest.nextStages.isEmpty) {
|
||||
|
|
@ -27,7 +27,8 @@ extension UiaRequestManager on MatrixState {
|
|||
Logs().d('Uia Request Stage: $stage');
|
||||
switch (stage) {
|
||||
case AuthenticationTypes.password:
|
||||
final input = cachedPassword ??
|
||||
final input =
|
||||
cachedPassword ??
|
||||
(await showTextInputDialog(
|
||||
context: navigatorContext,
|
||||
title: l10n.pleaseEnterYourPassword,
|
||||
|
|
@ -87,9 +88,7 @@ extension UiaRequestManager on MatrixState {
|
|||
?.tryGet<String>('url');
|
||||
final fallbackUrl = client.homeserver!.replace(
|
||||
path: '/_matrix/client/v3/auth/$stage/fallback/web',
|
||||
queryParameters: {
|
||||
'session': uiaRequest.session,
|
||||
},
|
||||
queryParameters: {'session': uiaRequest.session},
|
||||
);
|
||||
final url = stageUrl != null
|
||||
? (Uri.tryParse(stageUrl) ?? fallbackUrl)
|
||||
|
|
@ -106,8 +105,9 @@ extension UiaRequestManager on MatrixState {
|
|||
|
||||
launchUrl(url, mode: LaunchMode.inAppBrowserView);
|
||||
final completer = Completer();
|
||||
final listener =
|
||||
AppLifecycleListener(onResume: () => completer.complete());
|
||||
final listener = AppLifecycleListener(
|
||||
onResume: () => completer.complete(),
|
||||
);
|
||||
await completer.future;
|
||||
listener.dispose();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue