diff --git a/lib/ui/molecules/cards/provider_screen_card.dart b/lib/ui/molecules/cards/providers_page_card.dart similarity index 96% rename from lib/ui/molecules/cards/provider_screen_card.dart rename to lib/ui/molecules/cards/providers_page_card.dart index ee309bfc..698677a7 100644 --- a/lib/ui/molecules/cards/provider_screen_card.dart +++ b/lib/ui/molecules/cards/providers_page_card.dart @@ -3,8 +3,8 @@ import 'package:gap/gap.dart'; import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/ui/atoms/masks/icon_status_mask.dart'; -class ProviderScreenCard extends StatelessWidget { - const ProviderScreenCard({ +class ProvidersPageCard extends StatelessWidget { + const ProvidersPageCard({ required this.state, required this.icon, required this.title, diff --git a/lib/ui/pages/providers/providers.dart b/lib/ui/pages/providers/providers.dart index df44655d..683915c6 100644 --- a/lib/ui/pages/providers/providers.dart +++ b/lib/ui/pages/providers/providers.dart @@ -10,7 +10,7 @@ import 'package:selfprivacy/logic/cubit/server_installation/server_installation_ import 'package:selfprivacy/logic/models/state_types.dart'; import 'package:selfprivacy/ui/atoms/icons/brand_icons.dart'; import 'package:selfprivacy/ui/molecules/cards/not_ready_card.dart'; -import 'package:selfprivacy/ui/molecules/cards/provider_screen_card.dart'; +import 'package:selfprivacy/ui/molecules/cards/providers_page_card.dart'; import 'package:selfprivacy/ui/molecules/cards/server_outdated_card.dart'; import 'package:selfprivacy/ui/organisms/headers/brand_header.dart'; import 'package:selfprivacy/ui/router/router.dart'; @@ -89,7 +89,7 @@ class _ProvidersPageState extends State { ), const SizedBox(height: 16), ], - ProviderScreenCard( + ProvidersPageCard( state: getServerStatus(), icon: BrandIcons.server, title: 'server.card_title'.tr(), @@ -101,7 +101,7 @@ class _ProvidersPageState extends State { : null, ), const SizedBox(height: 16), - ProviderScreenCard( + ProvidersPageCard( state: getDnsStatus(), icon: BrandIcons.globe, title: 'domain.screen_title'.tr(), @@ -113,7 +113,7 @@ class _ProvidersPageState extends State { : null, ), const SizedBox(height: 16), - ProviderScreenCard( + ProvidersPageCard( state: isBackupInitialized ? StateType.stable : StateType.uninitialized,