From ee3eb2a3ca50d7cfd42edb4f1be539d324da51b4 Mon Sep 17 00:00:00 2001 From: bassam-deriv Date: Mon, 13 May 2024 12:24:57 +0400 Subject: [PATCH] refactor(deriv_passkeys): removed unsused imports --- .../deriv_passkeys/lib/src/extensions/context_extensions.dart | 2 +- .../presentation/pages/effortless_passkeys_login_page.dart | 3 --- .../lib/src/presentation/pages/learn_more_passkeys_page.dart | 4 ---- .../lib/src/presentation/pages/manage_passkeys_page.dart | 2 -- .../presentation/widgets/continue_with_passkey_button.dart | 1 - 5 files changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/deriv_passkeys/lib/src/extensions/context_extensions.dart b/packages/deriv_passkeys/lib/src/extensions/context_extensions.dart index 767cb4060..4b3dcfe65 100644 --- a/packages/deriv_passkeys/lib/src/extensions/context_extensions.dart +++ b/packages/deriv_passkeys/lib/src/extensions/context_extensions.dart @@ -5,5 +5,5 @@ import 'package:flutter/widgets.dart'; extension ContextExtension on BuildContext { /// Get derivPasskeysLocalizations. DerivPasskeysLocalizations get derivPasskeysLocalizations => - DerivPasskeysLocalizations.of(this)!; + DerivPasskeysLocalizations.of(this); } diff --git a/packages/deriv_passkeys/lib/src/presentation/pages/effortless_passkeys_login_page.dart b/packages/deriv_passkeys/lib/src/presentation/pages/effortless_passkeys_login_page.dart index 69b5a2510..55b744569 100644 --- a/packages/deriv_passkeys/lib/src/presentation/pages/effortless_passkeys_login_page.dart +++ b/packages/deriv_passkeys/lib/src/presentation/pages/effortless_passkeys_login_page.dart @@ -1,12 +1,9 @@ -import 'dart:io'; - import 'package:deriv_passkeys/src/extensions/context_extensions.dart'; import 'package:deriv_passkeys/src/presentation/constants/assets.dart'; import 'package:deriv_passkeys/src/presentation/pages/learn_more_passkeys_page.dart'; import 'package:deriv_passkeys/src/presentation/pages/passkey_created_page.dart'; import 'package:deriv_passkeys/src/presentation/states/bloc/deriv_passkeys_bloc.dart'; import 'package:deriv_passkeys/src/presentation/utils/handle_errors_utils.dart'; -import 'package:deriv_passkeys/src/presentation/utils/platform_utils.dart'; import 'package:deriv_passkeys/src/presentation/widgets/icon_text_row_widget.dart'; import 'package:deriv_passkeys/src/presentation/widgets/passkey_created_call_to_action.dart'; import 'package:deriv_theme/deriv_theme.dart'; diff --git a/packages/deriv_passkeys/lib/src/presentation/pages/learn_more_passkeys_page.dart b/packages/deriv_passkeys/lib/src/presentation/pages/learn_more_passkeys_page.dart index 102753015..cc308d638 100644 --- a/packages/deriv_passkeys/lib/src/presentation/pages/learn_more_passkeys_page.dart +++ b/packages/deriv_passkeys/lib/src/presentation/pages/learn_more_passkeys_page.dart @@ -1,11 +1,7 @@ -import 'dart:io'; - import 'package:deriv_passkeys/deriv_passkeys.dart'; import 'package:deriv_passkeys/src/extensions/context_extensions.dart'; import 'package:deriv_passkeys/src/presentation/constants/assets.dart'; import 'package:deriv_passkeys/src/presentation/pages/passkey_created_page.dart'; -import 'package:deriv_passkeys/src/presentation/utils/handle_errors_utils.dart'; -import 'package:deriv_passkeys/src/presentation/utils/platform_utils.dart'; import 'package:deriv_passkeys/src/presentation/widgets/passkey_created_call_to_action.dart'; import 'package:deriv_passkeys/src/presentation/widgets/section_title_and_content.dart'; import 'package:deriv_passkeys/src/presentation/widgets/unordered_list_widget.dart'; diff --git a/packages/deriv_passkeys/lib/src/presentation/pages/manage_passkeys_page.dart b/packages/deriv_passkeys/lib/src/presentation/pages/manage_passkeys_page.dart index 7d6f01dc9..fa28503bb 100644 --- a/packages/deriv_passkeys/lib/src/presentation/pages/manage_passkeys_page.dart +++ b/packages/deriv_passkeys/lib/src/presentation/pages/manage_passkeys_page.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:deriv_passkeys/src/extensions/context_extensions.dart'; import 'package:deriv_passkeys/src/presentation/constants/assets.dart'; import 'package:deriv_passkeys/src/presentation/pages/learn_more_passkeys_page.dart'; diff --git a/packages/deriv_passkeys/lib/src/presentation/widgets/continue_with_passkey_button.dart b/packages/deriv_passkeys/lib/src/presentation/widgets/continue_with_passkey_button.dart index 201e0b7db..c739f35f9 100644 --- a/packages/deriv_passkeys/lib/src/presentation/widgets/continue_with_passkey_button.dart +++ b/packages/deriv_passkeys/lib/src/presentation/widgets/continue_with_passkey_button.dart @@ -1,4 +1,3 @@ -import 'package:deriv_passkeys/src/extensions/context_extensions.dart'; import 'package:deriv_passkeys/src/presentation/constants/assets.dart'; import 'package:deriv_passkeys/src/presentation/states/bloc/deriv_passkeys_bloc.dart'; import 'package:deriv_passkeys/src/presentation/utils/handle_errors_utils.dart';